xref: /llvm-project/llvm/test/CodeGen/X86/large-gep-scale.ll (revision 2f448bf509432c1a19ec46ab8cbc7353c03c6280)
1; RUN: llc < %s -mtriple=i686-- | 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
9define fastcc ptr @_ada_smkr(ptr %u, i32 %t) nounwind {
10  %x = getelementptr [2147483647 x i32], ptr %u, i32 %t, i32 0
11  ret ptr %x
12}
13