35 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2 < %s \2// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %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=+sve2 < %s \8// RUN: | llvm-objdump -d --mattr=+sve2 - | FileCheck %s --check-prefix=CHECK-INST9// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2 < %s \10// RUN: | llvm-objdump -d --mattr=-sve2 - | FileCheck %s --check-prefix=CHECK-UNKNOWN11 12whilewr p15.b, x30, x3013// CHECK-INST: whilewr p15.b, x30, x3014// CHECK-ENCODING: [0xcf,0x33,0x3e,0x25]15// CHECK-ERROR: instruction requires: sve2 or sme16// CHECK-UNKNOWN: 253e33cf <unknown>17 18whilewr p15.h, x30, x3019// CHECK-INST: whilewr p15.h, x30, x3020// CHECK-ENCODING: [0xcf,0x33,0x7e,0x25]21// CHECK-ERROR: instruction requires: sve2 or sme22// CHECK-UNKNOWN: 257e33cf <unknown>23 24whilewr p15.s, x30, x3025// CHECK-INST: whilewr p15.s, x30, x3026// CHECK-ENCODING: [0xcf,0x33,0xbe,0x25]27// CHECK-ERROR: instruction requires: sve2 or sme28// CHECK-UNKNOWN: 25be33cf <unknown>29 30whilewr p15.d, x30, x3031// CHECK-INST: whilewr p15.d, x30, x3032// CHECK-ENCODING: [0xcf,0x33,0xfe,0x25]33// CHECK-ERROR: instruction requires: sve2 or sme34// CHECK-UNKNOWN: 25fe33cf <unknown>35