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 %uchar
      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 @r = common global %struct.rs_allocation zeroinitializer, align 4
     15 @w = common global %struct.rs_allocation zeroinitializer, align 4
     16 @c1 = common global i8 0, align 1
     17 
     18 ; Function Attrs: nounwind
     19 define <4 x i8> @k1(<4 x i8> %in, i32 %x, i32 %y) #0 {
     20 entry:
     21   %.unpack = load i32, i32* bitcast (%struct.rs_allocation* @r to i32*), align 4
     22   %0 = insertvalue [1 x i32] undef, i32 %.unpack, 0
     23   %call = tail call <4 x i8> @_Z21rsGetElementAt_uchar413rs_allocationjj([1 x i32] %0, i32 %x, i32 %y) #2
     24   %1 = load i8, i8* @c1, align 1, !tbaa !15
     25   %splat.splatinsert = insertelement <4 x i8> undef, i8 %1, i32 0
     26   %splat.splat = shufflevector <4 x i8> %splat.splatinsert, <4 x i8> undef, <4 x i32> zeroinitializer
     27   %add = add <4 x i8> %call, %in
     28   %add1 = add <4 x i8> %add, %splat.splat
     29   %.unpack6 = load i32, i32* bitcast (%struct.rs_allocation* @w to i32*), align 4
     30   %2 = insertvalue [1 x i32] undef, i32 %.unpack6, 0
     31   tail call void @_Z21rsSetElementAt_uchar413rs_allocationDv4_hjj([1 x i32] %2, <4 x i8> %add1, i32 %x, i32 %y) #2
     32   ret <4 x i8> %in
     33 }
     34 
     35 declare <4 x i8> @_Z21rsGetElementAt_uchar413rs_allocationjj([1 x i32], i32, i32) #1
     36 
     37 declare void @_Z21rsSetElementAt_uchar413rs_allocationDv4_hjj([1 x i32], <4 x i8>, i32, i32) #1
     38 
     39 ; Function Attrs: nounwind
     40 define void @.rs.dtor() #0 {
     41 entry:
     42   tail call void @_Z13rsClearObjectP13rs_allocation(%struct.rs_allocation* nonnull @r) #2
     43   tail call void @_Z13rsClearObjectP13rs_allocation(%struct.rs_allocation* nonnull @w) #2
     44   ret void
     45 }
     46 
     47 declare void @_Z13rsClearObjectP13rs_allocation(%struct.rs_allocation*) #1
     48 
     49 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" }
     50 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" }
     51 attributes #2 = { nounwind }
     52 
     53 !llvm.module.flags = !{!0, !1}
     54 !llvm.ident = !{!2}
     55 !\23pragma = !{!3, !4, !5}
     56 !\23rs_export_var = !{!6, !7, !8}
     57 !\23rs_object_slots = !{!9, !10}
     58 !\23rs_export_foreach_name = !{!11, !12}
     59 !\23rs_export_foreach = !{!13, !14}
     60 
     61 !0 = !{i32 1, !"wchar_size", i32 4}
     62 !1 = !{i32 1, !"min_enum_size", i32 4}
     63 !2 = !{!"Android clang version 3.8.256229  (based on LLVM 3.8.256229)"}
     64 !3 = !{!"version", !"1"}
     65 !4 = !{!"java_package_name", !"rs2spirv"}
     66 !5 = !{!"rs_fp_relaxed", !""}
     67 !6 = !{!"c1", !"7"}
     68 !7 = !{!"r", !"20"}
     69 !8 = !{!"w", !"20"}
     70 !9 = !{!"1"}
     71 !10 = !{!"2"}
     72 !11 = !{!"root"}
     73 !12 = !{!"k1"}
     74 !13 = !{!"0"}
     75 !14 = !{!"59"}
     76 !15 = !{!16, !16, i64 0}
     77 !16 = !{!"omnipotent char", !17, i64 0}
     78 !17 = !{!"Simple C/C++ TBAA"}
     79