asm-function-10.c   [plain text]


/* APPLE LOCAL file CW asm blocks */
/* { dg-do assemble { target powerpc*-*-* } } */
/* { dg-options "-fasm-blocks" } */

asm void foo() 
{
	lis	r1,(kUndefindedConstant<<10)|(3<<5)|(7)	
	rlwinm	r0,r2,16+kUndefindedConstant,31	/* { dg-error "block assembly operand not recognized" } */
	cmpwi	cr7,r1,kUndefindedConstant-1		/* { dg-error "block assembly operand not recognized" } */
}	/* { dg-error "block assembly operand not recognized" } */

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