mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
Don't try to constant fold libm functions with non-finite arguments.
Usually we wouldn't do this anyway because llvm_fenv_testexcept would return an exception, but we have seen some cases where neither errno nor fenv detect an exception on arm-linux. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114893 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1,10 +1,5 @@
|
||||
; RUN: opt -instcombine -S < %s | FileCheck %s
|
||||
|
||||
; This test is inexplicably still failing, which suggests a bug in the host
|
||||
; libm. It appears that sin(inf) returns NaN without setting a floating point
|
||||
; exception.
|
||||
; XFAIL: arm-pc-linux-gnu
|
||||
|
||||
; This shouldn't fold, because sin(inf) is invalid.
|
||||
; CHECK: @foo
|
||||
; CHECK: %t = call double @sin(double 0x7FF0000000000000)
|
||||
|
||||
Reference in New Issue
Block a user