[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / MC / AArch64 / SVE / sqincp.s
blobe523796a39f1292f1784cb6f73a95874b2efd143
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 sqincp x0, p0.b
11 // CHECK-INST: sqincp x0, p0.b
12 // CHECK-ENCODING: [0x00,0x8c,0x28,0x25]
13 // CHECK-ERROR: instruction requires: sve
14 // CHECK-UNKNOWN: 00 8c 28 25 <unknown>
16 sqincp x0, p0.h
17 // CHECK-INST: sqincp x0, p0.h
18 // CHECK-ENCODING: [0x00,0x8c,0x68,0x25]
19 // CHECK-ERROR: instruction requires: sve
20 // CHECK-UNKNOWN: 00 8c 68 25 <unknown>
22 sqincp x0, p0.s
23 // CHECK-INST: sqincp x0, p0.s
24 // CHECK-ENCODING: [0x00,0x8c,0xa8,0x25]
25 // CHECK-ERROR: instruction requires: sve
26 // CHECK-UNKNOWN: 00 8c a8 25 <unknown>
28 sqincp x0, p0.d
29 // CHECK-INST: sqincp x0, p0.d
30 // CHECK-ENCODING: [0x00,0x8c,0xe8,0x25]
31 // CHECK-ERROR: instruction requires: sve
32 // CHECK-UNKNOWN: 00 8c e8 25 <unknown>
34 sqincp xzr, p15.b, wzr
35 // CHECK-INST: sqincp xzr, p15.b, wzr
36 // CHECK-ENCODING: [0xff,0x89,0x28,0x25]
37 // CHECK-ERROR: instruction requires: sve
38 // CHECK-UNKNOWN: ff 89 28 25 <unknown>
40 sqincp xzr, p15.h, wzr
41 // CHECK-INST: sqincp xzr, p15.h, wzr
42 // CHECK-ENCODING: [0xff,0x89,0x68,0x25]
43 // CHECK-ERROR: instruction requires: sve
44 // CHECK-UNKNOWN: ff 89 68 25 <unknown>
46 sqincp xzr, p15.s, wzr
47 // CHECK-INST: sqincp xzr, p15.s, wzr
48 // CHECK-ENCODING: [0xff,0x89,0xa8,0x25]
49 // CHECK-ERROR: instruction requires: sve
50 // CHECK-UNKNOWN: ff 89 a8 25 <unknown>
52 sqincp xzr, p15.d, wzr
53 // CHECK-INST: sqincp xzr, p15.d, wzr
54 // CHECK-ENCODING: [0xff,0x89,0xe8,0x25]
55 // CHECK-ERROR: instruction requires: sve
56 // CHECK-UNKNOWN: ff 89 e8 25 <unknown>
58 sqincp z0.h, p0
59 // CHECK-INST: sqincp z0.h, p0.h
60 // CHECK-ENCODING: [0x00,0x80,0x68,0x25]
61 // CHECK-ERROR: instruction requires: sve
62 // CHECK-UNKNOWN: 00 80 68 25 <unknown>
64 sqincp z0.h, p0.h
65 // CHECK-INST: sqincp z0.h, p0.h
66 // CHECK-ENCODING: [0x00,0x80,0x68,0x25]
67 // CHECK-ERROR: instruction requires: sve
68 // CHECK-UNKNOWN: 00 80 68 25 <unknown>
70 sqincp z0.s, p0
71 // CHECK-INST: sqincp z0.s, p0.s
72 // CHECK-ENCODING: [0x00,0x80,0xa8,0x25]
73 // CHECK-ERROR: instruction requires: sve
74 // CHECK-UNKNOWN: 00 80 a8 25 <unknown>
76 sqincp z0.s, p0.s
77 // CHECK-INST: sqincp z0.s, p0.s
78 // CHECK-ENCODING: [0x00,0x80,0xa8,0x25]
79 // CHECK-ERROR: instruction requires: sve
80 // CHECK-UNKNOWN: 00 80 a8 25 <unknown>
82 sqincp z0.d, p0
83 // CHECK-INST: sqincp z0.d, p0.d
84 // CHECK-ENCODING: [0x00,0x80,0xe8,0x25]
85 // CHECK-ERROR: instruction requires: sve
86 // CHECK-UNKNOWN: 00 80 e8 25 <unknown>
88 sqincp z0.d, p0.d
89 // CHECK-INST: sqincp z0.d, p0.d
90 // CHECK-ENCODING: [0x00,0x80,0xe8,0x25]
91 // CHECK-ERROR: instruction requires: sve
92 // CHECK-UNKNOWN: 00 80 e8 25 <unknown>
95 // --------------------------------------------------------------------------//
96 // Test compatibility with MOVPRFX instruction.
98 movprfx z0, z7
99 // CHECK-INST: movprfx z0, z7
100 // CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]
101 // CHECK-ERROR: instruction requires: sve
102 // CHECK-UNKNOWN: e0 bc 20 04 <unknown>
104 sqincp z0.d, p0.d
105 // CHECK-INST: sqincp z0.d, p0.d
106 // CHECK-ENCODING: [0x00,0x80,0xe8,0x25]
107 // CHECK-ERROR: instruction requires: sve
108 // CHECK-UNKNOWN: 00 80 e8 25 <unknown>