mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-13 06:25:02 +00:00
8 lines
163 B
LLVM
8 lines
163 B
LLVM
|
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep shl
|
||
|
|
||
|
bool %test(int %X, ubyte %A) {
|
||
|
%B = lshr int %X, ubyte %A
|
||
|
%D = trunc int %B to bool
|
||
|
ret bool %D
|
||
|
}
|