From 7a48e5018b10d2b4c123913b40df904bd5c66043 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 18 Dec 2005 23:35:05 +0000 Subject: [PATCH] Configure the asmwriter to allow constant pools to be printed correctly git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24841 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Sparc/SparcAsmPrinter.cpp | 2 ++ lib/Target/Sparc/SparcInstrInfo.td | 1 - lib/Target/SparcV8/SparcV8AsmPrinter.cpp | 2 ++ lib/Target/SparcV8/SparcV8InstrInfo.td | 1 - 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Target/Sparc/SparcAsmPrinter.cpp b/lib/Target/Sparc/SparcAsmPrinter.cpp index f64bd7eddaf..ee01e74bf46 100644 --- a/lib/Target/Sparc/SparcAsmPrinter.cpp +++ b/lib/Target/Sparc/SparcAsmPrinter.cpp @@ -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 diff --git a/lib/Target/Sparc/SparcInstrInfo.td b/lib/Target/Sparc/SparcInstrInfo.td index 7ace4e9f2be..02e1a002032 100644 --- a/lib/Target/Sparc/SparcInstrInfo.td +++ b/lib/Target/Sparc/SparcInstrInfo.td @@ -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)>; diff --git a/lib/Target/SparcV8/SparcV8AsmPrinter.cpp b/lib/Target/SparcV8/SparcV8AsmPrinter.cpp index f64bd7eddaf..ee01e74bf46 100644 --- a/lib/Target/SparcV8/SparcV8AsmPrinter.cpp +++ b/lib/Target/SparcV8/SparcV8AsmPrinter.cpp @@ -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 diff --git a/lib/Target/SparcV8/SparcV8InstrInfo.td b/lib/Target/SparcV8/SparcV8InstrInfo.td index 7ace4e9f2be..02e1a002032 100644 --- a/lib/Target/SparcV8/SparcV8InstrInfo.td +++ b/lib/Target/SparcV8/SparcV8InstrInfo.td @@ -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)>; -- 2.34.1