Home | History | Annotate | Download | only in rs_allocation
      1 ; XFAIL: *
      2 ; RUN: rs2spirv_lit_driver.sh %s | FileCheck %s
      3 
      4 target datalayout = "e-p:32:32-i64:64-v128:64:128-n32-S64"
      5 target triple = "armv7-none-linux-gnueabi"
      6 
      7 ; CHECK: %struct___GPUBuffer = OpTypeStruct {{.*}}
      8 ; CHECK: [[PTR_TYPE:%[a-zA-Z_0-9]+]] = OpTypePointer Uniform %struct___GPUBuffer
      9 
     10 ; CHECK: %__GPUBlock = OpVariable [[PTR_TYPE]] Uniform
     11 
     12 %struct.rs_allocation = type { i32* }
     13 
     14 @alloc = common global %struct.rs_allocation zeroinitializer, align 4
     15 @c1 = common global i8 0, align 1
     16 
     17 ; Function Attrs: nounwind
     18 define <4 x i8> @k1(<4 x i8> %in, i32 %x, i32 %y) #0 {
     19 entry:
     20   %0 = load i8, i8* @c1, align 1, !tbaa !13
     21   %splat.splatinsert = insertelement <4 x i8> undef, i8 %0, i32 0
     22   %splat.splat = shufflevector <4 x i8> %splat.splatinsert, <4 x i8> undef, <4 x i32> zeroinitializer
     23   %add = add <4 x i8> %splat.splat, %in
     24   %.unpack = load i32, i32* bitcast (%struct.rs_allocation* @alloc to i32*), align 4
     25   %1 = insertvalue [1 x i32] undef, i32 %.unpack, 0
     26   tail call void @_Z21rsSetElementAt_uchar413rs_allocationDv4_hjj([1 x i32] %1, <4 x i8> %add, i32 %x, i32 %y) #2
     27   ret <4 x i8> %in
     28 }
     29 
     30 declare void @_Z21rsSetElementAt_uchar413rs_allocationDv4_hjj([1 x i32], <4 x i8>, i32, i32) #1
     31 
     32 ; Function Attrs: nounwind
     33 define void @.rs.dtor() #0 {
     34 entry:
     35   tail call void @_Z13rsClearObjectP13rs_allocation(%struct.rs_allocation* nonnull @alloc) #2
     36   ret void
     37 }
     38 
     39 declare void @_Z13rsClearObjectP13rs_allocation(%struct.rs_allocation*) #1
     40 
     41 attributes #0 = { nounwind "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" }
     42 attributes #1 = { "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" }
     43 attributes #2 = { nounwind }
     44 
     45 !llvm.module.flags = !{!0, !1}
     46 !llvm.ident = !{!2}
     47 !\23pragma = !{!3, !4, !5}
     48 !\23rs_export_var = !{!6, !7}
     49 !\23rs_object_slots = !{!8}
     50 !\23rs_export_foreach_name = !{!9, !10}
     51 !\23rs_export_foreach = !{!11, !12}
     52 
     53 !0 = !{i32 1, !"wchar_size", i32 4}
     54 !1 = !{i32 1, !"min_enum_size", i32 4}
     55 !2 = !{!"Android clang version 3.8.256229  (based on LLVM 3.8.256229)"}
     56 !3 = !{!"version", !"1"}
     57 !4 = !{!"java_package_name", !"rs2spirv"}
     58 !5 = !{!"rs_fp_relaxed", !""}
     59 !6 = !{!"c1", !"7"}
     60 !7 = !{!"alloc", !"20"}
     61 !8 = !{!"1"}
     62 !9 = !{!"root"}
     63 !10 = !{!"k1"}
     64 !11 = !{!"0"}
     65 !12 = !{!"59"}
     66 !13 = !{!14, !14, i64 0}
     67 !14 = !{!"omnipotent char", !15, i64 0}
     68 !15 = !{!"Simple C/C++ TBAA"}
     69