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: OpString ".rsov.ExportedVars:0;" 6 7; CHECK-DAG: OpDecorate [[GPUBlockVar:%[a-zA-Z_0-9]+]] Binding 0 8; CHECK-DAG: OpDecorate [[STRUCT:%struct__.*]] BufferBlock 9; CHECK-DAG: OpMemberDecorate [[STRUCT]] 0 Offset 0 10 11; CHECK: [[STRUCT]] = OpTypeStruct %float 12; CHECK: [[STRUCT_PTR_TY:%[a-zA-Z_0-9]+]] = OpTypePointer Uniform [[STRUCT]] 13 14; CHECK: [[GPUBlockVar]] = OpVariable [[STRUCT_PTR_TY]] Uniform 15 16@c1 = common global float 0.000000e+00, align 4 17 18; Function Attrs: norecurse nounwind readonly 19define <4 x float> @k1(<4 x float> %in) #0 { 20entry: 21 %0 = load float, float* @c1, align 4, !tbaa !11 22 %splat.splatinsert = insertelement <4 x float> undef, float %0, i32 0 23 %splat.splat = shufflevector <4 x float> %splat.splatinsert, <4 x float> undef, <4 x i32> zeroinitializer 24 %mul = fmul <4 x float> %splat.splat, %in 25 ret <4 x float> %mul 26} 27 28attributes #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" } 29 30!llvm.module.flags = !{!0, !1} 31!llvm.ident = !{!2} 32!\23pragma = !{!3, !4, !5} 33!\23rs_export_var = !{!6} 34!\23rs_object_slots = !{} 35!\23rs_export_foreach_name = !{!7, !8} 36!\23rs_export_foreach = !{!9, !10} 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.256229 (based on LLVM 3.8.256229)"} 41!3 = !{!"version", !"1"} 42!4 = !{!"java_package_name", !"rs2spirv"} 43!5 = !{!"rs_fp_relaxed", !""} 44!6 = !{!"c1", !"1"} 45!7 = !{!"root"} 46!8 = !{!"k1"} 47!9 = !{!"0"} 48!10 = !{!"35"} 49!11 = !{!12, !12, i64 0} 50!12 = !{!"float", !13, i64 0} 51!13 = !{!"omnipotent char", !14, i64 0} 52!14 = !{!"Simple C/C++ TBAA"} 53