From: Chris Lattner Date: Thu, 16 May 2002 00:56:59 +0000 (+0000) Subject: New testcases for sub/neg reassociation X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c95057b1b725c21a45eb5e8c1d65523d3c1673e9;p=oota-llvm.git New testcases for sub/neg reassociation git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2635 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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