mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-02 22:32:08 +00:00
19 lines
328 B
LLVM
19 lines
328 B
LLVM
|
; This test makes sure that these instructions are properly eliminated.
|
||
|
;
|
||
|
|
||
|
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep select
|
||
|
|
||
|
implementation
|
||
|
|
||
|
int %test1(int %A, int %B) {
|
||
|
%C = select bool false, int %A, int %B
|
||
|
ret int %C
|
||
|
}
|
||
|
|
||
|
int %test2(int %A, int %B) {
|
||
|
%C = select bool true, int %A, int %B
|
||
|
ret int %C
|
||
|
}
|
||
|
|
||
|
|