summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/Reassociate/fp-commute.ll
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@codeaurora.org>2014-06-11 18:28:45 +0000
committerChad Rosier <mcrosier@codeaurora.org>2014-06-11 18:28:45 +0000
commit5ea14e09e9810daab030f1453a4d56701f3c4e1c (patch)
treef3017642e3ecae280d757722c372997c70c75702 /llvm/test/Transforms/Reassociate/fp-commute.ll
parent829cc2e7d924e4c5868774dbb2e5de465affefdf (diff)
downloadbcm5719-llvm-5ea14e09e9810daab030f1453a4d56701f3c4e1c.tar.gz
bcm5719-llvm-5ea14e09e9810daab030f1453a4d56701f3c4e1c.zip
[Reassociate] FileCheckize and cleanup a few testcases. No functional change
intended. llvm-svn: 210685
Diffstat (limited to 'llvm/test/Transforms/Reassociate/fp-commute.ll')
-rw-r--r--llvm/test/Transforms/Reassociate/fp-commute.ll21
1 files changed, 11 insertions, 10 deletions
diff --git a/llvm/test/Transforms/Reassociate/fp-commute.ll b/llvm/test/Transforms/Reassociate/fp-commute.ll
index 025689bb0c1..eac5b5920ac 100644
--- a/llvm/test/Transforms/Reassociate/fp-commute.ll
+++ b/llvm/test/Transforms/Reassociate/fp-commute.ll
@@ -1,18 +1,19 @@
; RUN: opt -reassociate -S < %s | FileCheck %s
-target triple = "armv7-apple-ios"
-
declare void @use(float)
-; CHECK: test
-define void @test(float %x, float %y) {
-entry:
+define void @test1(float %x, float %y) {
+; CHECK-LABEL: test1
; 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
- call void @use(float %0)
- call void @use(float %2)
+; CHECK: fsub float %1, %2
+; CHECK: call void @use(float %{{.*}})
+; CHECK: call void @use(float %{{.*}})
+
+ %1 = fmul float %x, %y
+ %2 = fmul float %y, %x
+ %3 = fsub float %1, %2
+ call void @use(float %1)
+ call void @use(float %3)
ret void
}
OpenPOWER on IntegriCloud