Fix MIPS test after recent match.pd changes
authorJeff Law <jeffreyalaw@gmail.com>
Thu, 18 Nov 2021 15:47:21 +0000 (10:47 -0500)
committerJeff Law <jeffreyalaw@gmail.com>
Thu, 18 Nov 2021 15:47:21 +0000 (10:47 -0500)
gcc/testsuite
* gcc.target/mips/octeon-bbit-1.c (f3): Add noipa attribute.

gcc/testsuite/gcc.target/mips/octeon-bbit-1.c

index f91c68b..8adbb26 100644 (file)
@@ -22,7 +22,9 @@ f2 (int i)
     foo ();
 }
 
-NOMIPS16 void
+/* f3 and f4 are equivalent and may be subject to ICF.  The attribute
+   is supposed to prevent that.  */
+NOMIPS16 void __attribute__ ((noipa))
 f3 (int i)
 {
   if (i % 2)