blob: 5644f7ca701b0953daf6edfa96d9df2cf73d34c9 [file] [log] [blame]
Owen Anderson423f19f2012-05-07 20:47:23 +00001; RUN: opt -reassociate -S < %s | FileCheck %s
2
3target triple = "armv7-apple-ios"
4
5; CHECK: test
6define float @test(float %x, float %y) {
7entry:
8; CHECK: fmul float %x, %y
9; CHECK: fmul float %x, %y
10 %0 = fmul float %x, %y
11 %1 = fmul float %y, %x
12 %2 = fsub float %0, %1
13 ret float %1
14}
15
16