summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2014-02-04 17:18:37 +0000
committerTom Stellard <thomas.stellard@amd.com>2014-02-04 17:18:37 +0000
commit4ee42eaec9031a5be474ca82224807be1f5dd925 (patch)
tree9a9ed2b7c5c3f45c32772a623e4ea5487f982172 /lib
parentefb6bb68637230b666b88c915be6ffa1426afab6 (diff)
downloadllvm-4ee42eaec9031a5be474ca82224807be1f5dd925.tar.gz
llvm-4ee42eaec9031a5be474ca82224807be1f5dd925.tar.bz2
llvm-4ee42eaec9031a5be474ca82224807be1f5dd925.tar.xz
R600: Enable vector fpow.
The OpenCL specs say: "The vector versions of the math functions operate component-wise. The description is per-component." Patch by: Jan Vesely Reviewed-by: Tom Stellard <thomas.stellard@amd.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200773 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/R600/AMDGPUISelLowering.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/R600/AMDGPUISelLowering.cpp b/lib/Target/R600/AMDGPUISelLowering.cpp
index e0ed7216c1..f97a53f0eb 100644
--- a/lib/Target/R600/AMDGPUISelLowering.cpp
+++ b/lib/Target/R600/AMDGPUISelLowering.cpp
@@ -185,6 +185,7 @@ AMDGPUTargetLowering::AMDGPUTargetLowering(TargetMachine &TM) :
setOperationAction(ISD::FABS, VT, Expand);
setOperationAction(ISD::FADD, VT, Expand);
setOperationAction(ISD::FDIV, VT, Expand);
+ setOperationAction(ISD::FPOW, VT, Expand);
setOperationAction(ISD::FFLOOR, VT, Expand);
setOperationAction(ISD::FTRUNC, VT, Expand);
setOperationAction(ISD::FMUL, VT, Expand);