summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/pr52125.c
blob: 2ac80672060814addac7b0fb1ae14f63fea5da13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-options "-mno-gpopt addressing=absolute" } */

int a, b, c, d;

NOMIPS16 void
foo (void)
{
  asm ("%1 %z3"
       : "=m" (a), "=m" (b)
       : "m" (c), "m" (d));
}

/* { dg-final { scan-assembler-not "%hi\\(a\\)" } } */
/* { dg-final { scan-assembler-not "%lo\\(a\\)" } } */
/* { dg-final { scan-assembler "%hi\\(b\\)" } } */
/* { dg-final { scan-assembler "%lo\\(b\\)" } } */
/* { dg-final { scan-assembler-not "%hi\\(c\\)" } } */
/* { dg-final { scan-assembler-not "%lo\\(c\\)" } } */
/* { dg-final { scan-assembler "%hi\\(d\\)" } } */
/* { dg-final { scan-assembler "%lo\\(d\\)" } } */