// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2p2 < %s \ // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2p2 < %s \ // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST // RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \ // RUN: | FileCheck %s --check-prefix=CHECK-ERROR // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2p2 < %s \ // RUN: | llvm-objdump -d --mattr=+sve2p2 - | FileCheck %s --check-prefix=CHECK-INST // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2p2 < %s \ // RUN: | llvm-objdump -d --mattr=-sve - | FileCheck %s --check-prefix=CHECK-UNKNOWN // Disassemble encoding and check the re-encoding (-show-encoding) matches. // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2p2 < %s \ // RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \ // RUN: | llvm-mc -triple=aarch64 -mattr=+sve2p2 -disassemble -show-encoding \ // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST revd z0.q, p0/z, z0.q // 00000101-00101110-10100000-00000000 // CHECK-INST: revd z0.q, p0/z, z0.q // CHECK-ENCODING: [0x00,0xa0,0x2e,0x05] // CHECK-ERROR: instruction requires: sme2p2 or sve2p2 // CHECK-UNKNOWN: 052ea000 revd z23.q, p3/z, z13.q // 00000101-00101110-10101101-10110111 // CHECK-INST: revd z23.q, p3/z, z13.q // CHECK-ENCODING: [0xb7,0xad,0x2e,0x05] // CHECK-ERROR: instruction requires: sme2p2 or sve2p2 // CHECK-UNKNOWN: 052eadb7 revd z31.q, p7/z, z31.q // 00000101-00101110-10111111-11111111 // CHECK-INST: revd z31.q, p7/z, z31.q // CHECK-ENCODING: [0xff,0xbf,0x2e,0x05] // CHECK-ERROR: instruction requires: sme2p2 or sve2p2 // CHECK-UNKNOWN: 052ebfff