File: bfmlal.s

package info (click to toggle)
llvm-toolchain-11 1%3A11.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 995,808 kB
  • sloc: cpp: 4,767,656; ansic: 760,916; asm: 477,436; python: 170,940; objc: 69,804; lisp: 29,914; sh: 23,855; f90: 18,173; pascal: 7,551; perl: 7,471; ml: 5,603; awk: 3,489; makefile: 2,573; xml: 915; cs: 573; fortran: 503; javascript: 452
file content (157 lines) | stat: -rw-r--r-- 4,880 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
// RUN: llvm-mc -o - -triple=aarch64 -show-encoding -mattr=+sve,+bf16 %s \
// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
// RUN: not llvm-mc -o - -triple=aarch64 -show-encoding %s 2>&1 \
// RUN:        | FileCheck %s --check-prefix=CHECK-ERROR

bfmlalb z0.S, z1.H, z2.H
// CHECK-INST: bfmlalb z0.s, z1.h, z2.h
// CHECK-ENCODING: [0x20,0x80,0xe2,0x64]
// CHECK-ERROR: instruction requires: bf16 sve

bfmlalt z0.S, z1.H, z2.H
// CHECK-INST: bfmlalt z0.s, z1.h, z2.h
// CHECK-ENCODING: [0x20,0x84,0xe2,0x64]
// CHECK-ERROR: instruction requires: bf16 sve

bfmlalb z0.S, z1.H, z2.H[0]
// CHECK-INST: bfmlalb z0.s, z1.h, z2.h[0]
// CHECK-ENCODING: [0x20,0x40,0xe2,0x64]
// CHECK-ERROR: instruction requires: bf16 sve

bfmlalt z0.S, z1.H, z2.H[0]
// CHECK-INST: bfmlalt z0.s, z1.h, z2.h[0]
// CHECK-ENCODING: [0x20,0x44,0xe2,0x64]
// CHECK-ERROR: instruction requires: bf16 sve

bfmlalb z0.S, z1.H, z2.H[7]
// CHECK-INST: bfmlalb z0.s, z1.h, z2.h[7]
// CHECK-ENCODING: [0x20,0x48,0xfa,0x64]
// CHECK-ERROR: instruction requires: bf16 sve

bfmlalt z0.S, z1.H, z2.H[7]
// CHECK-INST: bfmlalt z0.s, z1.h, z2.h[7]
// CHECK-ENCODING: [0x20,0x4c,0xfa,0x64]
// CHECK-ERROR: instruction requires: bf16 sve

bfmlalt z0.S, z1.H, z7.H[7]
// CHECK-INST: bfmlalt z0.s, z1.h, z7.h[7]
// CHECK-ENCODING: [0x20,0x4c,0xff,0x64]
// CHECK-ERROR: instruction requires: bf16 sve

bfmlalb z10.S, z21.H, z14.H
// CHECK-INST: bfmlalb z10.s, z21.h, z14.h
// CHECK-ENCODING: [0xaa,0x82,0xee,0x64]
// CHECK-ERROR: instruction requires: bf16 sve

bfmlalt z14.S, z10.H, z21.H
// CHECK-INST: bfmlalt z14.s, z10.h, z21.h
// CHECK-ENCODING: [0x4e,0x85,0xf5,0x64]
// CHECK-ERROR: instruction requires: bf16 sve

bfmlalb z21.s, z14.h, z3.h[2]
// CHECK-INST: bfmlalb z21.s, z14.h, z3.h[2]
// CHECK-ENCODING: [0xd5,0x41,0xeb,0x64]
// CHECK-ERROR: instruction requires: bf16 sve

// --------------------------------------------------------------------------//
// Test compatibility with MOVPRFX instruction.

movprfx z0, z7
// CHECK-INST: movprfx z0, z7
// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]
// CHECK-ERROR: instruction requires: sve

bfmlalb z0.S, z1.H, z2.H
// CHECK-INST: bfmlalb z0.s, z1.h, z2.h
// CHECK-ENCODING: [0x20,0x80,0xe2,0x64]
// CHECK-ERROR: instruction requires: bf16 sve

movprfx z0, z7
// CHECK-INST: movprfx z0, z7
// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]
// CHECK-ERROR: instruction requires: sve

bfmlalt z0.S, z1.H, z2.H
// CHECK-INST: bfmlalt z0.s, z1.h, z2.h
// CHECK-ENCODING: [0x20,0x84,0xe2,0x64]
// CHECK-ERROR: instruction requires: bf16 sve

movprfx z0, z7
// CHECK-INST: movprfx z0, z7
// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]
// CHECK-ERROR: instruction requires: sve

bfmlalb z0.S, z1.H, z2.H[0]
// CHECK-INST: bfmlalb z0.s, z1.h, z2.h[0]
// CHECK-ENCODING: [0x20,0x40,0xe2,0x64]
// CHECK-ERROR: instruction requires: bf16 sve

movprfx z0, z7
// CHECK-INST: movprfx z0, z7
// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]
// CHECK-ERROR: instruction requires: sve

bfmlalt z0.S, z1.H, z2.H[0]
// CHECK-INST: bfmlalt z0.s, z1.h, z2.h[0]
// CHECK-ENCODING: [0x20,0x44,0xe2,0x64]
// CHECK-ERROR: instruction requires: bf16 sve

movprfx z0, z7
// CHECK-INST: movprfx z0, z7
// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]
// CHECK-ERROR: instruction requires: sve

bfmlalb z0.S, z1.H, z2.H[7]
// CHECK-INST: bfmlalb z0.s, z1.h, z2.h[7]
// CHECK-ENCODING: [0x20,0x48,0xfa,0x64]
// CHECK-ERROR: instruction requires: bf16 sve

movprfx z0, z7
// CHECK-INST: movprfx z0, z7
// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]
// CHECK-ERROR: instruction requires: sve

bfmlalt z0.S, z1.H, z2.H[7]
// CHECK-INST: bfmlalt z0.s, z1.h, z2.h[7]
// CHECK-ENCODING: [0x20,0x4c,0xfa,0x64]
// CHECK-ERROR: instruction requires: bf16 sve

movprfx z0, z7
// CHECK-INST: movprfx z0, z7
// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]
// CHECK-ERROR: instruction requires: sve

bfmlalt z0.S, z1.H, z7.H[7]
// CHECK-INST: bfmlalt z0.s, z1.h, z7.h[7]
// CHECK-ENCODING: [0x20,0x4c,0xff,0x64]
// CHECK-ERROR: instruction requires: bf16 sve

movprfx z10, z7
// CHECK-INST: movprfx z10, z7
// CHECK-ENCODING: [0xea,0xbc,0x20,0x04]
// CHECK-ERROR: instruction requires: sve

bfmlalb z10.S, z21.H, z14.H
// CHECK-INST: bfmlalb z10.s, z21.h, z14.h
// CHECK-ENCODING: [0xaa,0x82,0xee,0x64]
// CHECK-ERROR: instruction requires: bf16 sve

movprfx z14, z7
// CHECK-INST: movprfx z14, z7
// CHECK-ENCODING: [0xee,0xbc,0x20,0x04]
// CHECK-ERROR: instruction requires: sve

bfmlalt z14.S, z10.H, z21.H
// CHECK-INST: bfmlalt z14.s, z10.h, z21.h
// CHECK-ENCODING: [0x4e,0x85,0xf5,0x64]
// CHECK-ERROR: instruction requires: bf16 sve

movprfx z21, z7
// CHECK-INST: movprfx z21, z7
// CHECK-ENCODING: [0xf5,0xbc,0x20,0x04]
// CHECK-ERROR: instruction requires: sve

bfmlalb z21.s, z14.h, z3.h[2]
// CHECK-INST: bfmlalb z21.s, z14.h, z3.h[2]
// CHECK-ENCODING: [0xd5,0x41,0xeb,0x64]
// CHECK-ERROR: instruction requires: bf16 sve