[MIParser] Set RegClassOrRegBank during instruction parsing
[llvm-complete.git] / test / Transforms / SimplifyCFG / assume.ll
blob1d1b96a58edfbf44c9ab10bee0c22f41c75f629f
1 ; RUN: opt -simplifycfg -S < %s | FileCheck %s
3 define void @test1() {
4         call void @llvm.assume(i1 0)
5         ret void
7 ; CHECK-LABEL: @test1
8 ; CHECK-NOT: llvm.assume
9 ; CHECK: unreachable
12 define void @test2() {
13         call void @llvm.assume(i1 undef)
14         ret void
16 ; CHECK-LABEL: @test2
17 ; CHECK-NOT: llvm.assume
18 ; CHECK: unreachable
21 declare void @llvm.assume(i1) nounwind