aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/add-with-overflow.ll
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-12-09 23:19:12 +0000
committerBill Wendling <isanbard@gmail.com>2008-12-09 23:19:12 +0000
commit30a64a76492b6a92ccf6d6a6ac907ff8b2b18305 (patch)
tree2219ece0baac739d86b78ed1db234644710f007a /test/CodeGen/X86/add-with-overflow.ll
parent54e4c36a7349e94a84773afb56eccd4ca65b49e9 (diff)
Implement fast-isel conversion of a branch instruction that's branching on an
overflow/carry from the "arithmetic with overflow" intrinsics. It searches the machine basic block from bottom to top to find the SETO/SETC instruction that is its conditional. If an instruction modifies EFLAGS before it reaches the SETO/SETC instruction, then it defaults to the normal instruction emission. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60807 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/add-with-overflow.ll')
-rw-r--r--test/CodeGen/X86/add-with-overflow.ll2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/CodeGen/X86/add-with-overflow.ll b/test/CodeGen/X86/add-with-overflow.ll
index ffab94ba9d..baf577168c 100644
--- a/test/CodeGen/X86/add-with-overflow.ll
+++ b/test/CodeGen/X86/add-with-overflow.ll
@@ -1,5 +1,7 @@
; RUN: llvm-as < %s | llc -march=x86 | grep {jo} | count 1
; RUN: llvm-as < %s | llc -march=x86 | grep {jc} | count 1
+; RUN: llvm-as < %s | llc -march=x86 -fast | grep {jo} | count 1
+; RUN: llvm-as < %s | llc -march=x86 -fast | grep {jc} | count 1
@ok = internal constant [4 x i8] c"%d\0A\00"
@no = internal constant [4 x i8] c"no\0A\00"