]> gcc.gnu.org Git - gcc.git/commitdiff
testsuite/gcc.target/cris/biap.c: Add a Y+=X*2 to the Y+=X*4.
authorHans-Peter Nilsson <hp@axis.com>
Wed, 17 Feb 2021 18:05:35 +0000 (19:05 +0100)
committerHans-Peter Nilsson <hp@axis.com>
Mon, 22 Feb 2021 17:00:53 +0000 (18:00 +0100)
Also, tweak the scan-assembler regexps to include a tab,
lest they may spuriously match file-paths in the emitted
assembly code, should some be added at some point.  And, add
"mul", "move" and (non-addi-)"add" to insns that shouldn't
appear.

gcc/testsuite:
* gcc.target/cris/biap.c: Add a Y+=X*2 to the Y+=X*4.

gcc/testsuite/gcc.target/cris/biap.c

index 1f3b4368a36a2e8af172109eb814540a227aecef..f31e61c20c5f3ade4c0ebe20727ac4cb227d0354 100644 (file)
@@ -2,10 +2,15 @@
    See also PR37939.  */
 /* { dg-do compile } */
 /* { dg-options "-O2" } */
-/* { dg-final { scan-assembler "addi" } } */
-/* { dg-final { scan-assembler-not "lsl" } } */
+/* { dg-final { scan-assembler-times "\taddi" 2 } } */
+/* { dg-final { scan-assembler-not "\tlsl|\tmul|\tmove|\tadd\[^i\]" } } */
 
 int xyzzy (int r10, int r11)
 {
   return r11 * 4 + r10;
 }
+
+int plugh (int r10, int r11)
+{
+  return r11 * 2 + r10;
+}
This page took 0.291732 seconds and 5 git commands to generate.