public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/66754] [4.9/5/6] gcc.dg/builtin-apply2.c aborts with -m32 -mregparm=3 or -miamcu Date: Sat, 04 Jul 2015 02:37:00 -0000 [thread overview] Message-ID: <bug-66754-4-Y6Pz2NGlO5@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-66754-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66754 H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> --- Here is a testcase without -mregparm=N: [hjl@gnu-tools-1 pr66754]$ cat x.i extern void abort(void); typedef double __v2df __attribute__ ((__vector_size__ (16))); __v2df val; void foo (char *name, __v2df x, __v2df y, __v2df z) { if (!__builtin_ia32_comisdeq (z, val)) abort(); } void bar (char *name, ...) { __builtin_apply(foo, __builtin_apply_args(), 64); } int main(void) { __v2df x = { 3.1, 3.2 }; __v2df y = { 2.1, 5.2 }; __v2df z = { 1.1, 7.2 }; val = z; bar("eeee", x, y, z); return 0; } [hjl@gnu-tools-1 pr66754]$ make /export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc -B/export/build/gnu/gcc/build-x86_64-linux/gcc/ -m32 -msse2 -S -o x.s x.i /export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc -B/export/build/gnu/gcc/build-x86_64-linux/gcc/ -g -m32 -msse2 -o x x.s ./x Makefile:12: recipe for target 'all' failed make: *** [all] Aborted (core dumped) [hjl@gnu-tools-1 pr66754]$ The vector parameters have the same issue. All arguments of vararg functions argument are passed on stack while the first 3 vector arguments are passed in registers for non-vararg functions.
prev parent reply other threads:[~2015-07-04 2:37 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-07-03 13:13 [Bug target/66754] New: [4.9/5/6] gcc.dg/builtin-apply2.c aborts with -m32 -mregparm=3 julia.koval at intel dot com 2015-07-03 15:13 ` [Bug target/66754] " marxin at gcc dot gnu.org 2015-07-03 16:07 ` mikpelinux at gmail dot com 2015-07-03 16:52 ` [Bug target/66754] [4.9/5/6] gcc.dg/builtin-apply2.c aborts with -m32 -mregparm=3 or -miamcu hjl.tools at gmail dot com 2015-07-03 18:38 ` hjl.tools at gmail dot com 2015-07-04 2:17 ` hjl.tools at gmail dot com 2015-07-04 2:37 ` hjl.tools at gmail dot com [this message]
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=bug-66754-4-Y6Pz2NGlO5@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.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: linkBe 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).