Rebase.
[official-gcc.git] / gcc / testsuite / gcc.target / mips / umips-swp-6.c
blobb489006ce99008fdc7a0d5f13ed1c973f6b38d76
1 /* { dg-options "-fpeephole2 -mtune=m14k (-mmicromips)" } */
2 /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
4 void MICROMIPS
5 foo (int *r4, int r5, int r6)
7 r6 *= r6;
8 r4[512] = r5;
9 r4[513] = r6;
11 register int r5asm asm ("$5") = r5;
12 register int r6asm asm ("$6") = r6;
13 asm ("#foo" : "=m" (r4[2]) : "d" (r5asm), "d" (r6asm));
17 /* { dg-final { scan-assembler-not "\tswp" } }*/