mirror of
https://github.com/RPCS3/llvm.git
synced 2026-01-31 01:25:19 +01:00
The configure script no longer tells us that we're configuring for SparcV9 specifically. 2004-06-17-UnorderedCompares may work on SparcV8, but it's experiental anyway. 2005-02-20-AggregateSAVEEXPR should fail on any Solaris machine, as Solaris doesn't provide complex number support. git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_16@24155 91177308-0d34-0410-b5e6-96231b3b80d8
49 lines
706 B
LLVM
49 lines
706 B
LLVM
; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | not grep br
|
|
|
|
declare void %foo1()
|
|
declare void %foo2()
|
|
|
|
void %test1(uint %V) {
|
|
%C1 = seteq uint %V, 4
|
|
%C2 = seteq uint %V, 17
|
|
%CN = or bool %C1, %C2
|
|
br bool %CN, label %T, label %F
|
|
T:
|
|
call void %foo1()
|
|
ret void
|
|
F:
|
|
call void %foo2()
|
|
ret void
|
|
}
|
|
|
|
|
|
void %test2(int %V) {
|
|
%C1 = setne int %V, 4
|
|
%C2 = setne int %V, 17
|
|
%CN = and bool %C1, %C2
|
|
br bool %CN, label %T, label %F
|
|
T:
|
|
call void %foo1()
|
|
ret void
|
|
F:
|
|
call void %foo2()
|
|
ret void
|
|
}
|
|
|
|
|
|
void %test3(int %V) {
|
|
%C1 = seteq int %V, 4
|
|
br bool %C1, label %T, label %N
|
|
N:
|
|
%C2 = seteq int %V, 17
|
|
br bool %C2, label %T, label %F
|
|
T:
|
|
call void %foo1()
|
|
ret void
|
|
F:
|
|
call void %foo2()
|
|
ret void
|
|
}
|
|
|
|
|