Home | History | Annotate | Download | only in globals
      1 ; RUN: rs2spirv_lit_driver.sh %s | FileCheck %s
      2 target datalayout = "e-p:32:32-i64:64-v128:64:128-n32-S64"
      3 target triple = "armv7-none-linux-gnueabi"
      4 
      5 ; CHECK: OpString ".rsov.ExportedVars:0;24;8;28;"
      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 ; CHECK-DAG: OpMemberDecorate [[STRUCT]] 1 Offset 8
     11 ; CHECK-DAG: OpMemberDecorate [[STRUCT]] 2 Offset 24
     12 ; CHECK-DAG: OpMemberDecorate [[STRUCT]] 3 Offset 28
     13 
     14 ; CHECK: [[STRUCT]] = OpTypeStruct %float %v4float %uchar %uint{{.*}}
     15 ; CHECK: [[STRUCT_PTR_TY:%[a-zA-Z_0-9]+]] = OpTypePointer Uniform [[STRUCT]]
     16 
     17 ; CHECK: [[GPUBlockVar]] = OpVariable [[STRUCT_PTR_TY]] Uniform
     18 
     19 @c1 = common global float 0.000000e+00, align 4
     20 @c2 = common global <4 x float> zeroinitializer, align 16
     21 @d = common global i8 0, align 1
     22 @i = common global i32 0, align 4
     23 
     24 ; Function Attrs: norecurse nounwind readonly
     25 define <4 x float> @k1(<4 x float> %in) #0 {
     26 entry:
     27   %0 = load float, float* @c1, align 4, !tbaa !14
     28   %splat.splatinsert = insertelement <4 x float> undef, float %0, i32 0
     29   %splat.splat = shufflevector <4 x float> %splat.splatinsert, <4 x float> undef, <4 x i32> zeroinitializer
     30   %mul = fmul <4 x float> %splat.splat, %in
     31   %1 = load <4 x float>, <4 x float>* @c2, align 16, !tbaa !18
     32   %mul1 = fmul <4 x float> %1, %mul
     33   ret <4 x float> %mul1
     34 }
     35 
     36 attributes #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" }
     37 
     38 !llvm.module.flags = !{!0, !1}
     39 !llvm.ident = !{!2}
     40 !\23pragma = !{!3, !4, !5}
     41 !\23rs_export_var = !{!6, !7, !8, !9}
     42 !\23rs_object_slots = !{}
     43 !\23rs_export_foreach_name = !{!10, !11}
     44 !\23rs_export_foreach = !{!12, !13}
     45 
     46 !0 = !{i32 1, !"wchar_size", i32 4}
     47 !1 = !{i32 1, !"min_enum_size", i32 4}
     48 !2 = !{!"Android clang version 3.8.256229  (based on LLVM 3.8.256229)"}
     49 !3 = !{!"version", !"1"}
     50 !4 = !{!"java_package_name", !"rs2spirv"}
     51 !5 = !{!"rs_fp_relaxed", !""}
     52 !6 = !{!"c1", !"1"}
     53 !7 = !{!"d", !"7"}
     54 !8 = !{!"c2", !"float4"}
     55 !9 = !{!"i", !"5"}
     56 !10 = !{!"root"}
     57 !11 = !{!"k1"}
     58 !12 = !{!"0"}
     59 !13 = !{!"35"}
     60 !14 = !{!15, !15, i64 0}
     61 !15 = !{!"float", !16, i64 0}
     62 !16 = !{!"omnipotent char", !17, i64 0}
     63 !17 = !{!"Simple C/C++ TBAA"}
     64 !18 = !{!16, !16, i64 0}
     65