OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a119de8
)
implement support for the 'K' asm constraint, PR4347
author
Chris Lattner
<sabre@nondot.org>
Mon, 15 Jun 2009 04:01:39 +0000
(
04:01
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 15 Jun 2009 04:01:39 +0000
(
04:01
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73366
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86ISelLowering.cpp
b/lib/Target/X86/X86ISelLowering.cpp
index
36e3ab2
..
cb0b30c
100644
(file)
--- a/
lib/Target/X86/X86ISelLowering.cpp
+++ b/
lib/Target/X86/X86ISelLowering.cpp
@@
-8468,6
+8468,14
@@
void X86TargetLowering::LowerAsmOperandForConstraint(SDValue Op,
return;
case 'J':
if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
+ if ((int8_t)C->getSExtValue() == C->getSExtValue()) {
+ Result = DAG.getTargetConstant(C->getZExtValue(), Op.getValueType());
+ break;
+ }
+ }
+ return;
+ case 'K':
+ if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
if (C->getZExtValue() <= 63) {
Result = DAG.getTargetConstant(C->getZExtValue(), Op.getValueType());
break;