1 # Test z13 instructions that don't have PC-relative operands. 2 # RUN: llvm-mc --disassemble %s -triple=s390x-linux-gnu -mcpu=z13 2>&1 \ 3 # RUN: | FileCheck %s 4 5 # This would be "vlef %v0, 0, 4", but element 4 is invalid. 6 # 7 #CHECK: warning: invalid instruction encoding 8 #CHECK-NEXT: 0xe7 0x00 0x00 0x00 0x40 0x03 9 0xe7 0x00 0x00 0x00 0x40 0x03 10 11 # ...and again with element 15 12 # 13 #CHECK: warning: invalid instruction encoding 14 #CHECK-NEXT: 0xe7 0x00 0x00 0x00 0xf0 0x03 15 0xe7 0x00 0x00 0x00 0xf0 0x03 16 17 # This would be "vleg %v0, 0, 2", but element 2 is invalid. 18 # 19 #CHECK: warning: invalid instruction encoding 20 #CHECK-NEXT: 0xe7 0x00 0x00 0x00 0x20 0x02 21 0xe7 0x00 0x00 0x00 0x20 0x02 22 23 # ...and again with element 15 24 # 25 #CHECK: warning: invalid instruction encoding 26 #CHECK-NEXT: 0xe7 0x00 0x00 0x00 0xf0 0x02 27 0xe7 0x00 0x00 0x00 0xf0 0x02 28 29 # This would be "vleh %v0, 0, 8", but element 8 is invalid. 30 # 31 #CHECK: warning: invalid instruction encoding 32 #CHECK-NEXT: 0xe7 0x00 0x00 0x00 0x80 0x01 33 0xe7 0x00 0x00 0x00 0x80 0x01 34 35 # ...and again with element 15 36 # 37 #CHECK: warning: invalid instruction encoding 38 #CHECK-NEXT: 0xe7 0x00 0x00 0x00 0xf0 0x01 39 0xe7 0x00 0x00 0x00 0xf0 0x01 40