Reid Spencer | 6c38f0b | 2006-11-27 01:05:10 +0000 | [diff] [blame^] | 1 | ; Tests to make sure elimination of casts is working correctly |
2 | ; RUN: llvm-as < %s | opt -instcombine -disable-output && | ||||
3 | ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | notcast '' '%c1.*' | ||||
4 | |||||
5 | long %test_sext_zext(short %A) { | ||||
6 | %c1 = zext short %A to uint | ||||
7 | %c2 = sext uint %c1 to long | ||||
8 | ret long %c2 | ||||
9 | } |