1 ; RUN: opt < %s -O3 | llc -no-integrated-as | FileCheck %s 2 ; REQUIRES: default_triple 3 4 ;; We don't want branch folding to fold asm directives. 5 6 ; CHECK: bork_directive 7 ; CHECK: bork_directive 8 ; CHECK-NOT: bork_directive 9 10 define void @bork(i32 %param) { 11 entry: 12 %tmp = icmp eq i32 %param, 0 13 br i1 %tmp, label %cond_true, label %cond_false 14 15 cond_true: 16 call void asm sideeffect ".bork_directive /* ${0:c}:${1:c} */", "i,i,~{dirflag},~{fpsr},~{flags}"( i32 37, i32 927 ) 17 ret void 18 19 cond_false: 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 ) 22 ret void 23 } 24