mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Testcase for pr6552. I changed the code to use "ip" instead of "fp" because
the "fp" register name is not valid on Darwin, and the "ip" register name was broken for all ARM targets. llvm-svn: 98166
This commit is contained in:
parent
8e7cdbef01
commit
92058c0473
15
test/FrontendC/2010-03-10-arm-asmreg.c
Normal file
15
test/FrontendC/2010-03-10-arm-asmreg.c
Normal file
@ -0,0 +1,15 @@
|
||||
// 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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user