mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
New testcase for PR310
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12596 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4edf6c043e
commit
8b8ff16dba
22
test/Transforms/TailDup/2004-04-01-DemoteRegToStack.llx
Normal file
22
test/Transforms/TailDup/2004-04-01-DemoteRegToStack.llx
Normal file
@ -0,0 +1,22 @@
|
||||
; RUN: llvm-as < %s | opt -tailduplicate -disable-output
|
||||
|
||||
void %interpret() {
|
||||
entry:
|
||||
br label %retry
|
||||
|
||||
retry:
|
||||
%tmp.8 = call int %interp()
|
||||
switch uint 0, label %endif.4 [
|
||||
uint 4294967271, label %return
|
||||
uint 4294967280, label %return
|
||||
]
|
||||
|
||||
endif.4:
|
||||
br bool false, label %return, label %retry
|
||||
|
||||
return:
|
||||
%result.0 = phi int [ %tmp.8, %retry ], [%tmp.8, %retry], [ %tmp.8, %endif.4 ]
|
||||
ret void
|
||||
}
|
||||
|
||||
declare int %interp()
|
Loading…
Reference in New Issue
Block a user