public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [Patch, microblaze]: Extend jump insn to accept bri to SYMBOL_REFS
@ 2013-03-18 12:53 David Holsgrove
  2013-07-15  4:45 ` David Holsgrove
  0 siblings, 1 reply; 2+ messages in thread
From: David Holsgrove @ 2013-03-18 12:53 UTC (permalink / raw)
  To: gcc-patches
  Cc: Michael Eager, Edgar Iglesias, John Williams, Vinod Kathail,
	Vidhumouli Hunsigida, Nagaraju Mekala, Tom Shui

[-- Attachment #1: Type: text/plain, Size: 224 bytes --]

Changelog

2013-03-18  David Holsgrove <david.holsgrove@xilinx.com>

 * gcc/config/microblaze/microblaze.md (jump):
   Account for jumps to SYMBOL_REFs.

Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>


[-- Attachment #2: 0007-Patch-microblaze-Extend-jump-insn-to-accept-bri-to-S.patch --]
[-- Type: application/octet-stream, Size: 1160 bytes --]

From a524556ba2ce643688defaf5def41b084d33bf03 Mon Sep 17 00:00:00 2001
From: David Holsgrove <david.holsgrove@xilinx.com>
Date: Wed, 1 Aug 2012 12:28:44 +1000
Subject: [PATCH] [Patch, microblaze]: Extend jump insn to accept bri to SYMBOL_REFS

Current insn checks if operand is a REG - if so, uses br
else it bri to %l0 - using a label_ref print operand

Check if operand is a SYMBOL_REF, and if so, use %0

Changelog

2013-03-18  David Holsgrove <david.holsgrove@xilinx.com>

 * gcc/config/microblaze/microblaze.md (jump):
   Account for jumps to SYMBOL_REFs.

Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
---
 gcc/config/microblaze/microblaze.md |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md
index 55cc730..49d8f01 100644
--- a/gcc/config/microblaze/microblaze.md
+++ b/gcc/config/microblaze/microblaze.md
@@ -1729,6 +1729,8 @@
   {
     if (GET_CODE (operands[0]) == REG)
         return "br%?\t%0";
+    else if (GET_CODE (operands[0]) == SYMBOL_REF)
+        return "bri%?\t%0";
     else	
         return "bri%?\t%l0";
   }
-- 
1.7.0.4


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Patch, microblaze]: Extend jump insn to accept bri to SYMBOL_REFS
  2013-03-18 12:53 [Patch, microblaze]: Extend jump insn to accept bri to SYMBOL_REFS David Holsgrove
@ 2013-07-15  4:45 ` David Holsgrove
  0 siblings, 0 replies; 2+ messages in thread
From: David Holsgrove @ 2013-07-15  4:45 UTC (permalink / raw)
  To: gcc-patches
  Cc: Michael Eager, Edgar Iglesias, John Williams, Vinod Kathail,
	Vidhumouli Hunsigida, Nagaraju Mekala, Tom Shui

Hi Michael,

On 18 March 2013 22:52, David Holsgrove <david.holsgrove@xilinx.com> wrote:
> Changelog
>
> 2013-03-18  David Holsgrove <david.holsgrove@xilinx.com>
>
>  * gcc/config/microblaze/microblaze.md (jump):
>    Account for jumps to SYMBOL_REFs.
>
> Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
>

Disregard - patch no longer desired.

thanks,
David

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-07-15  4:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-18 12:53 [Patch, microblaze]: Extend jump insn to accept bri to SYMBOL_REFS David Holsgrove
2013-07-15  4:45 ` David Holsgrove

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).