projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c13a72c
)
new testcase
author
Chris Lattner
<sabre@nondot.org>
Sun, 26 Feb 2006 19:55:30 +0000
(19:55 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 26 Feb 2006 19:55:30 +0000
(19:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26384
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Transforms/InstCombine/or.ll
patch
|
blob
|
history
diff --git
a/test/Transforms/InstCombine/or.ll
b/test/Transforms/InstCombine/or.ll
index 849df7c6f8e11f7344deed81a57748fe6d6a9c0d..4b731dfa5c8b356e6a1956f5c6fe6ad313befcd3 100644
(file)
--- a/
test/Transforms/InstCombine/or.ll
+++ b/
test/Transforms/InstCombine/or.ll
@@
-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
@@
int %test22(int %B) {
%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
+}