Debian Codegraph @

llvm-project/llvm/projects/llvm-spirv/test/negative/unsup_invoke_instr.ll

raw
1 ;Translator does not parse some llvm instructions
2 ;and emit errror message in that case.
3 ; RUN: llvm-as %s -o %t.bc
4 ; RUN: not llvm-spirv %t.bc 2>&1 | FileCheck %s
5
6 ; CHECK: InvalidInstruction: Can't translate llvm instruction:
7
8 target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-n8:16:32:64"
9 target triple = "spir64-unknown-linux"
10
11 $"_ZTSZZ4mainENK3$_0clERN2cl4sycl7handlerEE6Kernel" = comdat any
12
13
14 ; Function Attrs: norecurse
15 define weak_odr dso_local spir_kernel void @"_ZTSZZ4mainENK3$_0clERN2cl4sycl7handlerEE6Kernel"() local_unnamed_addr #0 comdat !kernel_arg_buffer_location !4 {
16 entry:
17 ret void
18 }
19
20 ; Function Attrs: noinline optnone uwtable
21 define dso_local i32 @_funcEx() #4 {
22 ret i32 0
23 }
24
25 ; Function Attrs: noinline norecurse optnone uwtable
26 define dso_local i32 @func() #5 personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
27 entry:
28 %call = invoke i32 @_funcEx()
29 to label %invoke.cont unwind label %lpad
30
31 invoke.cont:
32 ret i32 0
33
34 lpad:
35 %0 = landingpad { i8*, i32 }
36 cleanup
37 ret i32 0
38 }
39
40 declare dso_local i32 @__gxx_personality_v0(...)
41
42 attributes #0 = { norecurse "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "sycl-module-id"="/localdisk2/icl/fadeeval/sycl_workspace/reproducer2/test.cpp" "uniform-work-group-size"="true" "unsafe-fp-math"="false" "use-soft-float"="false" }
43 attributes #1 = { norecurse nounwind readnone "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
44
45 !llvm.module.flags = !{!0}
46 !opencl.spir.version = !{!1}
47 !spirv.Source = !{!2}
48 !llvm.ident = !{!3}
49
50 !0 = !{i32 1, !"wchar_size", i32 4}
51 !1 = !{i32 1, i32 2}
52 !2 = !{i32 4, i32 100000}
53 !3 = !{!"clang version 12.0.0 (https://github.com/intel/llvm e6d68c098feda598ef8030ef211076f899eff93a)"}
54 !4 = !{}