File: mla.s

package info (click to toggle)
llvm-toolchain-19 1%3A19.1.7-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,998,520 kB
  • sloc: cpp: 6,951,680; ansic: 1,486,157; asm: 913,598; python: 232,024; f90: 80,126; objc: 75,281; lisp: 37,276; pascal: 16,990; sh: 10,009; ml: 5,058; perl: 4,724; awk: 3,523; makefile: 3,167; javascript: 2,504; xml: 892; fortran: 664; cs: 573
file content (98 lines) | stat: -rw-r--r-- 3,715 bytes parent folder | download | duplicates (8)
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
// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+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=+fp8fma < %s \
// RUN:        | llvm-objdump -d --mattr=+fp8fma - | FileCheck %s --check-prefix=CHECK-INST
// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+fp8fma < %s \
// RUN:        | llvm-objdump -d --mattr=-fp8fma - | FileCheck %s --check-prefix=CHECK-UNKNOWN
// Disassemble encoding and check the re-encoding (-show-encoding) matches.
// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+fp8fma < %s \
// RUN:        | sed '/.text/d' | sed 's/.*encoding: //g' \
// RUN:        | llvm-mc -triple=aarch64 -mattr=+fp8fma -disassemble -show-encoding \
// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST

/// VECTOR
// MLA
fmlalb  v0.8h, v0.16b, v0.16b
// CHECK-INST: fmlalb  v0.8h, v0.16b, v0.16b
// CHECK-ENCODING: [0x00,0xfc,0xc0,0x0e]
// CHECK-ERROR: instruction requires: fp8fma
// CHECK-UNKNOWN: 0ec0fc00 <unknown>

fmlalt  v31.8h, v31.16b, v31.16b
// CHECK-INST: fmlalt  v31.8h, v31.16b, v31.16b
// CHECK-ENCODING: [0xff,0xff,0xdf,0x4e]
// CHECK-ERROR: instruction requires: fp8fma
// CHECK-UNKNOWN: 4edfffff <unknown>


// MLALL
fmlallbb  v0.4s, v0.16b, v31.16b
// CHECK-INST: fmlallbb  v0.4s, v0.16b, v31.16b
// CHECK-ENCODING: [0x00,0xc4,0x1f,0x0e]
// CHECK-ERROR: instruction requires: fp8fma
// CHECK-UNKNOWN: 0e1fc400 <unknown>

fmlallbt  v31.4s, v31.16b, v0.16b
// CHECK-INST: fmlallbt  v31.4s, v31.16b, v0.16b
// CHECK-ENCODING: [0xff,0xc7,0x40,0x0e]
// CHECK-ERROR: instruction requires: fp8fma
// CHECK-UNKNOWN: 0e40c7ff <unknown>

fmlalltb  v31.4s, v31.16b, v0.16b
// CHECK-INST: fmlalltb  v31.4s, v31.16b, v0.16b
// CHECK-ENCODING: [0xff,0xc7,0x00,0x4e]
// CHECK-ERROR: instruction requires: fp8fma
// CHECK-UNKNOWN: 4e00c7ff <unknown>

fmlalltt  v0.4s, v0.16b, v31.16b
// CHECK-INST: fmlalltt  v0.4s, v0.16b, v31.16b
// CHECK-ENCODING: [0x00,0xc4,0x5f,0x4e]
// CHECK-ERROR: instruction requires: fp8fma
// CHECK-UNKNOWN: 4e5fc400 <unknown>

fmlalltt v31.4s, v31.16b, v31.16b  // 01001110-01011111-11000111-11111111
// CHECK-INST: fmlalltt v31.4s, v31.16b, v31.16b
// CHECK-ENCODING: [0xff,0xc7,0x5f,0x4e]
// CHECK-ERROR: instruction requires: fp8
// CHECK-UNKNOWN: 4e5fc7ff <unknown>

//INDEXED
// MLA
fmlalb  v31.8h, v0.16b, v0.b[0]
// CHECK-INST: fmlalb  v31.8h, v0.16b, v0.b[0]
// CHECK-ENCODING: [0x1f,0x00,0xc0,0x0f]
// CHECK-ERROR: instruction requires: fp8fma
// CHECK-UNKNOWN: 0fc0001f <unknown>

fmlalt  v31.8h, v0.16b, v0.b[15]
// CHECK-INST: fmlalt  v31.8h, v0.16b, v0.b[15]
// CHECK-ENCODING: [0x1f,0x08,0xf8,0x4f]
// CHECK-ERROR: instruction requires: fp8fma
// CHECK-UNKNOWN: 4ff8081f <unknown>

// MLALL
fmlallbb  v31.4s, v0.16b, v7.b[0]
// CHECK-INST: fmlallbb  v31.4s, v0.16b, v7.b[0]
// CHECK-ENCODING: [0x1f,0x80,0x07,0x2f]
// CHECK-ERROR: instruction requires: fp8fma
// CHECK-UNKNOWN: 2f07801f <unknown>

fmlalltt  v31.4s, v0.16b, v7.b[0]
// CHECK-INST: fmlalltt  v31.4s, v0.16b, v7.b[0]
// CHECK-ENCODING: [0x1f,0x80,0x47,0x6f]
// CHECK-ERROR: instruction requires: fp8fma
// CHECK-UNKNOWN: 6f47801f <unknown>

fmlalltb  v0.4s, v31.16b, v7.b[15]
// CHECK-INST: fmlalltb  v0.4s, v31.16b, v7.b[15]
// CHECK-ENCODING: [0xe0,0x8b,0x3f,0x6f]
// CHECK-ERROR: instruction requires: fp8fma
// CHECK-UNKNOWN: 6f3f8be0 <unknown>

fmlallbt  v0.4s, v31.16b, v0.b[15]
// CHECK-INST: fmlallbt  v0.4s, v31.16b, v0.b[15]
// CHECK-ENCODING: [0xe0,0x8b,0x78,0x2f]
// CHECK-ERROR: instruction requires: fp8fma
// CHECK-UNKNOWN: 2f788be0 <unknown>