gcc/testsuite/gcc.target/riscv/redundant-ori.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-march=rv64gcb -mabi=lp64" } */ |
| 3 | /* { dg-skip-if "" { *-*-* } { "-O0" } } */ |
| 4 | |
| 5 | |
| 6 | struct sv XS_constant__make_const_svz_2_0; |
| 7 | struct sv { |
| 8 | int sv_flags; |
| 9 | } XS_constant__make_const() { |
| 10 | struct sv *sv = &XS_constant__make_const_svz_2_0; |
| 11 | sv->sv_flags |= 65536; |
| 12 | if (XS_constant__make_const_svz_2_0.sv_flags & 5) |
| 13 | for (;;) |
| 14 | ; |
| 15 | } |
| 16 | |
| 17 | /* { dg-final { scan-assembler-not "ori\t" } } */ |
| 18 |