aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/X86/large-gep-scale.ll
blob: 7b672c9a367671267e8fc64d82eabdf4cbab07f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: llc < %s -mtriple=i686-- | FileCheck %s
; PR5281

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

; CHECK: shll $2, %edx

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