[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / AArch64 / SVE2 / sqrdmulh.s
blob6deeb76849b3b9cd0e332a98c878a87e06996050
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 sqrdmulh z0.b, z1.b, z2.b
11 // CHECK-INST: sqrdmulh z0.b, z1.b, z2.b
12 // CHECK-ENCODING: [0x20,0x74,0x22,0x04]
13 // CHECK-ERROR: instruction requires: sve2
14 // CHECK-UNKNOWN: 20 74 22 04 <unknown>
16 sqrdmulh z0.h, z1.h, z2.h
17 // CHECK-INST: sqrdmulh z0.h, z1.h, z2.h
18 // CHECK-ENCODING: [0x20,0x74,0x62,0x04]
19 // CHECK-ERROR: instruction requires: sve2
20 // CHECK-UNKNOWN: 20 74 62 04 <unknown>
22 sqrdmulh z29.s, z30.s, z31.s
23 // CHECK-INST: sqrdmulh z29.s, z30.s, z31.s
24 // CHECK-ENCODING: [0xdd,0x77,0xbf,0x04]
25 // CHECK-ERROR: instruction requires: sve2
26 // CHECK-UNKNOWN: dd 77 bf 04 <unknown>
28 sqrdmulh z31.d, z31.d, z31.d
29 // CHECK-INST: sqrdmulh z31.d, z31.d, z31.d
30 // CHECK-ENCODING: [0xff,0x77,0xff,0x04]
31 // CHECK-ERROR: instruction requires: sve2
32 // CHECK-UNKNOWN: ff 77 ff 04 <unknown>
34 sqrdmulh z0.h, z1.h, z7.h[7]
35 // CHECK-INST: sqrdmulh z0.h, z1.h, z7.h[7]
36 // CHECK-ENCODING: [0x20,0xf4,0x7f,0x44]
37 // CHECK-ERROR: instruction requires: sve2
38 // CHECK-UNKNOWN: 20 f4 7f 44 <unknown>
40 sqrdmulh z0.s, z1.s, z7.s[3]
41 // CHECK-INST: sqrdmulh z0.s, z1.s, z7.s[3]
42 // CHECK-ENCODING: [0x20,0xf4,0xbf,0x44]
43 // CHECK-ERROR: instruction requires: sve2
44 // CHECK-UNKNOWN: 20 f4 bf 44 <unknown>
46 sqrdmulh z0.d, z1.d, z15.d[1]
47 // CHECK-INST: sqrdmulh z0.d, z1.d, z15.d[1]
48 // CHECK-ENCODING: [0x20,0xf4,0xff,0x44]
49 // CHECK-ERROR: instruction requires: sve2
50 // CHECK-UNKNOWN: 20 f4 ff 44 <unknown>