Home | History | Annotate | Download | only in single_kernel
      1 ; RUN: rs2spirv_lit_driver.sh %s | FileCheck %s
      2 
      3 target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128"
      4 target triple = "aarch64-none-linux-gnueabi"
      5 
      6 ; CHECK: OpEntryPoint GLCompute %[[WrapperId:[a-zA-Z_0-9]*]] "entry_times"
      7 ; CHECK: [[KernelId:%[a-zA-Z_0-9]+]] = OpFunction {{.*}}
      8 
      9 ; Function Attrs: norecurse nounwind readnone
     10 define i32 @times(i32 %x) #0 {
     11 entry:
     12   %mul = shl i32 %x, 1
     13   ret i32 %mul
     14 }
     15 
     16 ; CHECK: %[[WrapperId]] = OpFunction {{.*}}
     17 ; CHECK-NEXT: OpLabel
     18 ; CHECK: %{{[0-9]+}} = OpFunctionCall %{{.*}} [[KernelId]]
     19 ; CHECK: OpReturn
     20 
     21 attributes #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" "unsafe-fp-math"="false" "use-soft-float"="false" }
     22 
     23 !llvm.ident = !{!0}
     24 !\23pragma = !{!1, !2, !3}
     25 !\23rs_export_foreach_name = !{!4, !5}
     26 !\23rs_export_foreach = !{!6, !7}
     27 
     28 !0 = !{!"Android clang version 3.8.256229  (based on LLVM 3.8.256229)"}
     29 !1 = !{!"version", !"1"}
     30 !2 = !{!"java_package_name", !"rs2spirv"}
     31 !3 = !{!"rs_fp_relaxed", !""}
     32 !4 = !{!"root"}
     33 !5 = !{!"times"}
     34 !6 = !{!"0"}
     35 !7 = !{!"42"}
     36