test for a variety of new transformations:
authorChris Lattner <sabre@nondot.org>
Tue, 18 Feb 2003 19:28:47 +0000 (19:28 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 18 Feb 2003 19:28:47 +0000 (19:28 +0000)
commit5640f333313f63ac709e99e57ae455e49ccb8fc6
tree00954d247bebd3724f0e5f1260dea1096597f8a0
parenta2881961b918c89445666aa564680eb65867610a
test for a variety of new transformations:
  * A & ~A == 0
  * A / (2^c) == A >> c  if unsigned
  * 0 / A == 0
  * 1.0 * A == A
  * A * (2^c) == A << c
  * A ^ ~A == -1
  * A | ~A == -1
  * 0 % X = 0
  * A % (2^c) == A & (c-1) if unsigned
  * A - (A & B) == A & ~B
  * -1 - A == ~A

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5588 91177308-0d34-0410-b5e6-96231b3b80d8
test/Transforms/InstCombine/and.ll
test/Transforms/InstCombine/div.ll
test/Transforms/InstCombine/mul.ll
test/Transforms/InstCombine/or.ll
test/Transforms/InstCombine/rem.ll
test/Transforms/InstCombine/sub.ll