0013-committed-RISC-V-Fix-minor-testsuite-problem-with-zi.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. From 03dc33028f375035adadbcc93fecfae30717ea2b Mon Sep 17 00:00:00 2001
  2. From: Jeff Law <jlaw@ventanamicro.com>
  3. Date: Fri, 25 Aug 2023 16:23:06 -0600
  4. Subject: [PATCH 13/30] [committed] RISC-V: Fix minor testsuite problem with
  5. zicond
  6. I thought I had already fixed this, but clearly if I did, I didn't include it
  7. in any upstream commits.
  8. With -Og the optimizers are hindered in various ways and this prevents using
  9. zicond. So skip this test with -Og (it was already being skipped at -O0).
  10. gcc/testsuite
  11. * gcc.target/riscv/zicond-primitiveSemantics.c: Disable for -Og.
  12. ---
  13. gcc/testsuite/gcc.target/riscv/zicond-primitiveSemantics.c | 2 +-
  14. 1 file changed, 1 insertion(+), 1 deletion(-)
  15. diff --git a/gcc/testsuite/gcc.target/riscv/zicond-primitiveSemantics.c b/gcc/testsuite/gcc.target/riscv/zicond-primitiveSemantics.c
  16. index 76c5019a992..47d4e4c5683 100644
  17. --- a/gcc/testsuite/gcc.target/riscv/zicond-primitiveSemantics.c
  18. +++ b/gcc/testsuite/gcc.target/riscv/zicond-primitiveSemantics.c
  19. @@ -1,7 +1,7 @@
  20. /* { dg-do compile } */
  21. /* { dg-options "-march=rv64gc_zicond -mabi=lp64d" { target { rv64 } } } */
  22. /* { dg-options "-march=rv32gc_zicond -mabi=ilp32f" { target { rv32 } } } */
  23. -/* { dg-skip-if "" { *-*-* } {"-O0"} } */
  24. +/* { dg-skip-if "" { *-*-* } {"-O0" "-Og"} } */
  25. long primitiveSemantics_00(long a, long b) { return a == 0 ? 0 : b; }
  26. --
  27. 2.25.1