blob: a5a6574e9f46b05880a14f48986e45093ed2bd01 [file] [log] [blame]
Chris Lattner1d4eb8f2010-02-11 06:24:37 +00001; RUN: opt < %s -instcombine -S | FileCheck %s
Chris Lattnerc62877e2007-10-24 05:38:08 +00002
3; PR1738
4define i1 @test1(double %X, double %Y) {
5 %tmp9 = fcmp ord double %X, 0.000000e+00
6 %tmp13 = fcmp ord double %Y, 0.000000e+00
7 %bothcond = and i1 %tmp13, %tmp9
8 ret i1 %bothcond
Chris Lattner1d4eb8f2010-02-11 06:24:37 +00009; CHECK: fcmp ord double %Y, %X
Chris Lattnerc62877e2007-10-24 05:38:08 +000010}