] aarch64: add ccmp operand predicate
On 09/22/2014 11:44 PM, Zhenqiang Chen wrote:
+/* Return true if val can be encoded as a 5-bit unsigned immediate.
+*/ bool
+aarch64_uimm5 (HOST_WIDE_INT val)
+{
+ return (val (HOST_WIDE_INT) 0x1f) == val; }
This is just silly
On 10/27/2014 12:48 AM, Zhenqiang Chen wrote:
Thanks for the comments. All comments are accepted and the updated patch is
attached.
-Zhenqiang
New patch looks good.
r~
On 09/22/2014 11:44 PM, Zhenqiang Chen wrote:
+/* Return true if val can be encoded as a 5-bit unsigned immediate. */
+bool
+aarch64_uimm5 (HOST_WIDE_INT val)
+{
+ return (val (HOST_WIDE_INT) 0x1f) == val;
+}
This is just silly.
+(define_constraint Usn
+ A constant that can be used
Ping?
Patch is attached for easy to apply.
Thanks!
-Zhenqiang
-Original Message-
From: gcc-patches-ow...@gcc.gnu.org [mailto:gcc-patches-
ow...@gcc.gnu.org] On Behalf Of Zhenqiang Chen
Sent: Monday, June 23, 2014 3:00 PM
To: gcc-patches@gcc.gnu.org
Subject: [PATCH, 5/10] aarch64
Hi,
The patches defines ccmp operand predicate for AARCH64.
OK for trunk?
Thanks!
-Zhenqiang
ChangeLog:
2014-06-23 Zhenqiang Chen zhenqiang.c...@linaro.org
* config/aarch64/aarch64-protos.h (aarch64_uimm5): New prototype.
* config/aarch64/constraints.md (Usn): Immediate for