1 ; RUN: opt -instcombine -S < %s | FileCheck %s
3 ; This test is inexplicably still failing, which suggests a
4 ; bug in the host libm.
7 ; This shouldn't fold, because sin(inf) is invalid.
9 ; CHECK: %t = call double @sin(double 0x7FF0000000000000)
10 define double @foo() {
11 %t = call double @sin(double 0x7FF0000000000000)
17 ; CHECK: ret double 0.0
18 define double @bar() {
19 %t = call double @sin(double 0.0)
23 declare double @sin(double)