[SystemZ] Rework handling of constant PC-relative operands
[oota-llvm.git] / test / MC / SystemZ / insn-llihh-01.s
1 # RUN: llvm-mc -triple s390x-linux-gnu -show-encoding %s | FileCheck %s
2
3 #CHECK: llihh   %r0, 0                  # encoding: [0xa5,0x0c,0x00,0x00]
4 #CHECK: llihh   %r0, 32768              # encoding: [0xa5,0x0c,0x80,0x00]
5 #CHECK: llihh   %r0, 65535              # encoding: [0xa5,0x0c,0xff,0xff]
6 #CHECK: llihh   %r15, 0                 # encoding: [0xa5,0xfc,0x00,0x00]
7
8         llihh   %r0, 0
9         llihh   %r0, 0x8000
10         llihh   %r0, 0xffff
11         llihh   %r15, 0