[llvm-commits] [llvm] r167922 - /llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp

Hal Finkel hfinkel at anl.gov
Wed Nov 14 09:47:17 PST 2012


----- Original Message -----
> From: "Craig Topper" <craig.topper at gmail.com>
> To: "Hal Finkel" <hfinkel at anl.gov>
> Cc: llvm-commits at cs.uiuc.edu, "Adhemerval Zanella" <azanella at linux.vnet.ibm.com>
> Sent: Wednesday, November 14, 2012 10:10:51 AM
> Subject: Re: [llvm-commits] [llvm] r167922 - /llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
> 
> I know nothing about PowerPC. I was just trying llvm.floor on
> different targets.

That's why I copied Adhemerval :)

Adhemerval, can you please either add lowering to the correct instruction or verify that the current expansion makes sense?

Thanks again,
Hal

> 
> On Wednesday, November 14, 2012, Hal Finkel wrote:
> 
> 
> ----- Original Message -----
> > From: "Craig Topper" < craig.topper at gmail.com >
> > To: llvm-commits at cs.uiuc.edu
> > Sent: Wednesday, November 14, 2012 2:11:25 AM
> > Subject: [llvm-commits] [llvm] r167922 -
> > /llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
> > 
> > Author: ctopper
> > Date: Wed Nov 14 02:11:25 2012
> > New Revision: 167922
> > 
> > URL: http://llvm.org/viewvc/llvm-project?rev=167922&view=rev
> > Log:
> > Set FFLOOR of vectors to expand to keep intruction selection from
> > failing.
> 
> We should have a test case for this. Also, this should match to the
> vrfim instruction, right? We already have an instruction definition,
> but it maps only to int_ppc_altivec_vrfim.
> 
> Thanks again,
> Hal
> 
> > 
> > Modified:
> > llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
> > 
> > Modified: llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
> > URL:
> > http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp?rev=167922&r1=167921&r2=167922&view=diff
> > ==============================================================================
> > --- llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp (original)
> > +++ llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp Wed Nov 14
> > 02:11:25 2012
> > @@ -347,6 +347,7 @@
> > setOperationAction(ISD::UREM, VT, Expand);
> > setOperationAction(ISD::FDIV, VT, Expand);
> > setOperationAction(ISD::FNEG, VT, Expand);
> > + setOperationAction(ISD::FFLOOR, VT, Expand);
> > setOperationAction(ISD::EXTRACT_VECTOR_ELT, VT, Expand);
> > setOperationAction(ISD::INSERT_VECTOR_ELT, VT, Expand);
> > setOperationAction(ISD::BUILD_VECTOR, VT, Expand);
> > 
> > 
> > _______________________________________________
> > llvm-commits mailing list
> > llvm-commits at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
> > 
> 
> --
> Hal Finkel
> Postdoctoral Appointee
> Leadership Computing Facility
> Argonne National Laboratory
> 
> 
> --
> ~Craig
> 

-- 
Hal Finkel
Postdoctoral Appointee
Leadership Computing Facility
Argonne National Laboratory



More information about the llvm-commits mailing list