R600: Disable FP exceptions.
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 9 Aug 2014 03:46:58 +0000 (03:46 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 9 Aug 2014 03:46:58 +0000 (03:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215277 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/R600/AMDGPUISelLowering.cpp

index 1a660858b6bceab9fb4a55a647d8a5212b5889a5..89c171b3a9af6f9ab5495de2b0ae5d8a4a51ffc3 100644 (file)
@@ -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;