mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-23 05:52:40 +00:00
Check for FiniteOnlyFPMath as well.
llvm-svn: 107904
This commit is contained in:
parent
69b391b5b1
commit
5307ec12d7
@ -2295,7 +2295,7 @@ SDValue
|
||||
ARMTargetLowering::getVFPCmp(SDValue &LHS, SDValue &RHS, ISD::CondCode CC,
|
||||
SDValue &ARMCC, SelectionDAG &DAG,
|
||||
DebugLoc dl) const {
|
||||
if (UnsafeFPMath &&
|
||||
if (UnsafeFPMath && FiniteOnlyFPMath() &&
|
||||
(CC == ISD::SETEQ || CC == ISD::SETOEQ ||
|
||||
CC == ISD::SETNE || CC == ISD::SETUNE) &&
|
||||
canBitcastToInt(LHS.getNode()) && canBitcastToInt(RHS.getNode())) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: llc < %s -march=arm -mattr=+vfp2 -enable-unsafe-fp-math | FileCheck %s
|
||||
; RUN: llc < %s -march=arm -mattr=+vfp2 -enable-unsafe-fp-math -enable-finite-only-fp-math | FileCheck %s
|
||||
; rdar://7461510
|
||||
|
||||
define arm_apcscc i32 @t1(float* %a, float* %b) nounwind {
|
||||
|
Loading…
x
Reference in New Issue
Block a user