* [hsa-branch] Handle BRIG_OPCODE_DEBUGTRAP in op_output_p
@ 2016-08-03 14:36 Martin Jambor
0 siblings, 0 replies; only message in thread
From: Martin Jambor @ 2016-08-03 14:36 UTC (permalink / raw)
To: GCC Patches
Hi,
although BRIG_OPCODE_DEBUGTRAP isn't currently generated by gcc trunk,
some experimental patches that I have do and it is one of the rare cases
where registers in zeroth operand are input, so it should be recognized
as such by hsa_insn_basic::op_output_p.
Martin
2016-07-04 Martin Jambor <mjambor@suse.cz>
* hsa.c (hsa_insn_basic::op_output_p): Add BRIG_OPCODE_DEBUGTRAP
to the list of instructions with no output registers.
---
gcc/hsa.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/gcc/hsa.c b/gcc/hsa.c
index 9f02bba..01520e8 100644
--- a/gcc/hsa.c
+++ b/gcc/hsa.c
@@ -170,6 +170,7 @@ hsa_insn_basic::op_output_p (unsigned opnum)
case BRIG_OPCODE_SBR:
case BRIG_OPCODE_ST:
case BRIG_OPCODE_SIGNALNORET:
+ case BRIG_OPCODE_DEBUGTRAP:
/* FIXME: There are probably missing cases here, double check. */
return false;
case BRIG_OPCODE_EXPAND:
--
2.9.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-08-03 14:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-03 14:36 [hsa-branch] Handle BRIG_OPCODE_DEBUGTRAP in op_output_p Martin Jambor
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).