OSDN Git Service

PowerPC: Lowering floor intrinsic for Altivec
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Thu, 15 Nov 2012 20:56:03 +0000 (20:56 +0000)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Thu, 15 Nov 2012 20:56:03 +0000 (20:56 +0000)
commite95ed2b7afbe37f1831cb6d8d46d09ccb5cd6b7f
tree2fce84120fec81262df81d218a69baab6e6bc288
parent71e5ea88604161e2e1effe20486ab3bcb363645f
PowerPC: Lowering floor intrinsic for Altivec

This patch lowers the llvm.floor, llvm.ceil, llvm.trunc, and
llvm.nearbyint to Altivec instruction when using 4 single-precision
float vectors.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168086 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/PowerPC/PPCInstrAltivec.td
test/CodeGen/PowerPC/vec_rounding.ll [new file with mode: 0644]