]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix gcc.target/aarch64/simd/vmulxd_{f64,f32}_2.c after after IPA-VRP improvement...
authorAndrew Pinski <quic_apinski@quicinc.com>
Sun, 26 Nov 2023 02:50:46 +0000 (18:50 -0800)
committerAndrew Pinski <quic_apinski@quicinc.com>
Sun, 26 Nov 2023 03:00:58 +0000 (19:00 -0800)
Just like the patch against gcc.target/aarch64/movk.c, the issue here
is the two functions, foo32 and foo64 needed to mark as noipa so that
IPA-VRP cannot propagate the return value.

gcc/testsuite/ChangeLog:

PR testsuite/112688
* gcc.target/aarch64/simd/vmulx.x (foo32): Mark as noipa rather
than noinline.
(foo4): Likewise.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
gcc/testsuite/gcc.target/aarch64/simd/vmulx.x

index 8968a64a95cb40a466dd77fea4e9f9f63ad707dc..869e74856461da7632d729a827186cb2a6c90c25 100644 (file)
   while (0)                                                            \
 
 /* Functions used to return values that won't be optimised away.  */
-float32_t  __attribute__ ((noinline))
+float32_t  __attribute__ ((noipa))
 foo32 ()
 {
   return 1.0;
 }
 
-float64_t  __attribute__ ((noinline))
+float64_t  __attribute__ ((noipa))
 foo64 ()
 {
   return 1.0;