Remove the getAttributesAtIndex and getNumAttrs methods in favor of using the getAttr...
[oota-llvm.git] / test / Transforms / Reassociate / fp-commute.ll
1 ; RUN: opt -reassociate -S < %s | FileCheck %s
2
3 target triple = "armv7-apple-ios"
4
5 declare void @use(float)
6
7 ; CHECK: test
8 define void @test(float %x, float %y) {
9 entry:
10 ; CHECK: fmul float %x, %y
11 ; CHECK: fmul float %x, %y
12   %0 = fmul float %x, %y
13   %1 = fmul float %y, %x
14   %2 = fsub float %0, %1
15   call void @use(float %0)
16   call void @use(float %2)
17   ret void
18 }