1 /* { dg-do assemble } */
2 /* { dg-options "-O2" } */
8 asm volatile ("mov%z0 %1, %0": "=m" (foo
): "iq" (-23));
9 asm volatile ("add%z0 %1, %0": "+m" (foo
): "iq" (23));
10 asm volatile ("mov%z0 %1, %0": "=q" (foo
): "iq" (-23));
11 asm volatile ("add%z0 %1, %0": "+q" (foo
): "iq" (23));
18 asm volatile ("mov%z0 %1, %0": "=m" (foo
): "ir" (-23));
19 asm volatile ("add%z0 %1, %0": "+m" (foo
): "ir" (23));
20 asm volatile ("mov%z0 %1, %0": "=r" (foo
): "ir" (-23));
21 asm volatile ("add%z0 %1, %0": "+r" (foo
): "ir" (23));
23 asm volatile ("pop%z0 %0": "=m" (foo
));
24 asm volatile ("pop%z0 %0": "=r" (foo
));
31 asm volatile ("mov%z0 %1, %0": "=m" (foo
): "ir" (-23));
32 asm volatile ("add%z0 %1, %0": "+m" (foo
): "ir" (23));
33 asm volatile ("mov%z0 %1, %0": "=r" (foo
): "ir" (-23));
34 asm volatile ("add%z0 %1, %0": "+r" (foo
): "ir" (23));
37 if (sizeof (void *) == sizeof (int))
39 asm volatile ("pop%z0 %0": "=m" (foo
));
40 asm volatile ("pop%z0 %0": "=r" (foo
));
48 if (sizeof (void *) == sizeof (long long))
51 asm volatile ("mov%z0 %1, %0": "=m" (foo
): "er" (-23));
52 asm volatile ("add%z0 %1, %0": "+m" (foo
): "er" (23));
53 asm volatile ("mov%z0 %1, %0": "=r" (foo
): "er" (-23));
54 asm volatile ("add%z0 %1, %0": "+r" (foo
): "er" (23));
56 asm volatile ("pop%z0 %0": "=m" (foo
));
57 asm volatile ("pop%z0 %0": "=r" (foo
));