~ubuntu-branches/ubuntu/quantal/llvm-3.1/quantal

« back to all changes in this revision

Viewing changes to test/CodeGen/X86/large-gep-scale.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-03-29 19:09:51 UTC
  • Revision ID: package-import@ubuntu.com-20120329190951-aq83ivog4cg8bxun
Tags: upstream-3.1~svn153643
ImportĀ upstreamĀ versionĀ 3.1~svn153643

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: llc < %s -march=x86 | FileCheck %s
 
2
; PR5281
 
3
 
 
4
; After scaling, this type doesn't fit in memory. Codegen should generate
 
5
; correct addressing still.
 
6
 
 
7
; CHECK: shll $2, %edx
 
8
 
 
9
define fastcc i32* @_ada_smkr([2147483647 x i32]* %u, i32 %t) nounwind {
 
10
  %x = getelementptr [2147483647 x i32]* %u, i32 %t, i32 0
 
11
  ret i32* %x
 
12
}