[SystemZ] Rework handling of constant PC-relative operands
[oota-llvm.git] / test / MC / SystemZ / insn-cdb-01.s
1 # RUN: llvm-mc -triple s390x-linux-gnu -show-encoding %s | FileCheck %s
2
3 #CHECK: cdb     %f0, 0                  # encoding: [0xed,0x00,0x00,0x00,0x00,0x19]
4 #CHECK: cdb     %f0, 4095               # encoding: [0xed,0x00,0x0f,0xff,0x00,0x19]
5 #CHECK: cdb     %f0, 0(%r1)             # encoding: [0xed,0x00,0x10,0x00,0x00,0x19]
6 #CHECK: cdb     %f0, 0(%r15)            # encoding: [0xed,0x00,0xf0,0x00,0x00,0x19]
7 #CHECK: cdb     %f0, 4095(%r1,%r15)     # encoding: [0xed,0x01,0xff,0xff,0x00,0x19]
8 #CHECK: cdb     %f0, 4095(%r15,%r1)     # encoding: [0xed,0x0f,0x1f,0xff,0x00,0x19]
9 #CHECK: cdb     %f15, 0                 # encoding: [0xed,0xf0,0x00,0x00,0x00,0x19]
10
11         cdb     %f0, 0
12         cdb     %f0, 4095
13         cdb     %f0, 0(%r1)
14         cdb     %f0, 0(%r15)
15         cdb     %f0, 4095(%r1,%r15)
16         cdb     %f0, 4095(%r15,%r1)
17         cdb     %f15, 0