gcc/testsuite/gcc.target/i386/apx-ndd-cmov.c
raw| 1 | /* { dg-do compile { target { ! ia32 } } } */ |
| 2 | /* { dg-options "-O2 -m64 -mapxf" } */ |
| 3 | /* { dg-final { scan-assembler-times "cmov(l\.)?e\[^\n\r]*, %eax" 1 } } */ |
| 4 | /* { dg-final { scan-assembler-times "cmov(l\.)?ge\[^\n\r]*, %eax" 1 } } */ |
| 5 | |
| 6 | unsigned int c[4]; |
| 7 | |
| 8 | unsigned long long foo1 (int a, unsigned int b) |
| 9 | { |
| 10 | return a ? b : c[1]; |
| 11 | } |
| 12 | |
| 13 | unsigned int foo3 (int a, int b, unsigned int c, unsigned int d) |
| 14 | { |
| 15 | return a < b ? c : d; |
| 16 | } |