2 /* { dg-options "-O3" } */
4 /* Check that "m" array references are effective in preventing the
5 array initialization from wandering past a use in the asm, and
6 that the casts remain supported. */
13 __asm__ ("repne scasb"
14 : "=c" (count
), "+D" (p
)
15 : "m" (*(const char (*)[]) p
), "0" (-1), "a" (0));
24 __asm__ ("repne scasb"
25 : "=c" (count
), "+D" (p
)
26 : "m" (*(const char (*)[48]) p
), "0" (-1), "a" (0));
31 f3 (int n
, const char *p
)
35 __asm__ ("repne scasb"
36 : "=c" (count
), "+D" (p
)
37 : "m" (*(const char (*)[n
]) p
), "0" (-1), "a" (0));
45 char buff
[48] = "hello world";