35 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %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=+sve < %s \8// RUN: | llvm-objdump -d --mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST9// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \10// RUN: | llvm-objdump -d --mattr=-sve - | FileCheck %s --check-prefix=CHECK-UNKNOWN11 12ctermne w30, wzr13// CHECK-INST: ctermne w30, wzr14// CHECK-ENCODING: [0xd0,0x23,0xbf,0x25]15// CHECK-ERROR: instruction requires: sve or sme16// CHECK-UNKNOWN: 25bf23d0 <unknown>17 18ctermne wzr, w3019// CHECK-INST: ctermne wzr, w3020// CHECK-ENCODING: [0xf0,0x23,0xbe,0x25]21// CHECK-ERROR: instruction requires: sve or sme22// CHECK-UNKNOWN: 25be23f0 <unknown>23 24ctermne x30, xzr25// CHECK-INST: ctermne x30, xzr26// CHECK-ENCODING: [0xd0,0x23,0xff,0x25]27// CHECK-ERROR: instruction requires: sve or sme28// CHECK-UNKNOWN: 25ff23d0 <unknown>29 30ctermne xzr, x3031// CHECK-INST: ctermne xzr, x3032// CHECK-ENCODING: [0xf0,0x23,0xfe,0x25]33// CHECK-ERROR: instruction requires: sve or sme34// CHECK-UNKNOWN: 25fe23f0 <unknown>35