| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-require-effective-target arm_cpu_cortex_m0_ok } */ |
| 3 |
/* { dg-options "-mpure-code" } */ |
| 4 |
/* { dg-add-options arm_cpu_cortex_m0 }*/ |
| 5 |
|
| 6 |
/* Does not use thumb1_gen_const_int. */ |
| 7 |
int |
| 8 |
test_0 () |
| 9 |
{ |
| 10 |
return 0; |
| 11 |
} |
| 12 |
|
| 13 |
/* Does not use thumb1_gen_const_int. */ |
| 14 |
int |
| 15 |
test_128 () |
| 16 |
{ |
| 17 |
return 128; |
| 18 |
} |
| 19 |
|
| 20 |
/* Does not use thumb1_gen_const_int. */ |
| 21 |
int |
| 22 |
test_264 () |
| 23 |
{ |
| 24 |
return 264; |
| 25 |
} |
| 26 |
|
| 27 |
/* Does not use thumb1_gen_const_int. */ |
| 28 |
int |
| 29 |
test_510 () |
| 30 |
{ |
| 31 |
return 510; |
| 32 |
} |
| 33 |
|
| 34 |
/* Does not use thumb1_gen_const_int. */ |
| 35 |
int |
| 36 |
test_512 () |
| 37 |
{ |
| 38 |
return 512; |
| 39 |
} |
| 40 |
|
| 41 |
/* Does not use thumb1_gen_const_int. */ |
| 42 |
int |
| 43 |
test_764 () |
| 44 |
{ |
| 45 |
return 764; |
| 46 |
} |
| 47 |
|
| 48 |
/* Does not use thumb1_gen_const_int. */ |
| 49 |
int |
| 50 |
test_65536 () |
| 51 |
{ |
| 52 |
return 65536; |
| 53 |
} |
| 54 |
|
| 55 |
int |
| 56 |
test_0x123456 () |
| 57 |
{ |
| 58 |
return 0x123456; |
| 59 |
} |
| 60 |
|
| 61 |
int |
| 62 |
test_0x1123456 () |
| 63 |
{ |
| 64 |
return 0x1123456; |
| 65 |
} |
| 66 |
|
| 67 |
int |
| 68 |
test_0x1000010 () |
| 69 |
{ |
| 70 |
return 0x1000010; |
| 71 |
} |
| 72 |
|
| 73 |
int |
| 74 |
test_0x1000011 () |
| 75 |
{ |
| 76 |
return 0x1000011; |
| 77 |
} |
| 78 |
|
| 79 |
int |
| 80 |
test_m8192 () |
| 81 |
{ |
| 82 |
return -8192; |
| 83 |
} |
| 84 |
|
| 85 |
/* { dg-final { scan-assembler-not "\tldr\tr\[0-9\]+, \\.L\[0-9\]+" } } */ |