1 /* The option -mslow-flash-data is just for performance tuning, it
2 doesn't totally disable the use of literal pools. But for below
3 simple cases, the use of literal pool should be replaced by
4 movw/movt or read-only constant pool. */
6 /* { dg-do compile } */
7 /* { dg-require-effective-target arm_cortex_m } */
8 /* { dg-require-effective-target arm_thumb2_ok } */
9 /* { dg-options "-O2 -mthumb -mslow-flash-data" } */
14 static char *p
= "Hello World";
37 if (*p
> 0x123456789ABCDEFll
)
53 volatile int *labelref
= &&label1
;
73 /* { dg-final { scan-assembler-not "\\.(float|l\\?double|\d?byte|short|int|long|quad|word)\\s+\[^.\]" } } */