mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-23 02:32:11 +00:00
423f19f2da
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156323 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
293 B
LLVM
17 lines
293 B
LLVM
; 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
|
|
}
|
|
|
|
|