brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · e3174f3 Raw
40 lines · plain
1# Test z13 instructions that are invalid.2# RUN: llvm-mc --disassemble %s -triple=s390x-linux-gnu -mcpu=z13 2>&1 \3# RUN:   | FileCheck %s4 5# This would be "vlef %v0, 0, 4", but element 4 is invalid.6#7#CHECK: warning: invalid instruction encoding8#CHECK-NEXT: 0xe7 0x00 0x00 0x00 0x40 0x0390xe7 0x00 0x00 0x00 0x40 0x0310 11# ...and again with element 1512#13#CHECK: warning: invalid instruction encoding14#CHECK-NEXT: 0xe7 0x00 0x00 0x00 0xf0 0x03150xe7 0x00 0x00 0x00 0xf0 0x0316 17# This would be "vleg %v0, 0, 2", but element 2 is invalid.18#19#CHECK: warning: invalid instruction encoding20#CHECK-NEXT: 0xe7 0x00 0x00 0x00 0x20 0x02210xe7 0x00 0x00 0x00 0x20 0x0222 23# ...and again with element 1524#25#CHECK: warning: invalid instruction encoding26#CHECK-NEXT: 0xe7 0x00 0x00 0x00 0xf0 0x02270xe7 0x00 0x00 0x00 0xf0 0x0228 29# This would be "vleh %v0, 0, 8", but element 8 is invalid.30#31#CHECK: warning: invalid instruction encoding32#CHECK-NEXT: 0xe7 0x00 0x00 0x00 0x80 0x01330xe7 0x00 0x00 0x00 0x80 0x0134 35# ...and again with element 1536#37#CHECK: warning: invalid instruction encoding38#CHECK-NEXT: 0xe7 0x00 0x00 0x00 0xf0 0x01390xe7 0x00 0x00 0x00 0xf0 0x0140