2006-10-20 02:54:08 +08:00
|
|
|
; This test case is reduced from llvmAsmParser.cpp
|
|
|
|
; The optimizer should not remove the cast here.
|
2007-04-15 04:13:02 +08:00
|
|
|
; RUN: llvm-upgrade %s -o - | llvm-as | opt -instcombine | llvm-dis | \
|
|
|
|
; RUN: grep sext.*i32
|
2006-11-27 09:05:10 +08:00
|
|
|
|
2006-10-20 02:54:08 +08:00
|
|
|
bool %test(short %X) {
|
2006-11-27 09:05:10 +08:00
|
|
|
%A = cast short %X to uint
|
|
|
|
%B = setgt uint %A, 1330
|
|
|
|
ret bool %B
|
2006-10-20 02:54:08 +08:00
|
|
|
}
|