Rebase.
[official-gcc.git] / gcc / testsuite / gcc.target / mips / fpr-moves-6.c
blob30a83ec66f33b9fb87070f0e233ffaababf6f9f5
1 /* { dg-options "-mabi=64 -mhard-float -EB" } */
2 /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
3 /* { dg-require-effective-target mips_newabi_large_long_double } */
5 NOMIPS16 void
6 foo (long double d, long double *x)
8 *x = d;
11 NOMIPS16 long double
12 bar (long double d, long double *x)
14 register long double l1 asm ("$8") = d;
15 register long double l2 asm ("$10") = x[1];
16 register long double l3 asm ("$f20") = 0.0;
17 asm ("#foo" : "=d" (l1) : "d" (l1));
18 asm ("#foo" : "=d" (l2) : "d" (l2));
19 asm volatile ("#foo" :: "f" (l3));
20 x[1] = l1;
21 return l2;
24 /* { dg-final { scan-assembler "\tsdc1\t\\\$f12,0\\\(\\\$6\\\)\n" } } */
25 /* { dg-final { scan-assembler "\tsdc1\t\\\$f13,8\\\(\\\$6\\\)\n" } } */
26 /* { dg-final { scan-assembler "\tdmfc1\t\\\$8,\\\$f12\n" } } */
27 /* { dg-final { scan-assembler "\tdmfc1\t\\\$9,\\\$f13\n" } } */
28 /* { dg-final { scan-assembler "\tld\t\\\$10,16\\\(\\\$6\\\)\n" } } */
29 /* { dg-final { scan-assembler "\tld\t\\\$11,24\\\(\\\$6\\\)\n" } } */
30 /* { dg-final { scan-assembler "\tdmtc1\t\\\$0,\\\$f20\n" } } */
31 /* { dg-final { scan-assembler "\tdmtc1\t\\\$0,\\\$f21\n" } } */
32 /* { dg-final { scan-assembler "\tsd\t\\\$8,16\\\(\\\$6\\\)\n" } } */
33 /* { dg-final { scan-assembler "\tsd\t\\\$9,24\\\(\\\$6\\\)\n" } } */
34 /* { dg-final { scan-assembler "\tdmtc1\t\\\$10,\\\$f0\n" } } */
35 /* { dg-final { scan-assembler "\tdmtc1\t\\\$11,\\\$f2\n" } } */