[InstCombine] Signed saturation tests. NFC
[llvm-complete.git] / test / MC / AArch64 / SVE2 / sqdmulh.s
blobc3829c1703bbeb8b9bc160bee0326e43948a76db
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2 < %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=+sve2 < %s \
6 // RUN: | llvm-objdump -d -mattr=+sve2 - | FileCheck %s --check-prefix=CHECK-INST
7 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2 < %s \
8 // RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN
10 sqdmulh z0.b, z1.b, z2.b
11 // CHECK-INST: sqdmulh z0.b, z1.b, z2.b
12 // CHECK-ENCODING: [0x20,0x70,0x22,0x04]
13 // CHECK-ERROR: instruction requires: sve2
14 // CHECK-UNKNOWN: 20 70 22 04 <unknown>
16 sqdmulh z0.h, z1.h, z2.h
17 // CHECK-INST: sqdmulh z0.h, z1.h, z2.h
18 // CHECK-ENCODING: [0x20,0x70,0x62,0x04]
19 // CHECK-ERROR: instruction requires: sve2
20 // CHECK-UNKNOWN: 20 70 62 04 <unknown>
22 sqdmulh z29.s, z30.s, z31.s
23 // CHECK-INST: sqdmulh z29.s, z30.s, z31.s
24 // CHECK-ENCODING: [0xdd,0x73,0xbf,0x04]
25 // CHECK-ERROR: instruction requires: sve2
26 // CHECK-UNKNOWN: dd 73 bf 04 <unknown>
28 sqdmulh z31.d, z31.d, z31.d
29 // CHECK-INST: sqdmulh z31.d, z31.d, z31.d
30 // CHECK-ENCODING: [0xff,0x73,0xff,0x04]
31 // CHECK-ERROR: instruction requires: sve2
32 // CHECK-UNKNOWN: ff 73 ff 04 <unknown>
34 sqdmulh z0.h, z1.h, z7.h[7]
35 // CHECK-INST: sqdmulh z0.h, z1.h, z7.h[7]
36 // CHECK-ENCODING: [0x20,0xf0,0x7f,0x44]
37 // CHECK-ERROR: instruction requires: sve2
38 // CHECK-UNKNOWN: 20 f0 7f 44 <unknown>
40 sqdmulh z0.s, z1.s, z7.s[3]
41 // CHECK-INST: sqdmulh z0.s, z1.s, z7.s[3]
42 // CHECK-ENCODING: [0x20,0xf0,0xbf,0x44]
43 // CHECK-ERROR: instruction requires: sve2
44 // CHECK-UNKNOWN: 20 f0 bf 44 <unknown>
46 sqdmulh z0.d, z1.d, z15.d[1]
47 // CHECK-INST: sqdmulh z0.d, z1.d, z15.d[1]
48 // CHECK-ENCODING: [0x20,0xf0,0xff,0x44]
49 // CHECK-ERROR: instruction requires: sve2
50 // CHECK-UNKNOWN: 20 f0 ff 44 <unknown>