]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix testsuite fallout from pr104960 change
authorJeff Law <jeffreyalaw@gmail.com>
Sun, 20 Mar 2022 21:29:29 +0000 (17:29 -0400)
committerJeff Law <jeffreyalaw@gmail.com>
Sun, 20 Mar 2022 21:29:29 +0000 (17:29 -0400)
Recent changes twiddled the output for s390/arch13/sel-1.c causing testsuite failures.  As far as I can tell both sequences are equivalent from a performance standpoint.   This patch changes the test to accept both forms.

gcc/testsuite
* gcc.target/s390/arch13/sel-1.c: Adjust expected output.

gcc/testsuite/gcc.target/s390/arch13/sel-1.c

index 301a133ea9125ce73432c35b51457e7e2e24888e..52ca078f5ef80a85df1edcb69eb1b3e0b049327f 100644 (file)
@@ -10,7 +10,7 @@ sel32 (int a, int then, int els)
    too expensive.  THe reason is that additional load instructions
    emitted by ifcvt are part of the costs although these should get
    removed later.  */
-/* { dg-final { scan-assembler-times "\tselrh\t" 1 } } */
+/* { dg-final { scan-assembler-times "\tselr(?:h|le)\t" 1 } } */
 
 long long
 sel64 (int a, long long then, long long els)
@@ -18,4 +18,4 @@ sel64 (int a, long long then, long long els)
   return a > 42 ? then : els;
 }
 
-/* { dg-final { scan-assembler-times "\tselgrh\t" 1 } } */
+/* { dg-final { scan-assembler-times "\tselgr(?:h|le)\t" 1 } } */