summaryrefslogtreecommitdiff
path: root/test/FrontendC/2010-03-10-arm-asmreg.c
blob: 70d3681ea40e80d864b91910b8861f5d0e7a88b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
}