llvm-for-llvmta/test/MC/Disassembler/SystemZ/insns-z13-bad.txt

40 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
# Test z13 instructions that don't have PC-relative operands.
# RUN: llvm-mc --disassemble %s -triple=s390x-linux-gnu -mcpu=z13 2>&1 \
# RUN: | FileCheck %s
# This would be "vlef %v0, 0, 4", but element 4 is invalid.
#
#CHECK: warning: invalid instruction encoding
#CHECK-NEXT: 0xe7 0x00 0x00 0x00 0x40 0x03
0xe7 0x00 0x00 0x00 0x40 0x03
# ...and again with element 15
#
#CHECK: warning: invalid instruction encoding
#CHECK-NEXT: 0xe7 0x00 0x00 0x00 0xf0 0x03
0xe7 0x00 0x00 0x00 0xf0 0x03
# This would be "vleg %v0, 0, 2", but element 2 is invalid.
#
#CHECK: warning: invalid instruction encoding
#CHECK-NEXT: 0xe7 0x00 0x00 0x00 0x20 0x02
0xe7 0x00 0x00 0x00 0x20 0x02
# ...and again with element 15
#
#CHECK: warning: invalid instruction encoding
#CHECK-NEXT: 0xe7 0x00 0x00 0x00 0xf0 0x02
0xe7 0x00 0x00 0x00 0xf0 0x02
# This would be "vleh %v0, 0, 8", but element 8 is invalid.
#
#CHECK: warning: invalid instruction encoding
#CHECK-NEXT: 0xe7 0x00 0x00 0x00 0x80 0x01
0xe7 0x00 0x00 0x00 0x80 0x01
# ...and again with element 15
#
#CHECK: warning: invalid instruction encoding
#CHECK-NEXT: 0xe7 0x00 0x00 0x00 0xf0 0x01
0xe7 0x00 0x00 0x00 0xf0 0x01