Fix a pair of issues that caused an infinite loop in reassociate.
[oota-llvm.git] / test / Transforms / Reassociate / fp-expr.ll
1 ; RUN: opt -S -reassociate < %s | FileCheck %s
2
3 define void @test1() {
4 ; CHECK-LABEL: @test1
5 ; CHECK: call
6 ; CHECK: fsub
7 ; CHECK: fadd
8   %tmp = tail call <4 x float> @blam()
9   %tmp23 = fsub fast <4 x float> undef, %tmp
10   %tmp24 = fadd fast <4 x float> %tmp23, undef
11   tail call void @wombat(<4 x float> %tmp24)
12   ret void
13 }
14
15 ; Function Attrs: optsize
16 declare <4 x float> @blam()
17
18 ; Function Attrs: optsize
19 declare void @wombat(<4 x float>)
20