Debian Codegraph @

llvm/test/MC/AArch64/SVE2/cdot.s

raw
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
11
12 cdot z0.s, z1.b, z31.b, #0
13 // CHECK-INST: cdot z0.s, z1.b, z31.b, #0
14 // CHECK-ENCODING: [0x20,0x10,0x9f,0x44]
15 // CHECK-ERROR: instruction requires: sve2 or sme
16 // CHECK-UNKNOWN: 449f1020 <unknown>
17
18 cdot z0.d, z1.h, z31.h, #0
19 // CHECK-INST: cdot z0.d, z1.h, z31.h, #0
20 // CHECK-ENCODING: [0x20,0x10,0xdf,0x44]
21 // CHECK-ERROR: instruction requires: sve2 or sme
22 // CHECK-UNKNOWN: 44df1020 <unknown>
23
24 cdot z0.d, z1.h, z31.h, #90
25 // CHECK-INST: cdot z0.d, z1.h, z31.h, #90
26 // CHECK-ENCODING: [0x20,0x14,0xdf,0x44]
27 // CHECK-ERROR: instruction requires: sve2 or sme
28 // CHECK-UNKNOWN: 44df1420 <unknown>
29
30 cdot z0.d, z1.h, z31.h, #180
31 // CHECK-INST: cdot z0.d, z1.h, z31.h, #180
32 // CHECK-ENCODING: [0x20,0x18,0xdf,0x44]
33 // CHECK-ERROR: instruction requires: sve2 or sme
34 // CHECK-UNKNOWN: 44df1820 <unknown>
35
36 cdot z0.d, z1.h, z31.h, #270
37 // CHECK-INST: cdot z0.d, z1.h, z31.h, #270
38 // CHECK-ENCODING: [0x20,0x1c,0xdf,0x44]
39 // CHECK-ERROR: instruction requires: sve2 or sme
40 // CHECK-UNKNOWN: 44df1c20 <unknown>
41
42 cdot z0.s, z1.b, z7.b[3], #0
43 // CHECK-INST: cdot z0.s, z1.b, z7.b[3], #0
44 // CHECK-ENCODING: [0x20,0x40,0xbf,0x44]
45 // CHECK-ERROR: instruction requires: sve2 or sme
46 // CHECK-UNKNOWN: 44bf4020 <unknown>
47
48 cdot z0.d, z1.h, z15.h[1], #0
49 // CHECK-INST: cdot z0.d, z1.h, z15.h[1], #0
50 // CHECK-ENCODING: [0x20,0x40,0xff,0x44]
51 // CHECK-ERROR: instruction requires: sve2 or sme
52 // CHECK-UNKNOWN: 44ff4020 <unknown>
53
54 cdot z5.d, z6.h, z3.h[0], #90
55 // CHECK-INST: cdot z5.d, z6.h, z3.h[0], #90
56 // CHECK-ENCODING: [0xc5,0x44,0xe3,0x44]
57 // CHECK-ERROR: instruction requires: sve2 or sme
58 // CHECK-UNKNOWN: 44e344c5 <unknown>
59
60 cdot z29.d, z30.h, z0.h[0], #180
61 // CHECK-INST: cdot z29.d, z30.h, z0.h[0], #180
62 // CHECK-ENCODING: [0xdd,0x4b,0xe0,0x44]
63 // CHECK-ERROR: instruction requires: sve2 or sme
64 // CHECK-UNKNOWN: 44e04bdd <unknown>
65
66 cdot z31.d, z30.h, z7.h[1], #270
67 // CHECK-INST: cdot z31.d, z30.h, z7.h[1], #270
68 // CHECK-ENCODING: [0xdf,0x4f,0xf7,0x44]
69 // CHECK-ERROR: instruction requires: sve2 or sme
70 // CHECK-UNKNOWN: 44f74fdf <unknown>
71
72
73 // --------------------------------------------------------------------------//
74 // Test compatibility with MOVPRFX instruction.
75
76 movprfx z0, z7
77 // CHECK-INST: movprfx z0, z7
78 // CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]
79 // CHECK-ERROR: instruction requires: sve or sme
80 // CHECK-UNKNOWN: 0420bce0 <unknown>
81
82 cdot z0.d, z1.h, z31.h, #0
83 // CHECK-INST: cdot z0.d, z1.h, z31.h, #0
84 // CHECK-ENCODING: [0x20,0x10,0xdf,0x44]
85 // CHECK-ERROR: instruction requires: sve2 or sme
86 // CHECK-UNKNOWN: 44df1020 <unknown>
87
88 movprfx z0, z7
89 // CHECK-INST: movprfx z0, z7
90 // CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]
91 // CHECK-ERROR: instruction requires: sve or sme
92 // CHECK-UNKNOWN: 0420bce0 <unknown>
93
94 cdot z0.d, z1.h, z15.h[1], #0
95 // CHECK-INST: cdot z0.d, z1.h, z15.h[1], #0
96 // CHECK-ENCODING: [0x20,0x40,0xff,0x44]
97 // CHECK-ERROR: instruction requires: sve2 or sme
98 // CHECK-UNKNOWN: 44ff4020 <unknown>