brintos

brintos / llvm-project-archived public Read only

0
0
Text · 454 B · 5817fa7 Raw
20 lines · plain
1; RUN: opt -passes=instcombine -S < %s | FileCheck %s2 3; This shouldn't fold, because sin(inf) is invalid.4; CHECK-LABEL: @foo(5; CHECK:   %t = call double @sin(double 0x7FF0000000000000)6define double @foo() {7  %t = call double @sin(double 0x7FF0000000000000)8  ret double %t9}10 11; This should fold.12; CHECK-LABEL: @bar(13; CHECK:   ret double 0.014define double @bar() {15  %t = call double @sin(double 0.0)16  ret double %t17}18 19declare double @sin(double)20