gcc/testsuite/gcc.target/arm/asm-flag-7.c
raw| 1 | /* Test that "=@cc*" works with MEM_P RTX */ |
| 2 | /* PR target/102941 */ |
| 3 | /* { dg-do compile } */ |
| 4 | /* { dg-options "-O" } */ |
| 5 | /* { dg-skip-if "" { arm_thumb1 } } */ |
| 6 | |
| 7 | #ifndef __GCC_ASM_FLAG_OUTPUTS__ |
| 8 | #error "missing preprocessor define" |
| 9 | #endif |
| 10 | int test_cmpu_x; |
| 11 | |
| 12 | void f(long *); |
| 13 | long |
| 14 | test_cmpu_y() { |
| 15 | long le; |
| 16 | f(&le); |
| 17 | __asm__("cmp %" |
| 18 | "[x], %" |
| 19 | "[y]" |
| 20 | : "=@ccls"(le) |
| 21 | : [x] ""(test_cmpu_x), [y] ""(test_cmpu_y)); |
| 22 | return le; |
| 23 | } |