[llvm-commits] [llvm] r106662 - /llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp

Rafael Espindola espindola at google.com
Thu Jun 24 08:27:55 PDT 2010


> Wow, this is a pretty bad limitation.  Does GCC have the same limitation?

Not sure if I am testing the right thing, but compiling

int f(void);
int g(void) {
  asm ("" : : : "r7");
  return f();
}

I get

g:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	stmfd	sp!, {r7, lr}
	ldmfd	sp!, {r7, lr}
	b	f
	.size	g, .-g

I don't know much about thumb2, why can't the linker make this work?

> -Chris

Cheers,
-- 
Rafael Ávila de Espíndola




More information about the llvm-commits mailing list