mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
253081a9b6
These days -std-compile-opts was just a silly alias for -O3. llvm-svn: 219951
19 lines
701 B
LLVM
19 lines
701 B
LLVM
; RUN: opt < %s -O3 -o - | llc -no-integrated-as -o - | grep bork_directive | wc -l | grep 2
|
|
|
|
;; We don't want branch folding to fold asm directives.
|
|
|
|
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
|
|
}
|