1 //===-- PPCAsmPrinter.cpp - Print machine instrs to PowerPC assembly --------=//
3 // The LLVM Compiler Infrastructure
5 // This file was developed by the LLVM research group and is distributed under
6 // the University of Illinois Open Source License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file contains a printer that converts from our internal representation
11 // of machine-dependent LLVM code to PowerPC assembly language. This printer is
12 // the output mechanism used by `llc'.
14 // Documentation at http://developer.apple.com/documentation/DeveloperTools/
15 // Reference/Assembler/ASMIntroduction/chapter_1_section_1.html
17 //===----------------------------------------------------------------------===//
19 #define DEBUG_TYPE "asmprinter"
21 #include "PPCTargetMachine.h"
22 #include "PPCSubtarget.h"
23 #include "llvm/Constants.h"
24 #include "llvm/DerivedTypes.h"
25 #include "llvm/Module.h"
26 #include "llvm/Assembly/Writer.h"
27 #include "llvm/CodeGen/AsmPrinter.h"
28 #include "llvm/CodeGen/MachineDebugInfo.h"
29 #include "llvm/CodeGen/MachineFunctionPass.h"
30 #include "llvm/CodeGen/MachineInstr.h"
31 #include "llvm/Support/Mangler.h"
32 #include "llvm/Support/MathExtras.h"
33 #include "llvm/Support/CommandLine.h"
34 #include "llvm/Support/Debug.h"
35 #include "llvm/Target/MRegisterInfo.h"
36 #include "llvm/Target/TargetInstrInfo.h"
37 #include "llvm/ADT/Statistic.h"
38 #include "llvm/ADT/StringExtras.h"
43 Statistic<> EmittedInsts("asm-printer", "Number of machine instrs printed");
45 class PPCAsmPrinter : public AsmPrinter {
47 std::set<std::string> FnStubs, GVStubs;
49 PPCAsmPrinter(std::ostream &O, TargetMachine &TM)
50 : AsmPrinter(O, TM) {}
52 virtual const char *getPassName() const {
53 return "PowerPC Assembly Printer";
56 PPCTargetMachine &getTM() {
57 return static_cast<PPCTargetMachine&>(TM);
60 unsigned enumRegToMachineReg(unsigned enumReg) {
62 default: assert(0 && "Unhandled register!"); break;
63 case PPC::CR0: return 0;
64 case PPC::CR1: return 1;
65 case PPC::CR2: return 2;
66 case PPC::CR3: return 3;
67 case PPC::CR4: return 4;
68 case PPC::CR5: return 5;
69 case PPC::CR6: return 6;
70 case PPC::CR7: return 7;
75 /// printInstruction - This method is automatically generated by tablegen
76 /// from the instruction set description. This method returns true if the
77 /// machine instruction was sufficiently described to print it, otherwise it
79 bool printInstruction(const MachineInstr *MI);
81 void printMachineInstruction(const MachineInstr *MI);
82 void printOp(const MachineOperand &MO);
84 void printOperand(const MachineInstr *MI, unsigned OpNo){
85 const MachineOperand &MO = MI->getOperand(OpNo);
86 if (MO.getType() == MachineOperand::MO_MachineRegister) {
87 assert(MRegisterInfo::isPhysicalRegister(MO.getReg())&&"Not physreg??");
88 O << TM.getRegisterInfo()->get(MO.getReg()).Name;
89 } else if (MO.isImmediate()) {
90 O << MO.getImmedValue();
96 void printU5ImmOperand(const MachineInstr *MI, unsigned OpNo) {
97 unsigned char value = MI->getOperand(OpNo).getImmedValue();
98 assert(value <= 31 && "Invalid u5imm argument!");
99 O << (unsigned int)value;
101 void printU6ImmOperand(const MachineInstr *MI, unsigned OpNo) {
102 unsigned char value = MI->getOperand(OpNo).getImmedValue();
103 assert(value <= 63 && "Invalid u6imm argument!");
104 O << (unsigned int)value;
106 void printS16ImmOperand(const MachineInstr *MI, unsigned OpNo) {
107 O << (short)MI->getOperand(OpNo).getImmedValue();
109 void printU16ImmOperand(const MachineInstr *MI, unsigned OpNo) {
110 O << (unsigned short)MI->getOperand(OpNo).getImmedValue();
112 void printS16X4ImmOperand(const MachineInstr *MI, unsigned OpNo) {
113 O << (short)MI->getOperand(OpNo).getImmedValue()*4;
115 void printBranchOperand(const MachineInstr *MI, unsigned OpNo) {
116 // Branches can take an immediate operand. This is used by the branch
117 // selection pass to print $+8, an eight byte displacement from the PC.
118 if (MI->getOperand(OpNo).isImmediate()) {
119 O << "$+" << MI->getOperand(OpNo).getImmedValue();
121 printOp(MI->getOperand(OpNo));
124 void printCallOperand(const MachineInstr *MI, unsigned OpNo) {
125 const MachineOperand &MO = MI->getOperand(OpNo);
126 if (!PPCGenerateStaticCode) {
127 if (MO.getType() == MachineOperand::MO_GlobalAddress) {
128 GlobalValue *GV = MO.getGlobal();
129 if (((GV->isExternal() || GV->hasWeakLinkage() ||
130 GV->hasLinkOnceLinkage()))) {
131 // Dynamically-resolved functions need a stub for the function.
132 std::string Name = Mang->getValueName(GV);
133 FnStubs.insert(Name);
134 O << "L" << Name << "$stub";
138 if (MO.getType() == MachineOperand::MO_ExternalSymbol) {
139 std::string Name(GlobalPrefix); Name += MO.getSymbolName();
140 FnStubs.insert(Name);
141 O << "L" << Name << "$stub";
146 printOp(MI->getOperand(OpNo));
148 void printAbsAddrOperand(const MachineInstr *MI, unsigned OpNo) {
149 O << (int)MI->getOperand(OpNo).getImmedValue()*4;
151 void printPICLabel(const MachineInstr *MI, unsigned OpNo) {
152 O << "\"L" << getFunctionNumber() << "$pb\"\n";
153 O << "\"L" << getFunctionNumber() << "$pb\":";
155 void printSymbolHi(const MachineInstr *MI, unsigned OpNo) {
156 if (MI->getOperand(OpNo).isImmediate()) {
157 printS16ImmOperand(MI, OpNo);
160 printOp(MI->getOperand(OpNo));
162 O << "-\"L" << getFunctionNumber() << "$pb\")";
167 void printSymbolLo(const MachineInstr *MI, unsigned OpNo) {
168 if (MI->getOperand(OpNo).isImmediate()) {
169 printS16ImmOperand(MI, OpNo);
172 printOp(MI->getOperand(OpNo));
174 O << "-\"L" << getFunctionNumber() << "$pb\")";
179 void printcrbitm(const MachineInstr *MI, unsigned OpNo) {
180 unsigned CCReg = MI->getOperand(OpNo).getReg();
181 unsigned RegNo = enumRegToMachineReg(CCReg);
182 O << (0x80 >> RegNo);
184 // The new addressing mode printers, currently empty
185 void printMemRegImm(const MachineInstr *MI, unsigned OpNo) {
186 printSymbolLo(MI, OpNo);
188 printOperand(MI, OpNo+1);
191 void printMemRegReg(const MachineInstr *MI, unsigned OpNo) {
192 // When used as the base register, r0 reads constant zero rather than
193 // the value contained in the register. For this reason, the darwin
194 // assembler requires that we print r0 as 0 (no r) when used as the base.
195 const MachineOperand &MO = MI->getOperand(OpNo);
196 if (MO.getReg() == PPC::R0)
199 O << TM.getRegisterInfo()->get(MO.getReg()).Name;
201 printOperand(MI, OpNo+1);
204 virtual bool runOnMachineFunction(MachineFunction &F) = 0;
205 virtual bool doFinalization(Module &M) = 0;
208 /// DarwinAsmPrinter - PowerPC assembly printer, customized for Darwin/Mac OS
211 struct DarwinAsmPrinter : public PPCAsmPrinter {
213 DarwinAsmPrinter(std::ostream &O, TargetMachine &TM)
214 : PPCAsmPrinter(O, TM) {
217 PrivateGlobalPrefix = "L"; // Marker for constant pool idxs
218 ZeroDirective = "\t.space\t"; // ".space N" emits N zeros.
219 Data64bitsDirective = 0; // we can't emit a 64-bit unit
220 AlignmentIsInBytes = false; // Alignment is by power of 2.
221 ConstantPoolSection = "\t.const\t";
222 LCOMMDirective = "\t.lcomm\t";
223 StaticCtorsSection = ".mod_init_func";
224 StaticDtorsSection = ".mod_term_func";
227 virtual const char *getPassName() const {
228 return "Darwin PPC Assembly Printer";
231 bool runOnMachineFunction(MachineFunction &F);
232 bool doInitialization(Module &M);
233 bool doFinalization(Module &M);
236 /// AIXAsmPrinter - PowerPC assembly printer, customized for AIX
238 struct AIXAsmPrinter : public PPCAsmPrinter {
239 /// Map for labels corresponding to global variables
241 std::map<const GlobalVariable*,std::string> GVToLabelMap;
243 AIXAsmPrinter(std::ostream &O, TargetMachine &TM)
244 : PPCAsmPrinter(O, TM) {
247 ZeroDirective = "\t.space\t"; // ".space N" emits N zeros.
248 Data64bitsDirective = 0; // we can't emit a 64-bit unit
249 AlignmentIsInBytes = false; // Alignment is by power of 2.
250 ConstantPoolSection = "\t.const\t";
253 virtual const char *getPassName() const {
254 return "AIX PPC Assembly Printer";
257 bool runOnMachineFunction(MachineFunction &F);
258 bool doInitialization(Module &M);
259 bool doFinalization(Module &M);
261 } // end of anonymous namespace
263 /// createDarwinAsmPrinterPass - Returns a pass that prints the PPC assembly
264 /// code for a MachineFunction to the given output stream, in a format that the
265 /// Darwin assembler can deal with.
267 FunctionPass *llvm::createDarwinAsmPrinter(std::ostream &o, TargetMachine &tm) {
268 return new DarwinAsmPrinter(o, tm);
271 /// createAIXAsmPrinterPass - Returns a pass that prints the PPC assembly code
272 /// for a MachineFunction to the given output stream, in a format that the
273 /// AIX 5L assembler can deal with.
275 FunctionPass *llvm::createAIXAsmPrinter(std::ostream &o, TargetMachine &tm) {
276 return new AIXAsmPrinter(o, tm);
279 // Include the auto-generated portion of the assembly writer
280 #include "PPCGenAsmWriter.inc"
282 void PPCAsmPrinter::printOp(const MachineOperand &MO) {
283 const MRegisterInfo &RI = *TM.getRegisterInfo();
286 switch (MO.getType()) {
287 case MachineOperand::MO_VirtualRegister:
288 if (Value *V = MO.getVRegValueOrNull()) {
289 O << "<" << V->getName() << ">";
293 case MachineOperand::MO_MachineRegister:
294 case MachineOperand::MO_CCRegister:
295 O << RI.get(MO.getReg()).Name;
298 case MachineOperand::MO_SignExtendedImmed:
299 case MachineOperand::MO_UnextendedImmed:
300 std::cerr << "printOp() does not handle immediate values\n";
304 case MachineOperand::MO_PCRelativeDisp:
305 std::cerr << "Shouldn't use addPCDisp() when building PPC MachineInstrs";
309 case MachineOperand::MO_MachineBasicBlock: {
310 MachineBasicBlock *MBBOp = MO.getMachineBasicBlock();
311 O << PrivateGlobalPrefix << "BB" << getFunctionNumber() << "_"
312 << MBBOp->getNumber() << "\t; " << MBBOp->getBasicBlock()->getName();
316 case MachineOperand::MO_ConstantPoolIndex:
317 O << PrivateGlobalPrefix << "CPI" << getFunctionNumber()
318 << '_' << MO.getConstantPoolIndex();
320 case MachineOperand::MO_ExternalSymbol:
321 // Computing the address of an external symbol, not calling it.
322 if (!PPCGenerateStaticCode) {
323 std::string Name(GlobalPrefix); Name += MO.getSymbolName();
324 GVStubs.insert(Name);
325 O << "L" << Name << "$non_lazy_ptr";
328 O << GlobalPrefix << MO.getSymbolName();
330 case MachineOperand::MO_GlobalAddress: {
331 // Computing the address of a global symbol, not calling it.
332 GlobalValue *GV = MO.getGlobal();
333 std::string Name = Mang->getValueName(GV);
335 // External or weakly linked global variables need non-lazily-resolved stubs
336 if (!PPCGenerateStaticCode) {
337 if (((GV->isExternal() || GV->hasWeakLinkage() ||
338 GV->hasLinkOnceLinkage()))) {
339 GVStubs.insert(Name);
340 O << "L" << Name << "$non_lazy_ptr";
350 O << "<unknown operand type: " << MO.getType() << ">";
355 /// printMachineInstruction -- Print out a single PowerPC MI in Darwin syntax to
356 /// the current output stream.
358 void PPCAsmPrinter::printMachineInstruction(const MachineInstr *MI) {
361 // Check for slwi/srwi mnemonics.
362 if (MI->getOpcode() == PPC::RLWINM) {
363 bool FoundMnemonic = false;
364 unsigned char SH = MI->getOperand(2).getImmedValue();
365 unsigned char MB = MI->getOperand(3).getImmedValue();
366 unsigned char ME = MI->getOperand(4).getImmedValue();
367 if (SH <= 31 && MB == 0 && ME == (31-SH)) {
368 O << "slwi "; FoundMnemonic = true;
370 if (SH <= 31 && MB == (32-SH) && ME == 31) {
371 O << "srwi "; FoundMnemonic = true;
378 O << ", " << (unsigned int)SH << "\n";
383 if (printInstruction(MI))
384 return; // Printer was automatically generated
386 assert(0 && "Unhandled instruction in asm writer!");
392 /// runOnMachineFunction - This uses the printMachineInstruction()
393 /// method to print assembly for each instruction.
395 bool DarwinAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
396 SetupMachineFunction(MF);
399 // Print out dwarf file info
400 MachineDebugInfo &DebugInfo = MF.getDebugInfo();
401 std::vector<std::string> Sources = DebugInfo.getSourceFiles();
402 for (unsigned i = 0, N = Sources.size(); i < N; i++) {
403 O << "\t; .file\t" << (i + 1) << "," << "\"" << Sources[i] << "\"" << "\n";
406 // Print out constants referenced by the function
407 EmitConstantPool(MF.getConstantPool());
409 // Print out labels for the function.
410 const Function *F = MF.getFunction();
411 switch (F->getLinkage()) {
412 default: assert(0 && "Unknown linkage type!");
413 case Function::InternalLinkage: // Symbols default to internal.
414 SwitchSection(".text", F);
417 case Function::ExternalLinkage:
418 SwitchSection(".text", F);
420 O << "\t.globl\t" << CurrentFnName << "\n";
422 case Function::WeakLinkage:
423 case Function::LinkOnceLinkage:
424 SwitchSection(".section __TEXT,__textcoal_nt,coalesced,pure_instructions",
426 O << "\t.globl\t" << CurrentFnName << "\n";
427 O << "\t.weak_definition\t" << CurrentFnName << "\n";
430 O << CurrentFnName << ":\n";
432 // Print out code for the function.
433 for (MachineFunction::const_iterator I = MF.begin(), E = MF.end();
435 // Print a label for the basic block.
436 if (I != MF.begin()) {
437 O << PrivateGlobalPrefix << "BB" << getFunctionNumber() << '_'
438 << I->getNumber() << ":\t";
439 if (!I->getBasicBlock()->getName().empty())
440 O << CommentString << " " << I->getBasicBlock()->getName();
443 for (MachineBasicBlock::const_iterator II = I->begin(), E = I->end();
445 // Print the assembly for the instruction.
447 printMachineInstruction(II);
451 // We didn't modify anything.
456 bool DarwinAsmPrinter::doInitialization(Module &M) {
457 if (TM.getSubtarget<PPCSubtarget>().isGigaProcessor())
458 O << "\t.machine ppc970\n";
459 AsmPrinter::doInitialization(M);
461 // Darwin wants symbols to be quoted if they have complex names.
462 Mang->setUseQuotes(true);
466 bool DarwinAsmPrinter::doFinalization(Module &M) {
467 const TargetData &TD = TM.getTargetData();
469 // Print out module-level global variables here.
470 for (Module::const_global_iterator I = M.global_begin(), E = M.global_end();
472 if (!I->hasInitializer()) continue; // External global require no code
474 // Check to see if this is a special global used by LLVM, if so, emit it.
475 if (I->hasAppendingLinkage() && EmitSpecialLLVMGlobal(I))
479 std::string name = Mang->getValueName(I);
480 Constant *C = I->getInitializer();
481 unsigned Size = TD.getTypeSize(C->getType());
482 unsigned Align = TD.getTypeAlignmentShift(C->getType());
484 if (C->isNullValue() && /* FIXME: Verify correct */
485 (I->hasInternalLinkage() || I->hasWeakLinkage() ||
486 I->hasLinkOnceLinkage())) {
487 SwitchSection(".data", I);
488 if (Size == 0) Size = 1; // .comm Foo, 0 is undefined, avoid it.
489 if (I->hasInternalLinkage())
490 O << LCOMMDirective << name << "," << Size << "," << Align;
492 O << ".comm " << name << "," << Size;
493 O << "\t\t; '" << I->getName() << "'\n";
495 switch (I->getLinkage()) {
496 case GlobalValue::LinkOnceLinkage:
497 case GlobalValue::WeakLinkage:
498 O << "\t.globl " << name << '\n'
499 << "\t.weak_definition " << name << '\n';
500 SwitchSection(".section __DATA,__datacoal_nt,coalesced", I);
502 case GlobalValue::AppendingLinkage:
503 // FIXME: appending linkage variables should go into a section of
504 // their name or something. For now, just emit them as external.
505 case GlobalValue::ExternalLinkage:
506 // If external or appending, declare as a global symbol
507 O << "\t.globl " << name << "\n";
509 case GlobalValue::InternalLinkage:
510 SwitchSection(".data", I);
513 std::cerr << "Unknown linkage type!";
517 EmitAlignment(Align, I);
518 O << name << ":\t\t\t\t; '" << I->getName() << "'\n";
519 EmitGlobalConstant(C);
523 // Output stubs for dynamically-linked functions
525 for (std::set<std::string>::iterator i = FnStubs.begin(), e = FnStubs.end();
527 SwitchSection(".section __TEXT,__picsymbolstub1,symbol_stubs,"
528 "pure_instructions,32", 0);
530 O << "L" << *i << "$stub:\n";
531 O << "\t.indirect_symbol " << *i << "\n";
533 O << "\tbcl 20,31,L0$" << *i << "\n";
534 O << "L0$" << *i << ":\n";
536 O << "\taddis r11,r11,ha16(L" << *i << "$lazy_ptr-L0$" << *i << ")\n";
538 O << "\tlwzu r12,lo16(L" << *i << "$lazy_ptr-L0$" << *i << ")(r11)\n";
539 O << "\tmtctr r12\n";
541 SwitchSection(".lazy_symbol_pointer", 0);
542 O << "L" << *i << "$lazy_ptr:\n";
543 O << "\t.indirect_symbol " << *i << "\n";
544 O << "\t.long dyld_stub_binding_helper\n";
547 for (std::set<std::string>::iterator i = FnStubs.begin(), e = FnStubs.end();
549 SwitchSection(".section __TEXT,__symbol_stub1,symbol_stubs,"
550 "pure_instructions,16", 0);
552 O << "L" << *i << "$stub:\n";
553 O << "\t.indirect_symbol " << *i << "\n";
554 O << "\tlis r11,ha16(L" << *i << "$lazy_ptr)\n";
555 O << "\tlwzu r12,lo16(L" << *i << "$lazy_ptr)(r11)\n";
556 O << "\tmtctr r12\n";
558 SwitchSection(".lazy_symbol_pointer", 0);
559 O << "L" << *i << "$lazy_ptr:\n";
560 O << "\t.indirect_symbol " << *i << "\n";
561 O << "\t.long dyld_stub_binding_helper\n";
567 // Output stubs for external and common global variables.
568 if (GVStubs.begin() != GVStubs.end()) {
569 SwitchSection(".non_lazy_symbol_pointer", 0);
570 for (std::set<std::string>::iterator I = GVStubs.begin(),
571 E = GVStubs.end(); I != E; ++I) {
572 O << "L" << *I << "$non_lazy_ptr:\n";
573 O << "\t.indirect_symbol " << *I << "\n";
578 // Funny Darwin hack: This flag tells the linker that no global symbols
579 // contain code that falls through to other global symbols (e.g. the obvious
580 // implementation of multiple entry points). If this doesn't occur, the
581 // linker can safely perform dead code stripping. Since LLVM never generates
582 // code that does this, it is always safe to set.
583 O << "\t.subsections_via_symbols\n";
585 AsmPrinter::doFinalization(M);
586 return false; // success
589 /// runOnMachineFunction - This uses the printMachineInstruction()
590 /// method to print assembly for each instruction.
592 bool AIXAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
593 SetupMachineFunction(MF);
595 // Print out constants referenced by the function
596 EmitConstantPool(MF.getConstantPool());
598 // Print out header for the function.
599 O << "\t.csect .text[PR]\n"
601 << "\t.globl " << CurrentFnName << '\n'
602 << "\t.globl ." << CurrentFnName << '\n'
603 << "\t.csect " << CurrentFnName << "[DS],3\n"
604 << CurrentFnName << ":\n"
605 << "\t.llong ." << CurrentFnName << ", TOC[tc0], 0\n"
606 << "\t.csect .text[PR]\n"
607 << '.' << CurrentFnName << ":\n";
609 // Print out code for the function.
610 for (MachineFunction::const_iterator I = MF.begin(), E = MF.end();
612 // Print a label for the basic block.
613 O << PrivateGlobalPrefix << "BB" << getFunctionNumber() << '_'
615 << ":\t" << CommentString << I->getBasicBlock()->getName() << '\n';
616 for (MachineBasicBlock::const_iterator II = I->begin(), E = I->end();
618 // Print the assembly for the instruction.
620 printMachineInstruction(II);
624 O << "LT.." << CurrentFnName << ":\n"
626 << "\t.byte 0,0,32,65,128,0,0,0\n"
627 << "\t.long LT.." << CurrentFnName << "-." << CurrentFnName << '\n'
629 << "\t.byte \"" << CurrentFnName << "\"\n"
632 // We didn't modify anything.
636 bool AIXAsmPrinter::doInitialization(Module &M) {
637 SwitchSection("", 0);
638 const TargetData &TD = TM.getTargetData();
640 O << "\t.machine \"ppc64\"\n"
642 << "\t.csect .text[PR]\n";
644 // Print out module-level global variables
645 for (Module::const_global_iterator I = M.global_begin(), E = M.global_end();
647 if (!I->hasInitializer())
650 std::string Name = I->getName();
651 Constant *C = I->getInitializer();
652 // N.B.: We are defaulting to writable strings
653 if (I->hasExternalLinkage()) {
654 O << "\t.globl " << Name << '\n'
655 << "\t.csect .data[RW],3\n";
657 O << "\t.csect _global.rw_c[RW],3\n";
660 EmitGlobalConstant(C);
663 // Output labels for globals
664 if (M.global_begin() != M.global_end()) O << "\t.toc\n";
665 for (Module::const_global_iterator I = M.global_begin(), E = M.global_end();
667 const GlobalVariable *GV = I;
668 // Do not output labels for unused variables
669 if (GV->isExternal() && GV->use_begin() == GV->use_end())
672 IncrementFunctionNumber();
673 std::string Name = GV->getName();
674 std::string Label = "LC.." + utostr(getFunctionNumber());
675 GVToLabelMap[GV] = Label;
677 << "\t.tc " << Name << "[TC]," << Name;
678 if (GV->isExternal()) O << "[RW]";
682 AsmPrinter::doInitialization(M);
683 return false; // success
686 bool AIXAsmPrinter::doFinalization(Module &M) {
687 const TargetData &TD = TM.getTargetData();
688 // Print out module-level global variables
689 for (Module::const_global_iterator I = M.global_begin(), E = M.global_end();
691 if (I->hasInitializer() || I->hasExternalLinkage())
694 std::string Name = I->getName();
695 if (I->hasInternalLinkage()) {
696 O << "\t.lcomm " << Name << ",16,_global.bss_c";
698 O << "\t.comm " << Name << "," << TD.getTypeSize(I->getType())
699 << "," << Log2_32((unsigned)TD.getTypeAlignment(I->getType()));
701 O << "\t\t" << CommentString << " ";
702 WriteAsOperand(O, I, false, true, &M);
706 O << "_section_.text:\n"
707 << "\t.csect .data[RW],3\n"
708 << "\t.llong _section_.text\n";
709 AsmPrinter::doFinalization(M);
710 return false; // success