mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-22 07:32:48 +00:00
f2f6ce65b7
input filename so that opt doesn't print the input filename in the output so that grep lines in the tests don't unintentionally match strings in the input filename. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81537 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
697 B
LLVM
19 lines
697 B
LLVM
; RUN: opt < %s -std-compile-opts -o - | llc -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
|
|
}
|