mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-02 00:42:52 +01:00
563ba88392
llvm-svn: 8558
20 lines
437 B
LLVM
20 lines
437 B
LLVM
; SetCC on boolean values was not implemented!
|
|
|
|
; RUN: llvm-as < %s | opt -constprop -die | llvm-dis | not grep 'set'
|
|
|
|
bool "test1"() {
|
|
%A = setle bool true, false
|
|
%B = setge bool true, false
|
|
%C = setlt bool false, true
|
|
%D = setgt bool true, false
|
|
%E = seteq bool false, false
|
|
%F = setne bool false, true
|
|
%G = and bool %A, %B
|
|
%H = and bool %C, %D
|
|
%I = and bool %E, %F
|
|
%J = and bool %G, %H
|
|
%K = and bool %I, %J
|
|
ret bool %K
|
|
}
|
|
|