1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 20:12:56 +02:00
llvm-mirror/test/CodeGen/X86/fast-isel-shift-imm.ll
Dan Gohman c9f244842c Fix fast-isel to not emit invalid assembly when presented with a
constant shift count that doesn't fit in the shift instruction's
immediate field. This fixes PR3242.

llvm-svn: 61281
2008-12-20 17:19:40 +00:00

8 lines
154 B
LLVM

; RUN: llvm-as < %s | llc -march=x86 -fast | grep {sarl \$80, %eax}
; PR3242
define i32 @foo(i32 %x) nounwind {
%y = ashr i32 %x, 50000
ret i32 %y
}