gcc/testsuite/gcc.target/riscv/pr117690.c
raw| 1 | /* { dg-do run { target { riscv64*-*-* } } } */ |
| 2 | /* { dg-options "-march=rv64gc_zba_zbb -mabi=lp64d" } */ |
| 3 | |
| 4 | #define myconst 0x4fffaffb0fffefffUL; |
| 5 | volatile unsigned long a = myconst; |
| 6 | unsigned long foo() |
| 7 | { |
| 8 | return myconst; |
| 9 | } |
| 10 | |
| 11 | int main() |
| 12 | { |
| 13 | if (foo() != a) |
| 14 | __builtin_abort(); |
| 15 | __builtin_exit (0); |
| 16 | } |