1; RUN: rs2spirv_lit_driver.sh %s | FileCheck %s 2target datalayout = "e-p:32:32-i64:64-v128:64:128-n32-S64" 3target triple = "armv7-none-linux-gnueabi" 4 5; CHECK-DAG: OpDecorate [[GPUBlockVar:%[a-zA-Z_0-9]+]] Binding 0 6; CHECK-DAG: OpDecorate [[STRUCT:%struct__.*]] BufferBlock 7; CHECK-DAG: OpMemberDecorate [[STRUCT]] 0 Offset 0 8 9; CHECK: [[STRUCT]] = OpTypeStruct %float 10; CHECK: [[STRUCT_PTR_TY:%[a-zA-Z_0-9]+]] = OpTypePointer Uniform [[STRUCT]] 11 12; CHECK: [[GPUBlockVar]] = OpVariable [[STRUCT_PTR_TY]] Uniform 13 14@c1 = common global float 0.000000e+00, align 4 15 16; Function Attrs: norecurse nounwind readonly 17define <4 x float> @k1(<4 x float> %in) #0 { 18entry: 19 %0 = load float, float* @c1, align 4, !tbaa !11 20 %splat.splatinsert = insertelement <4 x float> undef, float %0, i32 0 21 %splat.splat = shufflevector <4 x float> %splat.splatinsert, <4 x float> undef, <4 x i32> zeroinitializer 22 %mul = fmul <4 x float> %splat.splat, %in 23 ret <4 x float> %mul 24} 25 26attributes #0 = { norecurse nounwind readonly "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="0" "stackrealign" "target-features"="+long64" "unsafe-fp-math"="false" "use-soft-float"="false" } 27 28!llvm.module.flags = !{!0, !1} 29!llvm.ident = !{!2} 30!\23pragma = !{!3, !4, !5} 31!\23rs_export_var = !{!6} 32!\23rs_object_slots = !{} 33!\23rs_export_foreach_name = !{!7, !8} 34!\23rs_export_foreach = !{!9, !10} 35 36!0 = !{i32 1, !"wchar_size", i32 4} 37!1 = !{i32 1, !"min_enum_size", i32 4} 38!2 = !{!"Android clang version 3.8.256229 (based on LLVM 3.8.256229)"} 39!3 = !{!"version", !"1"} 40!4 = !{!"java_package_name", !"rs2spirv"} 41!5 = !{!"rs_fp_relaxed", !""} 42!6 = !{!"c1", !"1"} 43!7 = !{!"root"} 44!8 = !{!"k1"} 45!9 = !{!"0"} 46!10 = !{!"35"} 47!11 = !{!12, !12, i64 0} 48!12 = !{!"float", !13, i64 0} 49!13 = !{!"omnipotent char", !14, i64 0} 50!14 = !{!"Simple C/C++ TBAA"} 51