mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-19 01:34:32 +00:00
23 lines
390 B
LLVM
23 lines
390 B
LLVM
|
; RUN: opt -simplifycfg -S < %s | FileCheck %s
|
||
|
|
||
|
define void @test1() {
|
||
|
call void @llvm.assume(i1 0)
|
||
|
ret void
|
||
|
|
||
|
; CHECK-LABEL: @test1
|
||
|
; CHECK-NOT: llvm.assume
|
||
|
; CHECK: unreachable
|
||
|
}
|
||
|
|
||
|
define void @test2() {
|
||
|
call void @llvm.assume(i1 undef)
|
||
|
ret void
|
||
|
|
||
|
; CHECK-LABEL: @test2
|
||
|
; CHECK-NOT: llvm.assume
|
||
|
; CHECK: unreachable
|
||
|
}
|
||
|
|
||
|
declare void @llvm.assume(i1) nounwind
|
||
|
|