diff options
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/gas/aarch64/illegal-nofp16.d | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/aarch64/illegal-nofp16.l | 3 | ||||
-rw-r--r-- | gas/testsuite/gas/aarch64/illegal-nofp16.s | 7 |
3 files changed, 12 insertions, 0 deletions
diff --git a/gas/testsuite/gas/aarch64/illegal-nofp16.d b/gas/testsuite/gas/aarch64/illegal-nofp16.d new file mode 100644 index 0000000..669e85d --- /dev/null +++ b/gas/testsuite/gas/aarch64/illegal-nofp16.d @@ -0,0 +1,2 @@ +#as: -march=armv8.2-a+nofp16 -mno-verbose-error +#error-output: illegal-nofp16.l diff --git a/gas/testsuite/gas/aarch64/illegal-nofp16.l b/gas/testsuite/gas/aarch64/illegal-nofp16.l new file mode 100644 index 0000000..99d586b --- /dev/null +++ b/gas/testsuite/gas/aarch64/illegal-nofp16.l @@ -0,0 +1,3 @@ +[^:]*: Assembler messages: +^[^:]+:4: Error: selected processor does not support `fneg h0,h1' +^[^:]+:6: Error: selected processor does not support `fneg v0\.8h,v1\.8h' diff --git a/gas/testsuite/gas/aarch64/illegal-nofp16.s b/gas/testsuite/gas/aarch64/illegal-nofp16.s new file mode 100644 index 0000000..7718444 --- /dev/null +++ b/gas/testsuite/gas/aarch64/illegal-nofp16.s @@ -0,0 +1,7 @@ +// Test -march=armv8.2-a+nofp16 to only disable fp16, not fp. +.text + fneg s0, s1 + fneg h0, h1 + fneg v0.4s, v1.4s + fneg v0.8h, v1.8h + neg v0.16b, v1.16b |