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 @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) #0 { 19 entry: 20 %0 = extractelement <4 x i8> %in, i32 0 21 %conv = zext i8 %0 to i32 22 %1 = extractelement <4 x i8> %in, i32 1 23 %conv1 = zext i8 %1 to i32 24 %.unpack = load i32, i32* bitcast (%struct.rs_allocation* @alloc to i32*), align 4 25 %2 = insertvalue [1 x i32] undef, i32 %.unpack, 0 26 %call = tail call <4 x i8> @_Z21rsGetElementAt_uchar413rs_allocationjj([1 x i32] %2, i32 %conv, i32 %conv1) #2 27 %3 = load i8, i8* @c1, align 1, !tbaa !13 28 %conv2 = zext i8 %3 to i32 29 %4 = extractelement <4 x i8> %call, i32 2 30 %conv3 = zext i8 %4 to i32 31 %add = add nuw nsw i32 %conv3, %conv2 32 %conv4 = trunc i32 %add to i8 33 %5 = insertelement <4 x i8> %call, i8 %conv4, i32 2 34 ret <4 x i8> %5 35 } 36 37 declare <4 x i8> @_Z21rsGetElementAt_uchar413rs_allocationjj([1 x i32], 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 @alloc) #2 43 ret void 44 } 45 46 declare void @_Z13rsClearObjectP13rs_allocation(%struct.rs_allocation*) #1 47 48 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" } 49 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" } 50 attributes #2 = { nounwind } 51 52 !llvm.module.flags = !{!0, !1} 53 !llvm.ident = !{!2} 54 !\23pragma = !{!3, !4, !5} 55 !\23rs_export_var = !{!6, !7} 56 !\23rs_object_slots = !{!8} 57 !\23rs_export_foreach_name = !{!9, !10} 58 !\23rs_export_foreach = !{!11, !12} 59 60 !0 = !{i32 1, !"wchar_size", i32 4} 61 !1 = !{i32 1, !"min_enum_size", i32 4} 62 !2 = !{!"Android clang version 3.8.256229 (based on LLVM 3.8.256229)"} 63 !3 = !{!"version", !"1"} 64 !4 = !{!"java_package_name", !"rs2spirv"} 65 !5 = !{!"rs_fp_relaxed", !""} 66 !6 = !{!"c1", !"7"} 67 !7 = !{!"alloc", !"20"} 68 !8 = !{!"1"} 69 !9 = !{!"root"} 70 !10 = !{!"k1"} 71 !11 = !{!"0"} 72 !12 = !{!"35"} 73 !13 = !{!14, !14, i64 0} 74 !14 = !{!"omnipotent char", !15, i64 0} 75 !15 = !{!"Simple C/C++ TBAA"} 76