1 /* { dg-options "-mabi=32 -mhard-float -mips1 -EB" } */
2 /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
5 foo (double d
, double *x
)
13 register double l1
asm ("$8") = d
;
14 register double l2
asm ("$f20") = 0.0;
15 asm ("#foo" : "=d" (l1
) : "d" (l1
));
16 asm volatile ("#foo" :: "f" (l2
));
20 /* { dg-final { scan-assembler "\tswc1\t\\\$f12,4\\\(\\\$6\\\)\n" } } */
21 /* { dg-final { scan-assembler "\tswc1\t\\\$f13,0\\\(\\\$6\\\)\n" } } */
22 /* { dg-final { scan-assembler "\tmfc1\t\\\$9,\\\$f12\n" } } */
23 /* { dg-final { scan-assembler "\tmfc1\t\\\$8,\\\$f13\n" } } */
24 /* { dg-final { scan-assembler "\tmtc1\t\\\$0,\\\$f20\n" } } */
25 /* { dg-final { scan-assembler "\tmtc1\t\\\$0,\\\$f21\n" } } */
26 /* { dg-final { scan-assembler "\tmtc1\t\\\$9,\\\$f0\n" } } */
27 /* { dg-final { scan-assembler "\tmtc1\t\\\$8,\\\$f1\n" } } */