[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelLowering.cpp
Devang Patel
dpatel at apple.com
Fri Mar 16 17:13:45 PDT 2007
Changes in directory llvm/lib/Target/X86:
X86ISelLowering.cpp updated: 1.371 -> 1.372
---
Log message:
Support 'I' inline asm constraint.
---
Diffs of the changes: (+11 -0)
X86ISelLowering.cpp | 11 +++++++++++
1 files changed, 11 insertions(+)
Index: llvm/lib/Target/X86/X86ISelLowering.cpp
diff -u llvm/lib/Target/X86/X86ISelLowering.cpp:1.371 llvm/lib/Target/X86/X86ISelLowering.cpp:1.372
--- llvm/lib/Target/X86/X86ISelLowering.cpp:1.371 Fri Mar 16 04:44:46 2007
+++ llvm/lib/Target/X86/X86ISelLowering.cpp Fri Mar 16 19:13:28 2007
@@ -4523,6 +4523,17 @@
isOperandValidForConstraint(SDOperand Op, char Constraint, SelectionDAG &DAG) {
switch (Constraint) {
default: break;
+ case 'I':
+ if (isa<ConstantSDNode>(Op)) {
+ unsigned Value = cast<ConstantSDNode>(Op)->getValue();
+ if (Value >= 0 && Value <= 31)
+ return Op;
+ else
+ return SDOperand(0,0);
+ } else {
+ return SDOperand(0,0);
+ }
+ break;
case 'i':
// Literal immediates are always ok.
if (isa<ConstantSDNode>(Op)) return Op;
More information about the llvm-commits
mailing list