mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 08:23:21 +01:00
4572ce85b0
llvm-svn: 33296
10 lines
339 B
LLVM
10 lines
339 B
LLVM
; Tests to make sure elimination of casts is working correctly
|
|
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output &&
|
|
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | notcast '' '%c1.*'
|
|
|
|
long %test_sext_zext(short %A) {
|
|
%c1 = zext short %A to uint
|
|
%c2 = sext uint %c1 to long
|
|
ret long %c2
|
|
}
|