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:
dd947ea
)
Add an extra example that shouldn't get an and instruction.
author
Dan Gohman
<gohman@apple.com>
Thu, 7 Aug 2008 02:23:06 +0000
(
02:23
+0000)
committer
Dan Gohman
<gohman@apple.com>
Thu, 7 Aug 2008 02:23:06 +0000
(
02:23
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54443
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/CodeGen/X86/zext-inreg-1.ll
patch
|
blob
|
history
diff --git
a/test/CodeGen/X86/zext-inreg-1.ll
b/test/CodeGen/X86/zext-inreg-1.ll
index 6a678b2e3b29784cf605377a8ae67e316dd0fe2c..bc8e482d562de67cb232fb09df19b9344d09ecb7 100644
(file)
--- a/
test/CodeGen/X86/zext-inreg-1.ll
+++ b/
test/CodeGen/X86/zext-inreg-1.ll
@@
-6,7
+6,12
@@
; These should use movzbl instead of 'and 255'.
; This related to not having ZERO_EXTEND_REG node.
-define i64 @h(i64 %d) nounwind {
+define i64 @l(i64 %d) nounwind {
+ %e = add i64 %d, 1
+ %retval = and i64 %e, 1099511627775
+ ret i64 %retval
+}
+define i64 @m(i64 %d) nounwind {
%e = add i64 %d, 1
%retval = and i64 %e, 281474976710655
ret i64 %retval