From: "Honggyu Kim" <hong.gyu.kim@lge.com>
To: "'Segher Boessenkool'" <segher@kernel.crashing.org>,
"'Kyrill Tkachov'" <kyrylo.tkachov@arm.com>,
<christophe.lyon@st.com>
Cc: <gcc-patches@gcc.gnu.org>
Subject: RE: [PATCH][ARM] New testcase to check parameter passing bug
Date: Mon, 16 Mar 2015 00:54:00 -0000 [thread overview]
Message-ID: <051201d05f83$ae23a330$0a6ae990$@lge.com> (raw)
In-Reply-To: <20150313141229.GC7174@gate.crashing.org>
Hi,
I have modified and moved the testcase following your comments.
(from gcc.target/arm to gcc.dg)
Please let me know if there's still something to fix more.
I appreciate all your comments.
Honggyu
---
gcc/testsuite/ChangeLog | 4 ++++
gcc/testsuite/gcc.dg/pr65358.c | 33 +++++++++++++++++++++++++++++++++
2 files changed, 37 insertions(+)
create mode 100644 gcc/testsuite/gcc.dg/pr65358.c
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 5302dbd..5dcf2cf 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2015-03-16 Honggyu Kim <hong.gyu.kim@lge.com>
+
+ * gcc.dg/pr65358.c: New test.
+
2015-03-15 John David Anglin <danglin@gcc.gnu.org>
* gcc.dg/torture/pr65270-1.c: Add -fno-common to dg-options on
diff --git a/gcc/testsuite/gcc.dg/pr65358.c b/gcc/testsuite/gcc.dg/pr65358.c
new file mode 100644
index 0000000..3790764
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pr65358.c
@@ -0,0 +1,33 @@
+/* { dg-do run */
+/* { dg-options "-O2" } */
+
+struct pack
+{
+ int fine;
+ int victim;
+ int killer;
+};
+
+int __attribute__ ((__noinline__, __noclone__))
+bar (int a, int b, struct pack p)
+{
+ if (a != 20 || b != 30)
+ __builtin_abort ();
+ if (p.fine != 40 || p.victim != 50 || p.killer != 60)
+ __builtin_abort ();
+ return 0;
+}
+
+int __attribute__ ((__noinline__, __noclone__))
+foo (int arg1, int arg2, int arg3, struct pack p)
+{
+ return bar (arg2, arg3, p);
+}
+
+int main (void)
+{
+ struct pack p = { 40, 50, 60 };
+
+ (void) foo (10, 20, 30, p);
+ return 0;
+}
--
1.7.9.5
next prev parent reply other threads:[~2015-03-16 0:54 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-13 2:08 Honggyu Kim
2015-03-13 12:04 ` Kyrill Tkachov
2015-03-13 13:04 ` Christophe Lyon
2015-03-13 14:12 ` Segher Boessenkool
2015-03-16 0:54 ` Honggyu Kim [this message]
2015-03-18 11:53 ` Kyrill Tkachov
2015-03-19 1:40 ` [PATCH v2] " Honggyu Kim
2015-03-19 1:58 ` Honggyu Kim
2015-03-25 13:52 ` Jeff Law
2015-03-25 14:05 ` Kyrill Tkachov
2015-03-29 11:36 ` Honggyu Kim
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='051201d05f83$ae23a330$0a6ae990$@lge.com' \
--to=hong.gyu.kim@lge.com \
--cc=christophe.lyon@st.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=kyrylo.tkachov@arm.com \
--cc=segher@kernel.crashing.org \
/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).