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