summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/Reassociate/fast-MissedTree.ll
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2017-11-09 18:26:49 +0000
committerSanjay Patel <spatel@rotateright.com>2017-11-09 18:26:49 +0000
commitc019c39f4f75320aefb4142fffc2f3c3cea44e9e (patch)
treefcdd9af6fa749fe8c5f23dfcfc70d1bc3f52de31 /llvm/test/Transforms/Reassociate/fast-MissedTree.ll
parent0d66010454812149603fb3676e53fb1f521e4a7d (diff)
downloadbcm5719-llvm-c019c39f4f75320aefb4142fffc2f3c3cea44e9e.tar.gz
bcm5719-llvm-c019c39f4f75320aefb4142fffc2f3c3cea44e9e.zip
[Reassociate] auto-generate test checks; NFC
llvm-svn: 317819
Diffstat (limited to 'llvm/test/Transforms/Reassociate/fast-MissedTree.ll')
-rw-r--r--llvm/test/Transforms/Reassociate/fast-MissedTree.ll16
1 files changed, 9 insertions, 7 deletions
diff --git a/llvm/test/Transforms/Reassociate/fast-MissedTree.ll b/llvm/test/Transforms/Reassociate/fast-MissedTree.ll
index 689fd6cad74..8b113a04d81 100644
--- a/llvm/test/Transforms/Reassociate/fast-MissedTree.ll
+++ b/llvm/test/Transforms/Reassociate/fast-MissedTree.ll
@@ -1,11 +1,13 @@
; RUN: opt < %s -reassociate -instcombine -S | FileCheck %s
define float @test1(float %A, float %B) {
-; CHECK-LABEL: test1
-; CHECK: %Z = fadd fast float %A, %B
-; CHECK: ret float %Z
- %W = fadd fast float %B, -5.0
- %Y = fadd fast float %A, 5.0
- %Z = fadd fast float %W, %Y
- ret float %Z
+; CHECK-LABEL: @test1(
+; CHECK-NEXT: [[Z:%.*]] = fadd fast float %A, %B
+; CHECK-NEXT: ret float [[Z]]
+;
+ %W = fadd fast float %B, -5.0
+ %Y = fadd fast float %A, 5.0
+ %Z = fadd fast float %W, %Y
+ ret float %Z
}
+
OpenPOWER on IntegriCloud