1 /* { dg-do compile } */
2 /* { dg-options "-O1" } */
5 extern int foo1 (void);
15 register int a
asm ("r0") = 5;
16 register char *b
asm ("r1") = temp
;
17 register int c
asm ("r2") = len
;
18 asm volatile ("mov %[r0], %[r0]\n mov %[r1], %[r1]\n mov %[r2], %[r2]\n"
20 : [r0
]"r"(a
), [r1
]"r"(b
), [r2
]"r"(c
));
22 for (i
= 0; i
< len
; i
++)
30 /* { dg-final { scan-assembler "\[\\t \]+mov\ r1,\ r1" } } */