File: dot-diagnostic.s

package info (click to toggle)
llvm-toolchain-19 1%3A19.1.7-3
  • links: PTS, VCS
  • area: main
  • in suites: 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 (59 lines) | stat: -rw-r--r-- 2,366 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
// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+fp8dot2,+fp8dot4 2>&1 < %s| FileCheck %s

// --------------------------------------------------------------------------//
// Element size extension incorrect

fdot  v31.4h, v0.8h, v0.8b
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// CHECK-NEXT: fdot  v31.4h, v0.8h, v0.8b
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:

fdot  v31.8h, v0.16b, v31.16h
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid vector kind qualifier
// CHECK-NEXT: fdot  v31.8h, v0.16b, v31.16h
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:

fdot  v0.2s, v0.8s, v31.8b
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid vector kind qualifier
// CHECK-NEXT: fdot  v0.2s, v0.8s, v31.8b
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:

fdot  v31.4s, v0, v31.16b
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// CHECK-NEXT: fdot  v31.4s, v0, v31.16b
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:

//--------------------------------------------------------------------------//
// Last Register range is between 0-15

fdot  v31.4h, v31.8b, v16.2b[0]
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// CHECK-NEXT: fdot  v31.4h, v31.8b, v16.2b[0]
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:

fdot  v0.8h, v0.16b, v16.2b[7]
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// CHECK-NEXT: fdot  v0.8h, v0.16b, v16.2b[7]
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:

// --------------------------------------------------------------------------//
// Out of range index
fdot  v31.4h, v31.8b, v15.2b[-1]
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: vector lane must be an integer in range [0, 7].
// CHECK-NEXT: fdot  v31.4h, v31.8b, v15.2b[-1]
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:

fdot  v0.8h, v0.16b, v15.2b[8]
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: vector lane must be an integer in range [0, 7].
// CHECK-NEXT: fdot  v0.8h, v0.16b, v15.2b[8]
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:

fdot  v0.2s, v0.8b, v31.4b[-1]
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: vector lane must be an integer in range [0, 3].
// CHECK-NEXT: fdot  v0.2s, v0.8b, v31.4b[-1]
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:

fdot  v0.4s, v31.16b, v0.4b[4]
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: vector lane must be an integer in range [0, 3].
// CHECK-NEXT: fdot  v0.4s, v31.16b, v0.4b[4]
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: