gcc/testsuite/gcc.target/riscv/pr105314.c
raw| 1 | /* PR rtl-optimization/105314 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-skip-if "" { *-*-* } { "-march=*zicond*" "-O0" "-Og" "-Os" "-Oz" } } */ |
| 4 | /* { dg-options "-fdump-rtl-ce1" } */ |
| 5 | |
| 6 | long |
| 7 | foo (long a, long b, long c) |
| 8 | { |
| 9 | if (c) |
| 10 | a = 0; |
| 11 | return a; |
| 12 | } |
| 13 | |
| 14 | /* { dg-final { scan-rtl-dump-times "if-conversion succeeded through noce_try_store_flag_mask" 1 "ce1" } } */ |
| 15 | /* { dg-final { scan-assembler-not "\\s(?:beq|bne)\\s" } } */ |