Configure the asmwriter to allow constant pools to be printed correctly
authorChris Lattner <sabre@nondot.org>
Sun, 18 Dec 2005 23:35:05 +0000 (23:35 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 18 Dec 2005 23:35:05 +0000 (23:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24841 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Sparc/SparcAsmPrinter.cpp
lib/Target/Sparc/SparcInstrInfo.td
lib/Target/SparcV8/SparcV8AsmPrinter.cpp
lib/Target/SparcV8/SparcV8InstrInfo.td

index f64bd7eddafdc97b6dcedcc1842275206e5c521d..ee01e74bf46f8829c6283d525541a7bb79855ee4 100644 (file)
@@ -40,6 +40,8 @@ namespace {
       Data32bitsDirective = "\t.word\t";
       Data64bitsDirective = "\t.xword\t";
       ZeroDirective = 0;  // no .zero or .space!
+      CommentString = "!";
+      ConstantPoolSection = "\t.section \".rodata\",#alloc\n";
     }
 
     /// We name each basic block in a Function with a unique number, so
index 7ace4e9f2be6148e0d720e5847d84542e6014690..02e1a002032dcfd0d4bca7fd07ce39aa8947f6b3 100644 (file)
@@ -715,7 +715,6 @@ def : Pat<(V8lo tconstpool:$in), (ORri G0, tconstpool:$in)>;
 def : Pat<(retflag ICC/*HACK*/), (RETL)>;
 
 // Map integer extload's to zextloads.
-// Handling 1 bit extload
 def : Pat<(i32 (extload ADDRrr:$src, i1)), (LDUBrr ADDRrr:$src)>;
 def : Pat<(i32 (extload ADDRri:$src, i1)), (LDUBri ADDRri:$src)>;
 def : Pat<(i32 (extload ADDRrr:$src, i8)), (LDUBrr ADDRrr:$src)>;
index f64bd7eddafdc97b6dcedcc1842275206e5c521d..ee01e74bf46f8829c6283d525541a7bb79855ee4 100644 (file)
@@ -40,6 +40,8 @@ namespace {
       Data32bitsDirective = "\t.word\t";
       Data64bitsDirective = "\t.xword\t";
       ZeroDirective = 0;  // no .zero or .space!
+      CommentString = "!";
+      ConstantPoolSection = "\t.section \".rodata\",#alloc\n";
     }
 
     /// We name each basic block in a Function with a unique number, so
index 7ace4e9f2be6148e0d720e5847d84542e6014690..02e1a002032dcfd0d4bca7fd07ce39aa8947f6b3 100644 (file)
@@ -715,7 +715,6 @@ def : Pat<(V8lo tconstpool:$in), (ORri G0, tconstpool:$in)>;
 def : Pat<(retflag ICC/*HACK*/), (RETL)>;
 
 // Map integer extload's to zextloads.
-// Handling 1 bit extload
 def : Pat<(i32 (extload ADDRrr:$src, i1)), (LDUBrr ADDRrr:$src)>;
 def : Pat<(i32 (extload ADDRri:$src, i1)), (LDUBri ADDRri:$src)>;
 def : Pat<(i32 (extload ADDRrr:$src, i8)), (LDUBrr ADDRrr:$src)>;