Skip to content

Commit

Permalink
[mips] Fix a bug in function CC_MipsO32_FP64. The second double preci…
Browse files Browse the repository at this point in the history
…sion

argument was not being passed in $f14.
 


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194522 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
ahatanak committed Nov 12, 2013
1 parent fe438bb commit 714e04b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/Target/Mips/MipsISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2208,7 +2208,7 @@ static bool CC_MipsO32_FP32(unsigned ValNo, MVT ValVT,
static bool CC_MipsO32_FP64(unsigned ValNo, MVT ValVT,
MVT LocVT, CCValAssign::LocInfo LocInfo,
ISD::ArgFlagsTy ArgFlags, CCState &State) {
static const uint16_t F64Regs[] = { Mips::D12_64, Mips::D12_64 };
static const uint16_t F64Regs[] = { Mips::D12_64, Mips::D14_64 };

return CC_MipsO32(ValNo, ValVT, LocVT, LocInfo, ArgFlags, State, F64Regs);
}
Expand Down
12 changes: 6 additions & 6 deletions test/CodeGen/Mips/o32_cc.ll
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
; RUN: llc -march=mipsel -mattr=+fp64 < %s | FileCheck -check-prefix=FP64EL %s

; $f12, $f14
; FP32EL-LABEL: testlowercall0:
; FP32EL-DAG: ldc1 $f12, %lo
; FP32EL-DAG: ldc1 $f14, %lo
; CHECK-LABEL: testlowercall0:
; CHECK-DAG: ldc1 $f12, %lo
; CHECK-DAG: ldc1 $f14, %lo
define void @testlowercall0() nounwind {
entry:
tail call void @f0(double 5.000000e+00, double 6.000000e+00) nounwind
Expand All @@ -28,9 +28,9 @@ entry:
declare void @f1(float, float)

; $f12, $f14
; FP32EL-LABEL: testlowercall2:
; FP32EL-DAG: lwc1 $f12, %lo
; FP32EL-DAG: ldc1 $f14, %lo
; CHECK-LABEL: testlowercall2:
; CHECK-DAG: lwc1 $f12, %lo
; CHECK-DAG: ldc1 $f14, %lo
define void @testlowercall2() nounwind {
entry:
tail call void @f2(float 8.000000e+00, double 6.000000e+00) nounwind
Expand Down

0 comments on commit 714e04b

Please sign in to comment.