• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt -reassociate -S < %s | FileCheck %s
2
3target triple = "armv7-apple-ios"
4
5declare void @use(float)
6
7; CHECK: test
8define void @test(float %x, float %y) {
9entry:
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}
19