[llvm] r215277 - R600: Disable FP exceptions.

Matt Arsenault Matthew.Arsenault at amd.com
Fri Aug 8 20:46:59 PDT 2014


Author: arsenm
Date: Fri Aug  8 22:46:58 2014
New Revision: 215277

URL: http://llvm.org/viewvc/llvm-project?rev=215277&view=rev
Log:
R600: Disable FP exceptions.

Modified:
    llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp

Modified: llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp?rev=215277&r1=215276&r2=215277&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp Fri Aug  8 22:46:58 2014
@@ -376,6 +376,11 @@ AMDGPUTargetLowering::AMDGPUTargetLoweri
   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;
 





More information about the llvm-commits mailing list