This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[hsa-branch] Handle BRIG_OPCODE_DEBUGTRAP in op_output_p


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]