mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-10 13:51:37 +00:00
-enable-unsafe-fp-math should not imply -enable-finite-only-fp-math.
llvm-svn: 108254
This commit is contained in:
parent
f57bd9c94d
commit
8cce7c7351
@ -294,7 +294,7 @@ namespace llvm {
|
||||
/// option is specified on the command line. If this returns false (default),
|
||||
/// the code generator is not allowed to assume that FP arithmetic arguments
|
||||
/// and results are never NaNs or +-Infs.
|
||||
bool FiniteOnlyFPMath() { return UnsafeFPMath || FiniteOnlyFPMathOption; }
|
||||
bool FiniteOnlyFPMath() { return FiniteOnlyFPMathOption; }
|
||||
|
||||
/// HonorSignDependentRoundingFPMath - Return true if the codegen must assume
|
||||
/// that the rounding mode of the FPU can change from its default.
|
||||
|
@ -1,5 +1,5 @@
|
||||
; RUN: llc < %s -march=x86 | grep setnp
|
||||
; RUN: llc < %s -march=x86 -enable-unsafe-fp-math | \
|
||||
; RUN: llc < %s -march=x86 -enable-unsafe-fp-math -enable-finite-only-fp-math | \
|
||||
; RUN: not grep setnp
|
||||
|
||||
define i32 @test(float %f) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
; Make sure this testcase codegens to the fabs instruction, not a call to fabsf
|
||||
; RUN: llc < %s -march=x86 -mattr=-sse2,-sse3,-sse | grep fabs\$ | \
|
||||
; RUN: count 2
|
||||
; RUN: llc < %s -march=x86 -mattr=-sse,-sse2,-sse3 -enable-unsafe-fp-math | \
|
||||
; RUN: llc < %s -march=x86 -mattr=-sse,-sse2,-sse3 -enable-unsafe-fp-math -enable-finite-only-fp-math | \
|
||||
; RUN: grep fabs\$ | count 3
|
||||
|
||||
declare float @fabsf(float)
|
||||
|
@ -1,5 +1,5 @@
|
||||
; RUN: llc < %s -march=x86-64 -asm-verbose=false | FileCheck %s
|
||||
; RUN: llc < %s -march=x86-64 -asm-verbose=false -enable-unsafe-fp-math | FileCheck -check-prefix=UNSAFE %s
|
||||
; RUN: llc < %s -march=x86-64 -asm-verbose=false -enable-unsafe-fp-math -enable-finite-only-fp-math | FileCheck -check-prefix=UNSAFE %s
|
||||
; RUN: llc < %s -march=x86-64 -asm-verbose=false -enable-finite-only-fp-math | FileCheck -check-prefix=FINITE %s
|
||||
|
||||
; Some of these patterns can be matched as SSE min or max. Some of
|
||||
|
Loading…
Reference in New Issue
Block a user