[arm] Fix testsuite nit when compiling for thumb2
authorRichard Earnshaw <rearnsha@arm.com>
Fri, 18 Oct 2019 19:05:25 +0000 (19:05 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Fri, 18 Oct 2019 19:05:25 +0000 (19:05 +0000)
In thumb2 we now generate a NEGS instruction rather than RSBS, so this
test needs updating.

* gcc.target/arm/negdi-3.c: Update expected output to allow NEGS.

From-SVN: r277192

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/negdi-3.c

index 4267ac48382ff5df4a8018e8237bbd9c487fd15e..58757027b9c6314839676a686dd883656116a21b 100644 (file)
@@ -1,3 +1,7 @@
+2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
+
+       * gcc.target/arm/negdi-3.c: Update expected output to allow NEGS.
+
 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
 
        * gcc.dg/builtin-arith-overflow-3.c: New test.
index 76ddf49fc0ddb8b0287b8e30f72962ea25d12438..1520e9c65df205244a8cf44e4e487c5c658b6ffe 100644 (file)
@@ -8,10 +8,10 @@ signed long long negdi_zero_extendsidi (unsigned int x)
 }
 /*
 Expected output:
-        rsbs    r0, r0, #0
+        rsbs    r0, r0, #0 (arm) | negs        r0, r0 (thumb2)
         sbc     r1, r1, r1
 */
-/* { dg-final { scan-assembler-times "rsb" 1 } } */
+/* { dg-final { scan-assembler-times "rsbs|negs" 1 } } */
 /* { dg-final { scan-assembler-times "sbc" 1 } } */
 /* { dg-final { scan-assembler-times "mov" 0 } } */
 /* { dg-final { scan-assembler-times "rsc" 0 } } */