mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 15:33:33 +00:00
10 lines
216 B
LLVM
10 lines
216 B
LLVM
|
; RUN: llvm-as < %s | opt -instcombine -disable-output &&
|
||
|
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep undef
|
||
|
|
||
|
int %test(sbyte %A) {
|
||
|
%B = cast sbyte %A to int
|
||
|
%C = shr int %B, ubyte 8
|
||
|
ret int %C
|
||
|
}
|
||
|
|