mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-23 17:32:49 +00:00
23110b3c16
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114241 91177308-0d34-0410-b5e6-96231b3b80d8
24 lines
537 B
LLVM
24 lines
537 B
LLVM
; RUN: opt -instcombine -S < %s | FileCheck %s
|
|
|
|
; This test is inexplicably still failing, which suggests a
|
|
; bug in the host libm.
|
|
; XFAIL: arm-linux
|
|
|
|
; This shouldn't fold, because sin(inf) is invalid.
|
|
; CHECK: @foo
|
|
; CHECK: %t = call double @sin(double 0x7FF0000000000000)
|
|
define double @foo() {
|
|
%t = call double @sin(double 0x7FF0000000000000)
|
|
ret double %t
|
|
}
|
|
|
|
; This should fold.
|
|
; CHECK: @bar
|
|
; CHECK: ret double 0.0
|
|
define double @bar() {
|
|
%t = call double @sin(double 0.0)
|
|
ret double %t
|
|
}
|
|
|
|
declare double @sin(double)
|