1 /* Check that constant constraints like "i", "n" and "s" can be used in
2 cases where the operand is an initializer constant. */
3 /* { dg-require-effective-target nonpic } */
8 static inline void __attribute__((__always_inline__))
11 asm volatile ("" :: "n" (x), "i" (x));
14 static inline void __attribute__((__always_inline__))
17 asm volatile ("" :: "s" (x), "i" (x));
34 asm volatile ("" :: "s" (x), "i" (x));
35 /* At the time of writing, &x[1] is decomposed before reaching expand
36 when compiling with -O0. */
37 asm volatile ("" :: "s" ("string"), "i" ("string"));
38 asm volatile ("" :: "s" (__FILE__), "i" (__FILE__));
39 asm volatile ("" :: "s" (__FUNCTION__), "i" (__FUNCTION__));