xref: /llvm-project/llvm/test/MC/AArch64/SVE/ctermne.s (revision ae16b2ed9871b5624fdcb4286fbd0d6ddfd88961)
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %s \
2// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
3// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %s \
4// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
5// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \
6// RUN:        | FileCheck %s --check-prefix=CHECK-ERROR
7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \
8// RUN:        | llvm-objdump -d --mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST
9// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \
10// RUN:   | llvm-objdump -d --mattr=-sve - | FileCheck %s --check-prefix=CHECK-UNKNOWN
11
12ctermne w30, wzr
13// CHECK-INST: ctermne	w30, wzr
14// CHECK-ENCODING: [0xd0,0x23,0xbf,0x25]
15// CHECK-ERROR: instruction requires: sve or sme
16// CHECK-UNKNOWN: 25bf23d0 <unknown>
17
18ctermne wzr, w30
19// CHECK-INST: ctermne	wzr, w30
20// CHECK-ENCODING: [0xf0,0x23,0xbe,0x25]
21// CHECK-ERROR: instruction requires: sve or sme
22// CHECK-UNKNOWN: 25be23f0 <unknown>
23
24ctermne x30, xzr
25// CHECK-INST: ctermne	x30, xzr
26// CHECK-ENCODING: [0xd0,0x23,0xff,0x25]
27// CHECK-ERROR: instruction requires: sve or sme
28// CHECK-UNKNOWN: 25ff23d0 <unknown>
29
30ctermne xzr, x30
31// CHECK-INST: ctermne	xzr, x30
32// CHECK-ENCODING: [0xf0,0x23,0xfe,0x25]
33// CHECK-ERROR: instruction requires: sve or sme
34// CHECK-UNKNOWN: 25fe23f0 <unknown>
35