1; RUN: rs2spirv_lit_driver.sh %s | FileCheck %s
2
3target datalayout = "e-p:32:32-i64:64-v128:64:128-n32-S64"
4target triple = "armv7-none-linux-gnueabi"
5
6; CHECK: OpEntryPoint GLCompute [[WrapperId:%[a-zA-Z_0-9]*]] "entry_copy"
7; CHECK: [[KernelId:%[a-zA-Z_0-9]+]] = OpFunction {{.*}}
8
9; Function Attrs: norecurse nounwind readnone
10define <4 x i8> @copy(<4 x i8> %v_in) #0 {
11entry:
12  ret <4 x i8> %v_in
13}
14
15; CHECK: [[WrapperId]] = OpFunction {{.*}}
16; CHECK-NEXT: OpLabel
17; CHECK: %{{[0-9]+}} = OpFunctionCall %{{.*}} [[KernelId]]
18; CHECK: OpReturn
19
20attributes #0 = { norecurse nounwind readnone "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" }
21
22!llvm.module.flags = !{!0, !1}
23!llvm.ident = !{!2}
24!\23pragma = !{!3, !4, !5}
25!\23rs_export_foreach_name = !{!6, !7}
26!\23rs_export_foreach = !{!8, !9}
27
28!0 = !{i32 1, !"wchar_size", i32 4}
29!1 = !{i32 1, !"min_enum_size", i32 4}
30!2 = !{!"Android clang version 3.8.256229  (based on LLVM 3.8.256229)"}
31!3 = !{!"version", !"1"}
32!4 = !{!"java_package_name", !"rs2spirv"}
33!5 = !{!"rs_fp_relaxed", !""}
34!6 = !{!"root"}
35!7 = !{!"copy"}
36!8 = !{!"0"}
37!9 = !{!"35"}
38