This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch ARM] Improve Thumb2 code generation.
- From: Julian Brown <julian at codesourcery dot com>
- To: "Ramana Radhakrishnan" <ramana dot radhakrishnan at arm dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>, "Richard Earnshaw" <Richard dot Earnshaw at arm dot com>
- Date: Wed, 20 May 2009 19:57:42 +0100
- Subject: Re: [Patch ARM] Improve Thumb2 code generation.
- References: <001001c9d869$e674f4c0$b35ede40$@radhakrishnan@arm.com>
On Tue, 19 May 2009 11:09:29 +0100
"Ramana Radhakrishnan" <ramana.radhakrishnan@arm.com> wrote:
> +(define_insn "orsi_notsi_si"
> + [(set (match_operand:SI 0 "s_register_operand" "=r")
> + (ior:SI (not:SI (match_operand:SI 2 "s_register_operand"
> "r"))
> + (match_operand:SI 1 "reg_or_int_operand" "rK")))]
> + "TARGET_THUMB2"
> + "orn%?\\t%0, %1, %2"
> + [(set_attr "predicable" "yes")]
> +)
This is wrong. It can put an immediate in the middle of the
instruction. Might you have meant:
"orn%?\\t%0, %2, %1"
instead?
Cheers,
Julian