reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
; RUN: opt < %s -O3 | llc -no-integrated-as | FileCheck %s
; REQUIRES: default_triple

;; We don't want branch folding to fold asm directives.

; CHECK: bork_directive
; CHECK: bork_directive
; CHECK-NOT: bork_directive

define void @bork(i32 %param) {
entry:
	%tmp = icmp eq i32 %param, 0
        br i1 %tmp, label %cond_true, label %cond_false

cond_true:
        call void asm sideeffect ".bork_directive /* ${0:c}:${1:c} */", "i,i,~{dirflag},~{fpsr},~{flags}"( i32 37, i32 927 )
        ret void

cond_false:
	call void asm sideeffect ".foo_directive ${0:c}:${1:c}", "i,i,~{dirflag},~{fpsr},~{flags}"( i32 37, i32 927 )
        call void asm sideeffect ".bork_directive /* ${0:c}:${1:c} */", "i,i,~{dirflag},~{fpsr},~{flags}"( i32 37, i32 927 )
        ret void
}