summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2014-08-09 03:46:58 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2014-08-09 03:46:58 +0000
commit996a0ef99eb84da6e908866b6a451371adcdae04 (patch)
tree32d89626d1b821c6aa13f574192c6c185079f980 /llvm/lib
parentf5f5862a272a3bedb7ccefe5263d3c4f92d6cf6b (diff)
downloadbcm5719-llvm-996a0ef99eb84da6e908866b6a451371adcdae04.tar.gz
bcm5719-llvm-996a0ef99eb84da6e908866b6a451371adcdae04.zip
R600: Disable FP exceptions.
llvm-svn: 215277
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/R600/AMDGPUISelLowering.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/R600/AMDGPUISelLowering.cpp b/llvm/lib/Target/R600/AMDGPUISelLowering.cpp
index 1a660858b6b..89c171b3a9a 100644
--- a/llvm/lib/Target/R600/AMDGPUISelLowering.cpp
+++ b/llvm/lib/Target/R600/AMDGPUISelLowering.cpp
@@ -376,6 +376,11 @@ AMDGPUTargetLowering::AMDGPUTargetLowering(TargetMachine &TM) :
setSchedulingPreference(Sched::RegPressure);
setJumpIsExpensive(true);
+ // SI at least has hardware support for floating point exceptions, but no way
+ // of using or handling them is implemented. They are also optional in OpenCL
+ // (Section 7.3)
+ setHasFloatingPointExceptions(false);
+
setSelectIsExpensive(false);
PredictableSelectIsExpensive = false;
OpenPOWER on IntegriCloud