llvm-6502/test/FrontendC/2010-03-10-arm-asmreg.c

16 lines
216 B
C
Raw Normal View History

// RUN: %llvmgcc %s -S -O0 -o - | FileCheck %s
// pr6552
// XFAIL: *
// XTARGET: arm
extern void bar(unsigned int ip);
// CHECK: mov r0, r12
void foo(void)
{
register unsigned int ip __asm ("ip");
bar(ip);
}