mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 00:11:00 +00:00
50e8682f28
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6965 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
427 B
LLVM
20 lines
427 B
LLVM
; SetCC on boolean values was not implemented!
|
|
|
|
; RUN: as < %s | opt -constprop -die | 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
|
|
}
|
|
|