mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-03 00:29:31 +00:00
10 lines
309 B
LLVM
10 lines
309 B
LLVM
|
; Tests to make sure elimination of casts is working correctly
|
||
|
; RUN: llvm-as < %s | opt -instcombine -disable-output &&
|
||
|
; RUN: llvm-as < %s | 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
|
||
|
}
|