mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-13 16:03:58 +00:00
6ea7654870
This checks that bork_directive occurs exactly twice in the test output. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244543 91177308-0d34-0410-b5e6-96231b3b80d8
23 lines
759 B
LLVM
23 lines
759 B
LLVM
; RUN: opt < %s -O3 | llc -no-integrated-as | FileCheck %s
|
|
; REQUIRES: X86
|
|
;; 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
|
|
}
|