gcc/testsuite/gcc.target/aarch64/adc-1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2" } */ |
| 3 | |
| 4 | volatile unsigned int w0, w1, w2, w3, w4; |
| 5 | volatile int result; |
| 6 | |
| 7 | void test_si() { |
| 8 | /* { dg-final { scan-assembler "adc\tw\[0-9\]*, w\[0-9\]*, w\[0-9\]*\n" } } */ |
| 9 | w0 = w1 + w2 + (w3 >= w4); |
| 10 | } |
| 11 | |
| 12 | volatile unsigned long long int x0, x1, x2, x3, x4; |
| 13 | |
| 14 | void test_di() { |
| 15 | /* { dg-final { scan-assembler "adc\tx\[0-9\]*, x\[0-9\]*, x\[0-9\]*\n" } } */ |
| 16 | x0 = x1 + x2 + (x3 >= x4); |
| 17 | } |
| 18 |