Changes in directory llvm/test/Regression/Transforms/InstCombine:
or.ll updated: 1.31 -> 1.32 --- Log message: new testcase --- Diffs of the changes: (+8 -1) or.ll | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletion(-) Index: llvm/test/Regression/Transforms/InstCombine/or.ll diff -u llvm/test/Regression/Transforms/InstCombine/or.ll:1.31 llvm/test/Regression/Transforms/InstCombine/or.ll:1.32 --- llvm/test/Regression/Transforms/InstCombine/or.ll:1.31 Sun Feb 12 02:01:35 2006 +++ llvm/test/Regression/Transforms/InstCombine/or.ll Sun Feb 26 13:55:30 2006 @@ -1,6 +1,7 @@ ; This test makes sure that these instructions are properly eliminated. ; +; RUN: llvm-as < %s | opt -instcombine -disable-output && ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep -v xor | not grep 'or ' implementation @@ -148,4 +149,10 @@ %ELIM5 = or int %ELIM41, %ELIM7 ; <int> [#uses=1] ret int %ELIM5 } - + +ushort %test23(ushort %A) { + %B = shr ushort %A, ubyte 1 + %C = or ushort %B, 32768 ;; fold or into xor + %D = xor ushort %C, 8193 + ret ushort %D +} _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits