mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 16:33:37 +01:00
92058c0473
the "fp" register name is not valid on Darwin, and the "ip" register name was broken for all ARM targets. llvm-svn: 98166
16 lines
216 B
C
16 lines
216 B
C
// 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);
|
|
}
|
|
|