File: fmlal.s

package info (click to toggle)
llvm-toolchain-19 1%3A19.1.7-19
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,999,616 kB
  • sloc: cpp: 6,951,724; ansic: 1,486,157; asm: 913,598; python: 232,059; f90: 80,126; objc: 75,281; lisp: 37,276; pascal: 16,990; sh: 10,079; ml: 5,058; perl: 4,724; awk: 3,523; makefile: 3,430; javascript: 2,504; xml: 892; fortran: 664; cs: 573
file content (114 lines) | stat: -rw-r--r-- 4,503 bytes parent folder | download | duplicates (11)
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
// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+ssve-fp8fma < %s \
// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST

// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \
// RUN:        | FileCheck %s --check-prefix=CHECK-ERROR

// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2,+fp8fma < %s \
// RUN:        | llvm-objdump -d --mattr=+sve2,+fp8fma --no-print-imm-hex - | FileCheck %s --check-prefix=CHECK-INST

// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2,+fp8fma < %s \
// RUN:        | llvm-objdump -d --mattr=-fp8fma --no-print-imm-hex - | FileCheck %s --check-prefix=CHECK-UNKNOWN

// Disassemble encoding and check the re-encoding (-show-encoding) matches.
// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2,+fp8fma < %s \
// RUN:        | sed '/.text/d' | sed 's/.*encoding: //g' \
// RUN:        | llvm-mc -triple=aarch64 -mattr=+sve2,+fp8fma -disassemble -show-encoding \
// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST

//
// FMLALB instructions
//
// fmlalb - indexed

fmlalb  z0.h, z0.b, z0.b[0]  // 01100100-00100000-01010000-00000000
// CHECK-INST: fmlalb  z0.h, z0.b, z0.b[0]
// CHECK-ENCODING: [0x00,0x50,0x20,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 64205000 <unknown>

movprfx z23, z31
fmlalb  z23.h, z13.b, z0.b[7]  // 01100100-00101000-01011101-10110111
// CHECK-INST:  movprfx z23, z31
// CHECK-INST: fmlalb  z23.h, z13.b, z0.b[7]
// CHECK-ENCODING: [0xb7,0x5d,0x28,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 64285db7 <unknown>

fmlalb  z31.h, z31.b, z7.b[15]  // 01100100-00111111-01011111-11111111
// CHECK-INST: fmlalb  z31.h, z31.b, z7.b[15]
// CHECK-ENCODING: [0xff,0x5f,0x3f,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 643f5fff <unknown>


// fmlalb - group

fmlalb  z0.h, z0.b, z0.b  // 01100100-10100000-10001000-00000000
// CHECK-INST: fmlalb  z0.h, z0.b, z0.b
// CHECK-ENCODING: [0x00,0x88,0xa0,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 64a08800 <unknown>

movprfx z23, z31
fmlalb  z23.h, z13.b, z8.b  // 01100100-10101000-10001001-10110111
// CHECK-INST:  movprfx z23, z31
// CHECK-INST: fmlalb  z23.h, z13.b, z8.b
// CHECK-ENCODING: [0xb7,0x89,0xa8,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 64a889b7 <unknown>

fmlalb  z31.h, z31.b, z31.b  // 01100100-10111111-10001011-11111111
// CHECK-INST: fmlalb  z31.h, z31.b, z31.b
// CHECK-ENCODING: [0xff,0x8b,0xbf,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 64bf8bff <unknown>


//
// FMLALT instructions
//
// fmlalt - indexed

fmlalt  z0.h, z0.b, z0.b[0]  // 01100100-10100000-01010000-00000000
// CHECK-INST: fmlalt  z0.h, z0.b, z0.b[0]
// CHECK-ENCODING: [0x00,0x50,0xa0,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 64a05000 <unknown>

movprfx z23, z31
fmlalt  z23.h, z13.b, z0.b[7]  // 01100100-10101000-01011101-10110111
// CHECK-INST:  movprfx z23, z31
// CHECK-INST: fmlalt  z23.h, z13.b, z0.b[7]
// CHECK-ENCODING: [0xb7,0x5d,0xa8,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 64a85db7 <unknown>

fmlalt  z31.h, z31.b, z7.b[15]  // 01100100-10111111-01011111-11111111
// CHECK-INST: fmlalt  z31.h, z31.b, z7.b[15]
// CHECK-ENCODING: [0xff,0x5f,0xbf,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 64bf5fff <unknown>


// fmlalt - group

fmlalt  z0.h, z0.b, z0.b  // 01100100-10100000-10011000-00000000
// CHECK-INST: fmlalt  z0.h, z0.b, z0.b
// CHECK-ENCODING: [0x00,0x98,0xa0,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 64a09800 <unknown>

movprfx z23, z31
fmlalt  z23.h, z13.b, z8.b  // 01100100-10101000-10011001-10110111
// CHECK-INST:  movprfx z23, z31
// CHECK-INST: fmlalt  z23.h, z13.b, z8.b
// CHECK-ENCODING: [0xb7,0x99,0xa8,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 64a899b7 <unknown>

fmlalt  z31.h, z31.b, z31.b  // 01100100-10111111-10011011-11111111
// CHECK-INST: fmlalt  z31.h, z31.b, z31.b
// CHECK-ENCODING: [0xff,0x9b,0xbf,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 64bf9bff <unknown>