blob: f23f5fb2297f4861ebde19686b22ad89207a11a5 [file] [log] [blame]
Devang Patel6ce890b2006-10-19 18:54:08 +00001; This test case is reduced from llvmAsmParser.cpp
2; The optimizer should not remove the cast here.
Reid Spencer3da59db2006-11-27 01:05:10 +00003; RUN: llvm-as %s -o - | opt -instcombine | llvm-dis | grep 'sext.*int'
4
Devang Patel6ce890b2006-10-19 18:54:08 +00005bool %test(short %X) {
Reid Spencer3da59db2006-11-27 01:05:10 +00006 %A = cast short %X to uint
7 %B = setgt uint %A, 1330
8 ret bool %B
Devang Patel6ce890b2006-10-19 18:54:08 +00009}