// 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=-sve2p2 - | 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 compact z0.b, p0, z0.b // 00000101-00100001-10000000-00000000 // CHECK-INST: compact z0.b, p0, z0.b // CHECK-ENCODING: [0x00,0x80,0x21,0x05] // CHECK-ERROR: instruction requires: sme2p2 or sve2p2 // CHECK-UNKNOWN: 05218000 compact z21.b, p5, z10.b // 00000101-00100001-10010101-01010101 // CHECK-INST: compact z21.b, p5, z10.b // CHECK-ENCODING: [0x55,0x95,0x21,0x05] // CHECK-ERROR: instruction requires: sme2p2 or sve2p2 // CHECK-UNKNOWN: 05219555 compact z31.h, p7, z31.h // 00000101-01100001-10011111-11111111 // CHECK-INST: compact z31.h, p7, z31.h // CHECK-ENCODING: [0xff,0x9f,0x61,0x05] // CHECK-ERROR: instruction requires: sme2p2 or sve2p2 // CHECK-UNKNOWN: 05619fff