projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merging r259798, r259835:
[oota-llvm.git]
/
lib
/
CodeGen
/
AsmPrinter
/
AsmPrinterInlineAsm.cpp
diff --git
a/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
b/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
index 4171657b5285ca7b205f9ac0be9a460b27573b51..5633aa4a5655f6a44512e964cf55a9c8bc6470db 100644
(file)
--- a/
lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
+++ b/
lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
@@
-555,6
+555,11
@@
bool AsmPrinter::PrintAsmOperand(const MachineInstr *MI, unsigned OpNo,
return true;
O << -MO.getImm();
return false;
+ case 's': // The GCC deprecated s modifier
+ if (MO.getType() != MachineOperand::MO_Immediate)
+ return true;
+ O << ((32 - MO.getImm()) & 31);
+ return false;
}
}
return true;