1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Only save vector registers if we've defined for the vector registers.

Fixes PR5309.

llvm-svn: 97554
This commit is contained in:
Eric Christopher 2010-03-02 06:25:00 +00:00
parent ecfbebb9c1
commit ca6b8de375

View File

@ -60,7 +60,7 @@ extern "C" {
// whole compilation callback doesn't exist as far as the caller is
// concerned, so we can't just preserve the callee saved regs.
"stmdb sp!, {r0, r1, r2, r3, lr}\n"
#ifndef __SOFTFP__
#ifdef __VFP_FP__
"fstmfdd sp!, {d0, d1, d2, d3, d4, d5, d6, d7}\n"
#endif
// The LR contains the address of the stub function on entry.
@ -83,7 +83,7 @@ extern "C" {
// 6-20 | D0..D7 | Saved VFP registers
// +--------+
//
#ifndef __SOFTFP__
#ifdef __VFP_FP__
// Restore VFP caller-saved registers.
"fldmfdd sp!, {d0, d1, d2, d3, d4, d5, d6, d7}\n"
#endif