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