Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions llvm/lib/Target/PowerPC/PPCISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4281,13 +4281,10 @@ SDValue PPCTargetLowering::LowerFormalArguments_32SVR4(
case MVT::v16i8:
case MVT::v8i16:
case MVT::v4i32:
RC = &PPC::VRRCRegClass;
break;
case MVT::v4f32:
RC = &PPC::VRRCRegClass;
break;
case MVT::v2f64:
case MVT::v2i64:
case MVT::f128:
RC = &PPC::VRRCRegClass;
break;
}
Expand Down
9 changes: 9 additions & 0 deletions llvm/test/CodeGen/PowerPC/ppc32-f128-abi.ll
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
; RUN: llc -verify-machineinstrs -mattr=+vsx < %s | FileCheck %s
target triple = "powerpc-unknown-linux-gnu"

; CHECK-LABEL: return_second:
; CHECK: vmr 2, 3
; CHECK-NEXT: blr
define fp128 @return_second(fp128, fp128) {
ret fp128 %1
}
Loading