diff options
Diffstat (limited to 'llvm/test/Transforms')
| -rw-r--r-- | llvm/test/Transforms/Reassociate/fp-commute.ll | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/llvm/test/Transforms/Reassociate/fp-commute.ll b/llvm/test/Transforms/Reassociate/fp-commute.ll index 5644f7ca701..025689bb0c1 100644 --- a/llvm/test/Transforms/Reassociate/fp-commute.ll +++ b/llvm/test/Transforms/Reassociate/fp-commute.ll @@ -2,15 +2,17 @@ target triple = "armv7-apple-ios" +declare void @use(float) + ; CHECK: test -define float @test(float %x, float %y) { +define void @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 + call void @use(float %0) + call void @use(float %2) + ret void } - - |

