[SystemZ] Rework handling of constant PC-relative operands
[oota-llvm.git] / test / MC / SystemZ / insn-chhsi-02.s
1 # RUN: not llvm-mc -triple s390x-linux-gnu < %s 2> %t
2 # RUN: FileCheck < %t %s
3
4 #CHECK: error: invalid operand
5 #CHECK: chhsi   -1, 0
6 #CHECK: error: invalid operand
7 #CHECK: chhsi   4096, 0
8 #CHECK: error: invalid use of indexed addressing
9 #CHECK: chhsi   0(%r1,%r2), 0
10 #CHECK: error: invalid operand
11 #CHECK: chhsi   0, -32769
12 #CHECK: error: invalid operand
13 #CHECK: chhsi   0, 32768
14
15         chhsi   -1, 0
16         chhsi   4096, 0
17         chhsi   0(%r1,%r2), 0
18         chhsi   0, -32769
19         chhsi   0, 32768