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

struct tDummyStruct
{
        unsigned long fDummy;
        unsigned long fSample;
};

asm void foo()
{
	lwzu    r1,(sizeof(tDummyStruct))(r2)           // works
	lwzu    r1,sizeof(tDummyStruct)(r2)
}

int main (int argc, char * const argv[]) 
{
	foo();
}