From c95057b1b725c21a45eb5e8c1d65523d3c1673e9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 16 May 2002 00:56:59 +0000 Subject: [PATCH] New testcases for sub/neg reassociation git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2635 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/Reassociate/2002-05-15-AgressiveSubMove.ll | 2 +- test/Transforms/Reassociate/subtest.ll | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Transforms/Reassociate/2002-05-15-AgressiveSubMove.ll b/test/Transforms/Reassociate/2002-05-15-AgressiveSubMove.ll index 678080dd922..8646ae3cabc 100644 --- a/test/Transforms/Reassociate/2002-05-15-AgressiveSubMove.ll +++ b/test/Transforms/Reassociate/2002-05-15-AgressiveSubMove.ll @@ -1,4 +1,4 @@ -; RUN: if as < %s | opt -reassociate -instcombine | dis | grep add +; RUN: if as < %s | opt -reassociate -instcombine -constprop -dce | dis | grep add ; RUN: then exit 1 ; RUN: else exit 0 ; RUN: fi diff --git a/test/Transforms/Reassociate/subtest.ll b/test/Transforms/Reassociate/subtest.ll index 9b649665536..e3a7adf5aed 100644 --- a/test/Transforms/Reassociate/subtest.ll +++ b/test/Transforms/Reassociate/subtest.ll @@ -1,6 +1,6 @@ ; With sub reassociation, constant folding can eliminate the 12 and -12 constants. ; -; RUN: if as < %s | opt -reassociate -constprop -instcombine -die | dis | grep add +; RUN: if as < %s | opt -reassociate -constprop -instcombine -die | dis | grep 12 ; RUN: then exit 1 ; RUN: else exit 0 ; RUN: fi -- 2.34.1