diff --git a/gas/testsuite/gas/arm/armv8_1-m-fpu-mve-1.d b/gas/testsuite/gas/arm/armv8_1-m-fpu-mve-1.d new file mode 100644 index 0000000000..b7d03df44a --- /dev/null +++ b/gas/testsuite/gas/arm/armv8_1-m-fpu-mve-1.d @@ -0,0 +1,7 @@ +#name: Make sure .fpu does not reset MVE feature bits +#objdump: -dr --prefix-addresses --show-raw-insn -marmv8.1-m.main + +.*: +file format .*arm.* + +Disassembly of section .text: +0[0-9a-f]+ <[^>]+> ef22 0844 vadd.i32 q0, q1, q2 diff --git a/gas/testsuite/gas/arm/armv8_1-m-fpu-mve-1.s b/gas/testsuite/gas/arm/armv8_1-m-fpu-mve-1.s new file mode 100644 index 0000000000..ff5ae738da --- /dev/null +++ b/gas/testsuite/gas/arm/armv8_1-m-fpu-mve-1.s @@ -0,0 +1,7 @@ +.arch armv8.1-m.main +.arch_extension mve +.fpu fpv5-sp-d16 +.syntax unified +.thumb +.text +vadd.i32 q0, q1, q2 diff --git a/gas/testsuite/gas/arm/armv8_1-m-fpu-mve-2.d b/gas/testsuite/gas/arm/armv8_1-m-fpu-mve-2.d new file mode 100644 index 0000000000..479f00f91c --- /dev/null +++ b/gas/testsuite/gas/arm/armv8_1-m-fpu-mve-2.d @@ -0,0 +1,8 @@ +#name: Make sure .fpu does not reset MVE feature bits but still adds extra bits +#objdump: -dr --prefix-addresses --show-raw-insn -marmv8.1-m.main + +.*: +file format .*arm.* + +Disassembly of section .text: +0[0-9a-f]+ <[^>]+> ef22 0844 vadd.i32 q0, q1, q2 +0[0-9a-f]+ <[^>]+> ee31 0b02 vadd.f64 d0, d1, d2 diff --git a/gas/testsuite/gas/arm/armv8_1-m-fpu-mve-2.s b/gas/testsuite/gas/arm/armv8_1-m-fpu-mve-2.s new file mode 100644 index 0000000000..80f4e4793e --- /dev/null +++ b/gas/testsuite/gas/arm/armv8_1-m-fpu-mve-2.s @@ -0,0 +1,8 @@ +.arch armv8.1-m.main +.arch_extension mve +.fpu fpv5-d16 +.syntax unified +.thumb +.text +vadd.i32 q0, q1, q2 +vadd.f64 d0, d1, d2