39 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2p2 < %s \2// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2p2 < %s \4// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST5// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \6// RUN: | FileCheck %s --check-prefix=CHECK-ERROR7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2p2 < %s \8// RUN: | llvm-objdump -d --mattr=+sve2p2 - | FileCheck %s --check-prefix=CHECK-INST9// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2p2 < %s \10// RUN: | llvm-objdump -d --mattr=-sme2 - | FileCheck %s --check-prefix=CHECK-UNKNOWN11// Disassemble encoding and check the re-encoding (-show-encoding) matches.12// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2p2 < %s \13// RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \14// RUN: | llvm-mc -triple=aarch64 -mattr=+sve2p2 -disassemble -show-encoding \15// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST16 17sqneg z0.b, p0/z, z0.b // 01000100-00001011-10100000-0000000018// CHECK-INST: sqneg z0.b, p0/z, z0.b19// CHECK-ENCODING: [0x00,0xa0,0x0b,0x44]20// CHECK-ERROR: instruction requires: sme2p2 or sve2p221// CHECK-UNKNOWN: 440ba000 <unknown>22 23sqneg z23.h, p3/z, z13.h // 01000100-01001011-10101101-1011011124// CHECK-INST: sqneg z23.h, p3/z, z13.h25// CHECK-ENCODING: [0xb7,0xad,0x4b,0x44]26// CHECK-ERROR: instruction requires: sme2p2 or sve2p227// CHECK-UNKNOWN: 444badb7 <unknown>28 29sqneg z21.s, p5/z, z10.s // 01000100-10001011-10110101-0101010130// CHECK-INST: sqneg z21.s, p5/z, z10.s31// CHECK-ENCODING: [0x55,0xb5,0x8b,0x44]32// CHECK-ERROR: instruction requires: sme2p2 or sve2p233// CHECK-UNKNOWN: 448bb555 <unknown>34 35sqneg z31.d, p7/z, z31.d // 01000100-11001011-10111111-1111111136// CHECK-INST: sqneg z31.d, p7/z, z31.d37// CHECK-ENCODING: [0xff,0xbf,0xcb,0x44]38// CHECK-ERROR: instruction requires: sme2p2 or sve2p239// CHECK-UNKNOWN: 44cbbfff <unknown>