[AMDGPU] Add True16 register classes.
[llvm-project.git] / llvm / test / MC / AArch64 / SVE2 / sqrdmlah.s
blob9e65e6815c69a1f3ac9b8571f13bd9419215b2a0
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2 < %s \
2 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
3 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %s \
4 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
5 // RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \
6 // RUN: | FileCheck %s --check-prefix=CHECK-ERROR
7 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2 < %s \
8 // RUN: | llvm-objdump -d --mattr=+sve2 - | FileCheck %s --check-prefix=CHECK-INST
9 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2 < %s \
10 // RUN: | llvm-objdump -d --mattr=-sve2 - | FileCheck %s --check-prefix=CHECK-UNKNOWN
13 sqrdmlah z0.b, z1.b, z31.b
14 // CHECK-INST: sqrdmlah z0.b, z1.b, z31.b
15 // CHECK-ENCODING: [0x20,0x70,0x1f,0x44]
16 // CHECK-ERROR: instruction requires: sve2 or sme
17 // CHECK-UNKNOWN: 441f7020 <unknown>
19 sqrdmlah z0.h, z1.h, z31.h
20 // CHECK-INST: sqrdmlah z0.h, z1.h, z31.h
21 // CHECK-ENCODING: [0x20,0x70,0x5f,0x44]
22 // CHECK-ERROR: instruction requires: sve2 or sme
23 // CHECK-UNKNOWN: 445f7020 <unknown>
25 sqrdmlah z0.s, z1.s, z31.s
26 // CHECK-INST: sqrdmlah z0.s, z1.s, z31.s
27 // CHECK-ENCODING: [0x20,0x70,0x9f,0x44]
28 // CHECK-ERROR: instruction requires: sve2 or sme
29 // CHECK-UNKNOWN: 449f7020 <unknown>
31 sqrdmlah z0.d, z1.d, z31.d
32 // CHECK-INST: sqrdmlah z0.d, z1.d, z31.d
33 // CHECK-ENCODING: [0x20,0x70,0xdf,0x44]
34 // CHECK-ERROR: instruction requires: sve2 or sme
35 // CHECK-UNKNOWN: 44df7020 <unknown>
37 sqrdmlah z0.h, z1.h, z7.h[7]
38 // CHECK-INST: sqrdmlah z0.h, z1.h, z7.h[7]
39 // CHECK-ENCODING: [0x20,0x10,0x7f,0x44]
40 // CHECK-ERROR: instruction requires: sve2 or sme
41 // CHECK-UNKNOWN: 447f1020 <unknown>
43 sqrdmlah z0.s, z1.s, z7.s[3]
44 // CHECK-INST: sqrdmlah z0.s, z1.s, z7.s[3]
45 // CHECK-ENCODING: [0x20,0x10,0xbf,0x44]
46 // CHECK-ERROR: instruction requires: sve2 or sme
47 // CHECK-UNKNOWN: 44bf1020 <unknown>
49 sqrdmlah z0.d, z1.d, z15.d[1]
50 // CHECK-INST: sqrdmlah z0.d, z1.d, z15.d[1]
51 // CHECK-ENCODING: [0x20,0x10,0xff,0x44]
52 // CHECK-ERROR: instruction requires: sve2 or sme
53 // CHECK-UNKNOWN: 44ff1020 <unknown>
56 // --------------------------------------------------------------------------//
57 // Test compatibility with MOVPRFX instruction.
59 movprfx z0, z7
60 // CHECK-INST: movprfx z0, z7
61 // CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]
62 // CHECK-ERROR: instruction requires: sve or sme
63 // CHECK-UNKNOWN: 0420bce0 <unknown>
65 sqrdmlah z0.d, z1.d, z31.d
66 // CHECK-INST: sqrdmlah z0.d, z1.d, z31.d
67 // CHECK-ENCODING: [0x20,0x70,0xdf,0x44]
68 // CHECK-ERROR: instruction requires: sve2 or sme
69 // CHECK-UNKNOWN: 44df7020 <unknown>
71 movprfx z0, z7
72 // CHECK-INST: movprfx z0, z7
73 // CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]
74 // CHECK-ERROR: instruction requires: sve or sme
75 // CHECK-UNKNOWN: 0420bce0 <unknown>
77 sqrdmlah z0.d, z1.d, z15.d[1]
78 // CHECK-INST: sqrdmlah z0.d, z1.d, z15.d[1]
79 // CHECK-ENCODING: [0x20,0x10,0xff,0x44]
80 // CHECK-ERROR: instruction requires: sve2 or sme
81 // CHECK-UNKNOWN: 44ff1020 <unknown>