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:
2e217a7
)
Add new testcase for arithmetic shr of -1
author
Chris Lattner
<sabre@nondot.org>
Tue, 8 Oct 2002 16:10:35 +0000
(16:10 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 8 Oct 2002 16:10:35 +0000
(16:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4069
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Transforms/InstCombine/shift.ll
patch
|
blob
|
history
diff --git
a/test/Transforms/InstCombine/shift.ll
b/test/Transforms/InstCombine/shift.ll
index c6a341f454f46bd8f2c9cef24ab499492ff6be22..5f7d2a59c44fec2b46bee88ea701eb9eb787a40f 100644
(file)
--- a/
test/Transforms/InstCombine/shift.ll
+++ b/
test/Transforms/InstCombine/shift.ll
@@
-37,3
+37,8
@@
uint %test6(uint %A) {
%B = shl uint %A, ubyte 1 ;; convert to an add instruction
ret uint %B
}
+
+int %test7(ubyte %A) {
+ %B = shr int -1, ubyte %A ;; Always equal to -1
+ ret int %B
+}