1; XFAIL: * 2; RUN: rs2spirv_lit_driver.sh %s | FileCheck %s 3 4target datalayout = "e-p:32:32-i64:64-v128:64:128-n32-S64" 5target 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@a1 = common global %struct.rs_allocation zeroinitializer, align 4 15@a2 = common global %struct.rs_allocation zeroinitializer, align 4 16@c1 = common global i8 0, align 1 17 18; Function Attrs: nounwind 19define <4 x i8> @k1(<4 x i8> %in) #0 { 20entry: 21 %0 = extractelement <4 x i8> %in, i32 0 22 %conv = zext i8 %0 to i32 23 %1 = extractelement <4 x i8> %in, i32 1 24 %conv1 = zext i8 %1 to i32 25 %.unpack = load i32, i32* bitcast (%struct.rs_allocation* @a1 to i32*), align 4 26 %2 = insertvalue [1 x i32] undef, i32 %.unpack, 0 27 %call = tail call <4 x i8> @_Z21rsGetElementAt_uchar413rs_allocationjj([1 x i32] %2, i32 %conv, i32 %conv1) #2 28 %3 = extractelement <4 x i8> %in, i32 2 29 %conv2 = zext i8 %3 to i32 30 %4 = extractelement <4 x i8> %in, i32 3 31 %conv3 = zext i8 %4 to i32 32 %.unpack16 = load i32, i32* bitcast (%struct.rs_allocation* @a2 to i32*), align 4 33 %5 = insertvalue [1 x i32] undef, i32 %.unpack16, 0 34 %call4 = tail call <4 x i8> @_Z21rsGetElementAt_uchar413rs_allocationjj([1 x i32] %5, i32 %conv2, i32 %conv3) #2 35 %add = add <4 x i8> %call4, %call 36 %6 = load i8, i8* @c1, align 1, !tbaa !15 37 %conv5 = zext i8 %6 to i32 38 %7 = extractelement <4 x i8> %add, i32 2 39 %conv6 = zext i8 %7 to i32 40 %add7 = add nuw nsw i32 %conv6, %conv5 41 %conv8 = trunc i32 %add7 to i8 42 %8 = insertelement <4 x i8> %add, i8 %conv8, i32 2 43 ret <4 x i8> %8 44} 45 46declare <4 x i8> @_Z21rsGetElementAt_uchar413rs_allocationjj([1 x i32], i32, i32) #1 47 48; Function Attrs: nounwind 49define void @.rs.dtor() #0 { 50entry: 51 tail call void @_Z13rsClearObjectP13rs_allocation(%struct.rs_allocation* nonnull @a1) #2 52 tail call void @_Z13rsClearObjectP13rs_allocation(%struct.rs_allocation* nonnull @a2) #2 53 ret void 54} 55 56declare void @_Z13rsClearObjectP13rs_allocation(%struct.rs_allocation*) #1 57 58attributes #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" } 59attributes #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" } 60attributes #2 = { nounwind } 61 62!llvm.module.flags = !{!0, !1} 63!llvm.ident = !{!2} 64!\23pragma = !{!3, !4, !5} 65!\23rs_export_var = !{!6, !7, !8} 66!\23rs_object_slots = !{!9, !10} 67!\23rs_export_foreach_name = !{!11, !12} 68!\23rs_export_foreach = !{!13, !14} 69 70!0 = !{i32 1, !"wchar_size", i32 4} 71!1 = !{i32 1, !"min_enum_size", i32 4} 72!2 = !{!"Android clang version 3.8.256229 (based on LLVM 3.8.256229)"} 73!3 = !{!"version", !"1"} 74!4 = !{!"java_package_name", !"rs2spirv"} 75!5 = !{!"rs_fp_relaxed", !""} 76!6 = !{!"c1", !"7"} 77!7 = !{!"a1", !"20"} 78!8 = !{!"a2", !"20"} 79!9 = !{!"1"} 80!10 = !{!"2"} 81!11 = !{!"root"} 82!12 = !{!"k1"} 83!13 = !{!"0"} 84!14 = !{!"35"} 85!15 = !{!16, !16, i64 0} 86!16 = !{!"omnipotent char", !17, i64 0} 87!17 = !{!"Simple C/C++ TBAA"} 88