1 // RUN
: not llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sve
2>&1 < %s| FileCheck
%s
3 // --------------------------------------------------------------------------//
4 // Invalid immediates
(must
be 0.0 or 1.0)
6 fmax z0.h
, p0
/m
, z0.h
, #0.5
7 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: Invalid floating point constant
, expected
0.0 or 1.0.
8 // CHECK-NEXT
: fmax z0.h
, p0
/m
, z0.h
, #0.5
9 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
11 fmax z0.h
, p0
/m
, z0.h
, #-0.0
12 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: Invalid floating point constant
, expected
0.0 or 1.0.
13 // CHECK-NEXT
: fmax z0.h
, p0
/m
, z0.h
, #-0.0
14 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
16 fmax z0.h
, p0
/m
, z0.h
, #0.0000000000000000000000001
17 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: Invalid floating point constant
, expected
0.0 or 1.0.
18 // CHECK-NEXT
: fmax z0.h
, p0
/m
, z0.h
, #0.0000000000000000000000001
19 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
21 fmax z0.h
, p0
/m
, z0.h
, #1.0000000000000000000000001
22 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: Invalid floating point constant
, expected
0.0 or 1.0.
23 // CHECK-NEXT
: fmax z0.h
, p0
/m
, z0.h
, #1.0000000000000000000000001
24 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
26 fmax z0.h
, p0
/m
, z0.h
, #0.9999999999999999999999999
27 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: Invalid floating point constant
, expected
0.0 or 1.0.
28 // CHECK-NEXT
: fmax z0.h
, p0
/m
, z0.h
, #0.9999999999999999999999999
29 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
32 // ------------------------------------------------------------------------- //
33 // Tied operands must match
35 fmax z0.h
, p7
/m
, z1.h
, z31.h
36 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: operand must match destination register
37 // CHECK-NEXT
: fmax z0.h
, p7
/m
, z1.h
, z31.h
38 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
41 // ------------------------------------------------------------------------- //
42 // Invalid element widths.
44 fmax z0.
b, p7
/m
, z0.
b, z31.
b
45 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid element width
46 // CHECK-NEXT
: fmax z0.
b, p7
/m
, z0.
b, z31.
b
47 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
49 fmax z0.h
, p7
/m
, z0.h
, z31.s
50 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid element width
51 // CHECK-NEXT
: fmax z0.h
, p7
/m
, z0.h
, z31.s
52 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
55 // ------------------------------------------------------------------------- //
58 fmax z0.h
, p8
/m
, z0.h
, z31.h
59 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid restricted predicate register
, expected p0.
.p7 (without element suffix)
60 // CHECK-NEXT
: fmax z0.h
, p8
/m
, z0.h
, z31.h
61 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}: