1 ; The test is to check that jump tables are not generated from switch
3 ; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s
4 ; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %}
6 ; CHECK: OpSwitch %[[#]] %[[Label:]]
7 ; CHECK-4: OpBranch %[[Label]]
9 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"
10 target triple = "spir64-unknown-unknown"
12 define spir_func void @foo(i32 noundef %val) {
14 switch i32 %val, label %sw.epilog [