aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.apple/asm-function-17.c
blob: 457b8836e5c760e172723ed0bb2f00dbc1dd15dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* APPLE LOCAL file CW asm blocks */
/* { dg-do assemble { target powerpc*-*-* } } */
/* { dg-options "-fasm-blocks" } */

typedef struct astruct {
  int fieldy;
  int fieldx;
} atypedef;

void fun2 ()
{
  register int R3 asm ("r3");
  register int R4 asm ("r4");

  asm {
    stw R4, atypedef.fieldx(R3)
  }
}

int main()
{
	return 0;
}