summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/Reassociate
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2017-11-09 16:35:30 +0000
committerSanjay Patel <spatel@rotateright.com>2017-11-09 16:35:30 +0000
commite04f032424081c53f84d44565d85d1176be22804 (patch)
tree25e46080f0e2cf99138ba60ee7cde3492e333c1c /llvm/test/Transforms/Reassociate
parent3a1e4bfb535131fbfc0c981cdbbab2bf17894bcb (diff)
downloadbcm5719-llvm-e04f032424081c53f84d44565d85d1176be22804.tar.gz
bcm5719-llvm-e04f032424081c53f84d44565d85d1176be22804.zip
[Reassociate] regenerate test checks; NFC
llvm-svn: 317809
Diffstat (limited to 'llvm/test/Transforms/Reassociate')
-rw-r--r--llvm/test/Transforms/Reassociate/factorize-again.ll18
1 files changed, 14 insertions, 4 deletions
diff --git a/llvm/test/Transforms/Reassociate/factorize-again.ll b/llvm/test/Transforms/Reassociate/factorize-again.ll
index 87e77945dfb..cb7ad2e9ded 100644
--- a/llvm/test/Transforms/Reassociate/factorize-again.ll
+++ b/llvm/test/Transforms/Reassociate/factorize-again.ll
@@ -1,10 +1,20 @@
; RUN: opt -S -reassociate < %s | FileCheck %s
-; CHECK-LABEL: main
-; CHECK: %2 = fsub
-; CHECK: %3 = fsub
-; CHECK: fadd fast float %3, %2
define void @main(float, float) {
+; CHECK-LABEL: @main(
+; CHECK-NEXT: wrapper_entry:
+; CHECK-NEXT: [[TMP2:%.*]] = fsub float undef, %0
+; CHECK-NEXT: [[TMP3:%.*]] = fsub float undef, %1
+; CHECK-NEXT: [[TMP4:%.*]] = call float @llvm.rsqrt.f32(float undef)
+; CHECK-NEXT: [[TMP3:%.*]] = fadd fast float [[TMP3]], [[TMP2]]
+; CHECK-NEXT: [[TMP4:%.*]] = fmul fast float [[TMP3]], undef
+; CHECK-NEXT: [[TMP1:%.*]] = fadd fast float [[TMP4]], fmul (float undef, float undef)
+; CHECK-NEXT: [[TMP2:%.*]] = fmul fast float [[TMP1]], [[TMP4]]
+; CHECK-NEXT: [[TMP5:%.*]] = call float @foo2(float [[TMP2]], float 0.000000e+00)
+; CHECK-NEXT: [[MUL36:%.*]] = fmul fast float [[TMP5]], 1.500000e+00
+; CHECK-NEXT: call void @foo1(i32 4, float [[MUL36]])
+; CHECK-NEXT: ret void
+;
wrapper_entry:
%2 = fsub float undef, %0
%3 = fsub float undef, %1
OpenPOWER on IntegriCloud