diff options
Diffstat (limited to 'test/Transforms/BranchFolding/2007-10-19-InlineAsmDirectives.ll')
-rw-r--r-- | test/Transforms/BranchFolding/2007-10-19-InlineAsmDirectives.ll | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/Transforms/BranchFolding/2007-10-19-InlineAsmDirectives.ll b/test/Transforms/BranchFolding/2007-10-19-InlineAsmDirectives.ll index d4b94fe62c71..43fcc6051210 100644 --- a/test/Transforms/BranchFolding/2007-10-19-InlineAsmDirectives.ll +++ b/test/Transforms/BranchFolding/2007-10-19-InlineAsmDirectives.ll @@ -1,13 +1,18 @@ -; RUN: opt < %s -O3 -o - | llc -no-integrated-as -o - | grep bork_directive | wc -l | grep 2 +; 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: +cond_true: call void asm sideeffect ".bork_directive /* ${0:c}:${1:c} */", "i,i,~{dirflag},~{fpsr},~{flags}"( i32 37, i32 927 ) ret void |