blob: 5644f7ca701b0953daf6edfa96d9df2cf73d34c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
; RUN: opt -reassociate -S < %s | FileCheck %s
target triple = "armv7-apple-ios"
; CHECK: test
define float @test(float %x, float %y) {
entry:
; CHECK: fmul float %x, %y
; CHECK: fmul float %x, %y
%0 = fmul float %x, %y
%1 = fmul float %y, %x
%2 = fsub float %0, %1
ret float %1
}
|