[InstCombine] Signed saturation patterns
[llvm-core.git] / test / MC / AArch64 / SVE / cntd.s
blob31fc96878e399d387fafde35654fa70771d89c47
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 cntd x0
11 // CHECK-INST: cntd x0
12 // CHECK-ENCODING: [0xe0,0xe3,0xe0,0x04]
13 // CHECK-ERROR: instruction requires: sve
14 // CHECK-UNKNOWN: e0 e3 e0 04 <unknown>
16 cntd x0, all
17 // CHECK-INST: cntd x0
18 // CHECK-ENCODING: [0xe0,0xe3,0xe0,0x04]
19 // CHECK-ERROR: instruction requires: sve
20 // CHECK-UNKNOWN: e0 e3 e0 04 <unknown>
22 cntd x0, all, mul #1
23 // CHECK-INST: cntd x0
24 // CHECK-ENCODING: [0xe0,0xe3,0xe0,0x04]
25 // CHECK-ERROR: instruction requires: sve
26 // CHECK-UNKNOWN: e0 e3 e0 04 <unknown>
28 cntd x0, all, mul #16
29 // CHECK-INST: cntd x0, all, mul #16
30 // CHECK-ENCODING: [0xe0,0xe3,0xef,0x04]
31 // CHECK-ERROR: instruction requires: sve
32 // CHECK-UNKNOWN: e0 e3 ef 04 <unknown>
34 cntd x0, pow2
35 // CHECK-INST: cntd x0, pow2
36 // CHECK-ENCODING: [0x00,0xe0,0xe0,0x04]
37 // CHECK-ERROR: instruction requires: sve
38 // CHECK-UNKNOWN: 00 e0 e0 04 <unknown>
40 cntd x0, #28
41 // CHECK-INST: cntd x0, #28
42 // CHECK-ENCODING: [0x80,0xe3,0xe0,0x04]
43 // CHECK-ERROR: instruction requires: sve
44 // CHECK-UNKNOWN: 80 e3 e0 04 <unknown>