mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
test instruction combiner opts for select instruction
llvm-svn: 12328
This commit is contained in:
parent
6bf4112131
commit
ea0c2b4e42
18
test/Regression/Transforms/InstCombine/select.ll
Normal file
18
test/Regression/Transforms/InstCombine/select.ll
Normal file
@ -0,0 +1,18 @@
|
||||
; 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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user