aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-01-19 06:53:20 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-01-19 06:53:20 +0000
commit41b6dc8dbe4a45a6c259735fd163a532f78f26ec (patch)
tree8988384b6c531feef1155c611440ec080c6fdd1b
parent8312ab54cf225d0f464d440c3bf3abfbb84e0032 (diff)
downloadexternal_llvm-41b6dc8dbe4a45a6c259735fd163a532f78f26ec.zip
external_llvm-41b6dc8dbe4a45a6c259735fd163a532f78f26ec.tar.gz
external_llvm-41b6dc8dbe4a45a6c259735fd163a532f78f26ec.tar.bz2
adc and sbb need an incoming flag to ensure it reads the carry flag
from add / sub. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25444 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/X86/X86InstrInfo.td5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/X86/X86InstrInfo.td b/lib/Target/X86/X86InstrInfo.td
index 741e7d1..ba15900 100644
--- a/lib/Target/X86/X86InstrInfo.td
+++ b/lib/Target/X86/X86InstrInfo.td
@@ -63,8 +63,9 @@ def X86addflag : SDNode<"X86ISD::ADD_FLAG", SDTIntBinOp ,
def X86subflag : SDNode<"X86ISD::SUB_FLAG", SDTIntBinOp,
[SDNPOutFlag]>;
def X86adc : SDNode<"X86ISD::ADC" , SDTIntBinOp ,
- [SDNPCommutative, SDNPAssociative]>;
-def X86sbb : SDNode<"X86ISD::SBB" , SDTIntBinOp>;
+ [SDNPCommutative, SDNPAssociative, SDNPInFlag]>;
+def X86sbb : SDNode<"X86ISD::SBB" , SDTIntBinOp,
+ [SDNPInFlag]>;
def X86shld : SDNode<"X86ISD::SHLD", SDTIntShiftDOp>;
def X86shrd : SDNode<"X86ISD::SHRD", SDTIntShiftDOp>;