1; RUN: rs2spirv_lit_driver.sh %s | FileCheck %s 2 3; Decorations 4; CHECK: OpDecorate %[[BUF_0S:.*]] BufferBlock 5; CHECK: OpDecorate %[[BUF_VAR0:.*]] Binding 3 6; CHECK: OpDecorate %[[BUF_1S:.*]] BufferBlock 7; CHECK: OpDecorate %[[BUF_VAR1:.*]] Binding 4 8 9; CHECK:%[[BUF_PTR_TY0:.*]] = OpTypePointer Uniform %[[BUF_0S]] 10; CHECK:%[[BUF_VAR0]] = OpVariable %[[BUF_PTR_TY0]] Uniform 11; CHECK:%[[BUF_PTR_TY1:.*]] = OpTypePointer Uniform %[[BUF_1S]] 12; CHECK:%[[BUF_VAR1]] = OpVariable %[[BUF_PTR_TY1]] Uniform 13 14; Wrapper 15; CHECK: %[[ADDR0:.*]] = OpAccessChain %{{.*}} %[[BUF_VAR0]] 16; CHECK:OpLoad {{.*}} %[[ADDR0]] 17; CHECK: %[[ADDR1:.*]] = OpAccessChain %{{.*}} %[[BUF_VAR1]] 18; CHECK:OpLoad {{.*}} %[[ADDR1]] 19 20target datalayout = "e-p:32:32-i64:64-v128:64:128-n32-S64" 21target triple = "armv7-none-linux-gnueabi" 22 23; Function Attrs: norecurse nounwind readnone 24define float @sum2(float %in0, float %in1, i32 %x) local_unnamed_addr #0 { 25entry: 26 %add = fadd float %in0, %in1 27 ret float %add 28} 29 30attributes #0 = { norecurse nounwind readnone "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "stack-protector-buffer-size"="0" "stackrealign" "unsafe-fp-math"="false" "use-soft-float"="false" } 31 32!llvm.module.flags = !{!0, !1} 33!llvm.ident = !{!2} 34!\23pragma = !{!3, !4} 35!\23rs_export_foreach_name = !{!5, !6} 36!\23rs_export_foreach = !{!7, !8} 37 38!0 = !{i32 1, !"wchar_size", i32 4} 39!1 = !{i32 1, !"min_enum_size", i32 4} 40!2 = !{!"Android clang version 3.8.275480 (based on LLVM 3.8.275480)"} 41!3 = !{!"version", !"1"} 42!4 = !{!"java_package_name", !"com.android.rs.rsov.test"} 43!5 = !{!"root"} 44!6 = !{!"sum2"} 45!7 = !{!"0"} 46!8 = !{!"43"} 47