When removing a function from the function set and adding it to deferred, we
[llvm.git] / test / Transforms / BranchFolding / 2007-10-19-InlineAsmDirectives.ll
blob9d82819f9db4a2fd88d2ef768ce8e1c8b5e561d0
1 ; RUN: opt < %s -std-compile-opts -o - | llc -o - | grep bork_directive | wc -l | grep 2
3 ;; We don't want branch folding to fold asm directives.
5 define void @bork(i32 %param) {
6 entry:
7         %tmp = icmp eq i32 %param, 0
8         br i1 %tmp, label %cond_true, label %cond_false
10 cond_true:   
11         call void asm sideeffect ".bork_directive /* ${0:c}:${1:c} */", "i,i,~{dirflag},~{fpsr},~{flags}"( i32 37, i32 927 )
12         ret void
14 cond_false:
15         call void asm sideeffect ".foo_directive ${0:c}:${1:c}", "i,i,~{dirflag},~{fpsr},~{flags}"( i32 37, i32 927 )
16         call void asm sideeffect ".bork_directive /* ${0:c}:${1:c} */", "i,i,~{dirflag},~{fpsr},~{flags}"( i32 37, i32 927 )
17         ret void