view test/CodeGen/X86/large-gep-scale.ll @ 33:e4204d083e25

LLVM 3.5
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Thu, 12 Dec 2013 14:32:10 +0900
parents 95c75e76d11b
children afa8332a0e37
line wrap: on
line source

; RUN: llc < %s -march=x86 | FileCheck %s
; PR5281

; After scaling, this type doesn't fit in memory. Codegen should generate
; correct addressing still.

; CHECK: shll $2, %edx

define fastcc i32* @_ada_smkr([2147483647 x i32]* %u, i32 %t) nounwind {
  %x = getelementptr [2147483647 x i32]* %u, i32 %t, i32 0
  ret i32* %x
}