1 // RUN
: not llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sme-b16b16
2>&1 < %s | FileCheck
%s
3 // --------------------------------------------------------------------------//
4 // Out of range index offset
6 bfsub za.h
[w8
, 8], {z20.h-z21.h
}
7 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[0, 7].
8 // CHECK-NEXT
: bfsub za.h
[w8
, 8], {z20.h-z21.h
}
9 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
11 bfsub za.h
[w8
, -1, vgx4
], {z0.h-z3.h
}
12 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[0, 7].
13 // CHECK-NEXT
: bfsub za.h
[w8
, -1, vgx4
], {z0.h-z3.h
}
14 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
16 // --------------------------------------------------------------------------//
17 // Invalid vector select register
19 bfsub za.h
[w7
, 0], {z20.h-z21.h
}
20 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: operand must
be a register in range
[w8
, w11
]
21 // CHECK-NEXT
: bfsub za.h
[w7
, 0], {z20.h-z21.h
}
22 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
24 bfsub za.h
[w12
, 0, vgx4
], {z20.h-z23.h
}
25 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: operand must
be a register in range
[w8
, w11
]
26 // CHECK-NEXT
: bfsub za.h
[w12
, 0, vgx4
], {z20.h-z23.h
}
27 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
29 // --------------------------------------------------------------------------//
30 // Invalid vector list
32 bfsub za.h
[w8
, 3], {z20.h-z22.h
}
33 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand for instruction
34 // CHECK-NEXT
: bfsub za.h
[w8
, 3], {z20.h-z22.h
}
35 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
37 bfsub za.h
[w8
, 3, vgx4
], {z21.h-z24.h
}
38 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: Invalid vector list
, expected list with
4 consecutive SVE vectors
, where the first vector is
a multiple of
4 and with matching element types
39 // CHECK-NEXT
: bfsub za.h
[w8
, 3, vgx4
], {z21.h-z24.h
}
40 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
42 // --------------------------------------------------------------------------//
45 bfsub za.h
[w8
, 3, vgx4
], {z20.s-z23.s
}
46 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand for instruction
47 // CHECK-NEXT
: bfsub za.h
[w8
, 3, vgx4
], {z20.s-z23.s
}
48 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
50 bfsub za.d
[w8
, 3, vgx4
], {z20.h-z23.h
}
51 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid matrix operand
, expected suffix
.h
52 // CHECK-NEXT
: bfsub za.d
[w8
, 3, vgx4
], {z20.h-z23.h
}
53 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}: