mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
Add a test for the fix in revision 91009.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91062 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6fd78ec8a2
commit
072f6fe196
20
test/Transforms/LICM/2009-12-10-LICM-Indbr-Crash.ll
Normal file
20
test/Transforms/LICM/2009-12-10-LICM-Indbr-Crash.ll
Normal file
@ -0,0 +1,20 @@
|
||||
; RUN: opt < %s -licm -disable-output
|
||||
define void @foo (i8* %v)
|
||||
{
|
||||
entry:
|
||||
br i1 undef, label %preheader, label %return
|
||||
|
||||
preheader:
|
||||
br i1 undef, label %loop, label %return
|
||||
|
||||
loop:
|
||||
indirectbr i8* undef, [label %preheader, label %stuff]
|
||||
|
||||
stuff:
|
||||
%0 = load i8* undef, align 1
|
||||
br label %loop
|
||||
|
||||
return:
|
||||
ret void
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user