1 ; RUN: opt < %s -O3 | llc -no-integrated-as | FileCheck %s
2 ; REQUIRES: default_triple
4 ;; We don't want branch folding to fold asm directives.
6 ; CHECK: bork_directive
7 ; CHECK: bork_directive
8 ; CHECK-NOT: bork_directive
10 define void @bork(i32 %param) {
12 %tmp = icmp eq i32 %param, 0
13 br i1 %tmp, label %cond_true, label %cond_false
16 call void asm sideeffect ".bork_directive /* ${0:c}:${1:c} */", "i,i,~{dirflag},~{fpsr},~{flags}"( i32 37, i32 927 )
20 call void asm sideeffect ".foo_directive ${0:c}:${1:c}", "i,i,~{dirflag},~{fpsr},~{flags}"( i32 37, i32 927 )
21 call void asm sideeffect ".bork_directive /* ${0:c}:${1:c} */", "i,i,~{dirflag},~{fpsr},~{flags}"( i32 37, i32 927 )