blob: 689fd6cad74d4e30482fad251a3b29989695245e [file] [log] [blame]
Chad Rosier11ab9412014-08-14 15:23:01 +00001; RUN: opt < %s -reassociate -instcombine -S | FileCheck %s
2
3define float @test1(float %A, float %B) {
4; CHECK-LABEL: test1
5; CHECK: %Z = fadd fast float %A, %B
6; CHECK: ret float %Z
7 %W = fadd fast float %B, -5.0
8 %Y = fadd fast float %A, 5.0
9 %Z = fadd fast float %W, %Y
10 ret float %Z
11}