From: Yvan Roux <yvan.roux@linaro.org>
To: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>,
Kyrylo Tkachov <kyrylo.tkachov@arm.com>
Subject: [PATCH, ARM] Fix for pr65924
Date: Wed, 29 Apr 2015 09:02:00 -0000 [thread overview]
Message-ID: <CAD57uCf9ax1VUzJqFwqw_0mcFytwwzEg7Dj9AMbadX3abb8g+A@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 405 bytes --]
Hi,
here is the patch for PR65924, only tested on the original testcase so far.
Thanks
Yvan
gcc/
2015-04-29 Yvan Roux <yvan.roux@linaro.org>
PR target/65924
* config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
number in type attribute expression.
gcc/testsuite/
2015-04-29 Yvan Roux <yvan.roux@linaro.org>
PR target/65924
gcc.target/arm/pr65924.c: New test.
[-- Attachment #2: pr65924.diff --]
[-- Type: text/plain, Size: 867 bytes --]
diff --git a/gcc/config/arm/thumb2.md b/gcc/config/arm/thumb2.md
index 4f9faac..2c91542 100644
--- a/gcc/config/arm/thumb2.md
+++ b/gcc/config/arm/thumb2.md
@@ -1305,7 +1305,7 @@
"
[(set_attr "conds" "set")
(set_attr "length" "2,4")
- (set (attr "type") (if_then_else (match_operand 2 "const_int_operand" "")
+ (set (attr "type") (if_then_else (match_operand 1 "const_int_operand" "")
(const_string "alus_imm")
(const_string "alus_sreg")))]
)
diff --git a/gcc/testsuite/gcc.target/arm/pr65924.c b/gcc/testsuite/gcc.target/arm/pr65924.c
new file mode 100644
index 0000000..746749f
--- /dev/null
+++ b/gcc/testsuite/gcc.target/arm/pr65924.c
@@ -0,0 +1,8 @@
+/* { dg-do compile } */
+/* { dg-options "-O2 -mthumb" } */
+
+int a, b, c;
+int fn1() {
+ if (b + a < 0)
+ c = 0;
+}
next reply other threads:[~2015-04-29 8:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-29 9:02 Yvan Roux [this message]
2015-04-29 10:26 ` Kyrill Tkachov
2015-04-29 10:57 ` Yvan Roux
2015-04-29 11:13 ` Kyrill Tkachov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAD57uCf9ax1VUzJqFwqw_0mcFytwwzEg7Dj9AMbadX3abb8g+A@mail.gmail.com \
--to=yvan.roux@linaro.org \
--cc=gcc-patches@gcc.gnu.org \
--cc=kyrylo.tkachov@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).