mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-23 15:29:51 +00:00
e78760e179
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8558 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
381 B
LLVM
18 lines
381 B
LLVM
; This testcase is a distilled form of: 2002-05-28-Crash.ll
|
|
|
|
; RUN: llvm-as < %s | opt -adce
|
|
|
|
float "test"(int %i) {
|
|
%F = cast int %i to float ; This BB is not dead
|
|
%I = cast int %i to uint ; future dead inst
|
|
br label %Loop
|
|
|
|
Loop: ; This block is dead
|
|
%B = cast uint %I to bool
|
|
br bool %B, label %Out, label %Loop
|
|
|
|
Out:
|
|
ret float %F
|
|
}
|
|
|