gcc/testsuite/gcc.target/loongarch/cmov_ii.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2" } */ |
| 3 | /* { dg-final { scan-assembler "test:.*xor.*maskeqz.*masknez.*or.*" } } */ |
| 4 | |
| 5 | extern void foo_ii (int *, int *, int *, int *); |
| 6 | |
| 7 | int |
| 8 | test (void) |
| 9 | { |
| 10 | int a, b; |
| 11 | int c, d, out; |
| 12 | foo_ii (&a, &b, &c, &d); |
| 13 | out = a == b ? c : d; |
| 14 | return out; |
| 15 | } |