Testcase for pr6552. I changed the code to use "ip" instead of "fp" because
[oota-llvm.git] / test / FrontendC / 2010-03-10-arm-asmreg.c
1 // RUN: %llvmgcc %s -S -O0 -o - | FileCheck %s
2 // pr6552
3
4 // XFAIL: *
5 // XTARGET: arm
6
7 extern void bar(unsigned int ip);
8
9 // CHECK: mov r0, r12
10 void foo(void)
11 {
12   register unsigned int ip __asm ("ip");
13   bar(ip);
14 }
15