This is the mail archive of the gcc@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]

Re: ARC length attribute patch




On 20/03/15 16:02, Claudiu Zissulescu wrote:
Hi Joern,

I have a small patch for ARC backend that fixes the value of instruction length attribute when the instruction is predicated. Ok to apply?
Why would the arc_bdr_iscond test have any effect? arc_predicate_delay_insns should render the issue moot.

Moreover,
- your patch has no ChangeLog entry.

+extern bool arc_bdr_iscond (rtx);

- New code should use const rtx_insn * .

+   conditionally. */
-                   ^ The GNU coding standard requires two spaces here.

-      (const_int 2))
+	(match_test "GET_CODE (PATTERN (insn)) == COND_EXEC || arc_bdr_iscond (insn)")
+	(const_int 4)]
+     (const_int 2))

- You are mis-formatting the code.  (const_int 2) is part of the cond clause.


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