Changes in directory llvm/test/Regression/Transforms/InstCombine:
shift-simplify.ll added (r1.1) --- Log message: new testcase --- Diffs of the changes: (+22 -0) shift-simplify.ll | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+) Index: llvm/test/Regression/Transforms/InstCombine/shift-simplify.ll diff -c /dev/null llvm/test/Regression/Transforms/InstCombine/shift-simplify.ll:1.1 *** /dev/null Tue Nov 14 01:45:46 2006 --- llvm/test/Regression/Transforms/InstCombine/shift-simplify.ll Tue Nov 14 01:45:36 2006 *************** *** 0 **** --- 1,22 ---- + ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | egrep 'shl|lshr|ashr' | wc -l | grep 3 + + int %test0(int %A, int %B, ubyte %C) { + %X = shl int %A, ubyte %C + %Y = shl int %B, ubyte %C + %Z = and int %X, %Y + ret int %Z + } + + int %test1(int %A, int %B, ubyte %C) { + %X = lshr int %A, ubyte %C + %Y = lshr int %B, ubyte %C + %Z = or int %X, %Y + ret int %Z + } + + int %test2(int %A, int %B, ubyte %C) { + %X = ashr int %A, ubyte %C + %Y = ashr int %B, ubyte %C + %Z = xor int %X, %Y + ret int %Z + } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits