Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MachineVerifier / test_g_jump_table.mir
blobb25b0f8b242d6801c59fb1dfccd67bfcb43038fa
1 # RUN: not --crash llc -mtriple=aarch64 -o /dev/null -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
2 # REQUIRES: aarch64-registered-target
4 ---
5 name:            test_jump_table
6 legalized:       true
7 tracksRegLiveness: true
8 jumpTable:
9   kind:            block-address
10   entries:
11     - id:              0
12       blocks:          [ '%bb.0' ]
13 liveins:
14 body:             |
15   bb.0:
17     ; CHECK: Bad machine code: Too few operands
18     %0:_(s32) = G_JUMP_TABLE
20     ; CHECK: G_JUMP_TABLE source operand must be a jump table index
21     %2:_(s32) = G_JUMP_TABLE %0
23     ; CHECK: G_JUMP_TABLE dest operand must have a pointer type
24     %3:_(s32) = G_JUMP_TABLE %jump-table.0
26 ...