1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-01 08:23:21 +01:00
llvm-mirror/test/CodeGen/X86/large-gep-scale.ll
Dan Gohman b15fee5666 APInt-ify the gep scaling code, so that it correctly handles the case where
the scale overflows pointer-sized arithmetic. This fixes PR5281.

llvm-svn: 84954
2009-10-23 17:57:43 +00:00

13 lines
327 B
LLVM

; 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
}