| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-march=rv32im -mabi=ilp32" } */ |
| 3 |
/* { dg-skip-if "" { *-*-* } { "-O0" } } */ |
| 4 |
|
| 5 |
|
| 6 |
/* This test only applies to RV32. Some of 64bit constants in this test will be put |
| 7 |
into the constant pool in RV64, since RV64 might need one extra instruction to load |
| 8 |
64bit constant. */ |
| 9 |
|
| 10 |
unsigned long long |
| 11 |
rv32_mov_64bit_int1 (void) |
| 12 |
{ |
| 13 |
return 0x739290001LL; |
| 14 |
} |
| 15 |
|
| 16 |
unsigned long long |
| 17 |
rv32_mov_64bit_int2 (void) |
| 18 |
{ |
| 19 |
return 0x839290001LL; |
| 20 |
} |
| 21 |
|
| 22 |
unsigned long long |
| 23 |
rv32_mov_64bit_int3 (void) |
| 24 |
{ |
| 25 |
return 0x3929000139290000LL; |
| 26 |
} |
| 27 |
|
| 28 |
unsigned long long |
| 29 |
rv32_mov_64bit_int4 (void) |
| 30 |
{ |
| 31 |
return 0x3929001139290000LL; |
| 32 |
} |
| 33 |
|
| 34 |
unsigned long long |
| 35 |
rv32_mov_64bit_int5 (void) |
| 36 |
{ |
| 37 |
return 0x14736def39290000LL; |
| 38 |
} |
| 39 |
|
| 40 |
/* { dg-final { scan-assembler-not "lw\t" } } */ |