RISC-V uninit-pred-9_b.c failure

Message ID 20221115190806.2756221-1-kevinl@rivosinc.com
State Accepted
Headers
Series RISC-V uninit-pred-9_b.c failure |

Checks

Context Check Description
snail/gcc-patch-check success Github commit url

Commit Message

Kevin Lee Nov. 15, 2022, 7:08 p.m. UTC
  The gimple generated by riscv is identical to that of powerpc64
currently. It seems like the change at r12-4790-4b3a325f07acebf47e82de227ce1d5ba62f5bcae also affected riscv64 like powerpc64 and cris.

gcc/testsuite/ChangeLog:

	* gcc.dg/uninit-pred-9_b.c: Xfail for riscv64
---
 gcc/testsuite/gcc.dg/uninit-pred-9_b.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Jeff Law Nov. 15, 2022, 7:43 p.m. UTC | #1
On 11/15/22 12:08, Kevin Lee wrote:
> The gimple generated by riscv is identical to that of powerpc64
> currently. It seems like the change at r12-4790-4b3a325f07acebf47e82de227ce1d5ba62f5bcae also affected riscv64 like powerpc64 and cris.
>
> gcc/testsuite/ChangeLog:
>
> 	* gcc.dg/uninit-pred-9_b.c: Xfail for riscv64

Note that if we start adjusting BRANCH_COST then this may need further 
refinement, but I think it's fine for now.


OK

jeff
  

Patch

diff --git a/gcc/testsuite/gcc.dg/uninit-pred-9_b.c b/gcc/testsuite/gcc.dg/uninit-pred-9_b.c
index 53c4a5399ea..843f5323713 100644
--- a/gcc/testsuite/gcc.dg/uninit-pred-9_b.c
+++ b/gcc/testsuite/gcc.dg/uninit-pred-9_b.c
@@ -17,7 +17,7 @@  int foo (int n, int l, int m, int r)
 
   if (l > 100)
     if ( (n <= 9) &&  (m < 100)  && (r < 19) )
-      blah(v); /* { dg-bogus "uninitialized" "bogus warning" { xfail powerpc64*-*-* cris-*-* } } */
+      blah(v); /* { dg-bogus "uninitialized" "bogus warning" { xfail powerpc64*-*-* cris-*-* riscv64*-*-* } */
 
   if ( (n <= 8) &&  (m < 99)  && (r < 19) )
       blah(v); /* { dg-bogus "uninitialized" "pr101674" { xfail mmix-*-* } } */