1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/CodeGen/X86/2009-01-31-BigShift.ll
Duncan Sands 74179a9dde Fix PR3401: when using large integers, the type
returned by getShiftAmountTy may be too small
to hold shift values (it is an i8 on x86-32).
Before and during type legalization, use a large
but legal type for shift amounts: getPointerTy;
afterwards use getShiftAmountTy, fixing up any
shift amounts with a big type during operation
legalization.  Thanks to Dan for writing the
original patch (which I shamelessly pillaged).

llvm-svn: 63482
2009-01-31 15:50:11 +00:00

10 lines
159 B
LLVM

; RUN: llvm-as < %s | llc -march=x86 | not grep and
; PR3401
define void @x(i288 %i) nounwind {
call void @add(i288 %i)
ret void
}
declare void @add(i288)