[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / AArch64 / SVE / cntw.s
blob0f4a53ed6fbf132c079aa138c25b937ed4c89b11
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %s \
2 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
3 // RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \
4 // RUN: | FileCheck %s --check-prefix=CHECK-ERROR
5 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \
6 // RUN: | llvm-objdump -d -mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST
7 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \
8 // RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN
10 cntw x0
11 // CHECK-INST: cntw x0
12 // CHECK-ENCODING: [0xe0,0xe3,0xa0,0x04]
13 // CHECK-ERROR: instruction requires: sve
14 // CHECK-UNKNOWN: e0 e3 a0 04 <unknown>
16 cntw x0, all
17 // CHECK-INST: cntw x0
18 // CHECK-ENCODING: [0xe0,0xe3,0xa0,0x04]
19 // CHECK-ERROR: instruction requires: sve
20 // CHECK-UNKNOWN: e0 e3 a0 04 <unknown>
22 cntw x0, all, mul #1
23 // CHECK-INST: cntw x0
24 // CHECK-ENCODING: [0xe0,0xe3,0xa0,0x04]
25 // CHECK-ERROR: instruction requires: sve
26 // CHECK-UNKNOWN: e0 e3 a0 04 <unknown>
28 cntw x0, all, mul #16
29 // CHECK-INST: cntw x0, all, mul #16
30 // CHECK-ENCODING: [0xe0,0xe3,0xaf,0x04]
31 // CHECK-ERROR: instruction requires: sve
32 // CHECK-UNKNOWN: e0 e3 af 04 <unknown>
34 cntw x0, pow2
35 // CHECK-INST: cntw x0, pow2
36 // CHECK-ENCODING: [0x00,0xe0,0xa0,0x04]
37 // CHECK-ERROR: instruction requires: sve
38 // CHECK-UNKNOWN: 00 e0 a0 04 <unknown>
40 cntw x0, #28
41 // CHECK-INST: cntw x0, #28
42 // CHECK-ENCODING: [0x80,0xe3,0xa0,0x04]
43 // CHECK-ERROR: instruction requires: sve
44 // CHECK-UNKNOWN: 80 e3 a0 04 <unknown>