mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 02:32:08 +00:00
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);
|
||
|
}
|
||
|
|