mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-25 14:32:53 +00:00
92abc62399
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). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63482 91177308-0d34-0410-b5e6-96231b3b80d8
10 lines
159 B
LLVM
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)
|