1 # RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
5 define i32 @test_jumptable(i32 %in) {
7 switch i32 %in, label %def [
34 kind: label-difference32
37 blocks: [ '%bb.3.lbl1', '%bb.4.lbl2', '%bb.5.lbl3', '%bb.6.lbl4' ]
40 successors: %bb.2.def, %bb.1.entry
42 %eax = MOV32rr %edi, implicit-def %rax
43 CMP32ri8 %edi, 3, implicit-def %eflags
44 JA_1 %bb.2.def, implicit %eflags
47 successors: %bb.3.lbl1, %bb.4.lbl2, %bb.5.lbl3, %bb.6.lbl4
48 ; CHECK: [[@LINE+1]]:31: use of undefined jump table '%jump-table.2'
49 %rcx = LEA64r %rip, 1, _, %jump-table.2, _
50 %rax = MOVSX64rm32 %rcx, 4, %rax, 0, _
51 %rax = ADD64rr %rax, %rcx, implicit-def %eflags
55 %eax = MOV32r0 implicit-def %eflags