summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-03-15 02:22:10 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-03-15 02:22:10 +0000
commitbf34a5ec22389a852f25337eb767e5ad742e6142 (patch)
tree9ac729af529c97791e7a3e82131ecdc2e52a91fb /test
parent49c69bb70f4c62d97c02e71c25fd615d67104ff4 (diff)
downloadllvm-bf34a5ec22389a852f25337eb767e5ad742e6142.tar.gz
llvm-bf34a5ec22389a852f25337eb767e5ad742e6142.tar.bz2
llvm-bf34a5ec22389a852f25337eb767e5ad742e6142.tar.xz
sext(undef) = 0, because the top bits will all be the same.
zext(undef) = 0, because the top bits will be zero. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127649 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/X86/machine-cse.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/X86/machine-cse.ll b/test/CodeGen/X86/machine-cse.ll
index e284776ed0..d819fc8f6e 100644
--- a/test/CodeGen/X86/machine-cse.ll
+++ b/test/CodeGen/X86/machine-cse.ll
@@ -6,11 +6,11 @@
%struct.s2 = type { i32, i8*, i8*, [256 x %struct.s1*], [8 x i32], i64, i8*, i32, i64, i64, i32, %struct.s3*, %struct.s3*, [49 x i64] }
%struct.s3 = type { %struct.s3*, %struct.s3*, i32, i32, i32 }
-define fastcc i8* @t(i64 %size) nounwind {
+define fastcc i8* @t(i32 %base) nounwind {
entry:
; CHECK: t:
; CHECK: leaq (%rax,%rax,4)
- %0 = zext i32 undef to i64
+ %0 = zext i32 %base to i64
%1 = getelementptr inbounds %struct.s2* null, i64 %0
br i1 undef, label %bb1, label %bb2