1# RUN: not --crash llc -march=aarch64 -o /dev/null -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
2# REQUIRES: aarch64-registered-target
3
4---
5name:            test_jump_table
6legalized:       true
7tracksRegLiveness: true
8jumpTable:
9  kind:            block-address
10  entries:
11    - id:              0
12      blocks:          [ '%bb.0' ]
13liveins:
14body:             |
15  bb.0:
16
17    ; CHECK: Bad machine code: Too few operands
18    %0:_(s32) = G_JUMP_TABLE
19
20    ; CHECK: G_JUMP_TABLE source operand must be a jump table index
21    %2:_(s32) = G_JUMP_TABLE %0
22
23    ; CHECK: G_JUMP_TABLE dest operand must have a pointer type
24    %3:_(s32) = G_JUMP_TABLE %jump-table.0
25
26...
27