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/102105] x86_64: ABI break with vector in union and -mno-mmx -mavx Date: Sat, 28 Aug 2021 01:09:59 +0000 [thread overview] Message-ID: <bug-102105-4-t0vn8xXflL@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-102105-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102105 H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|unknown |9.4.1 Summary|[10/11/12 Regression] |x86_64: ABI break with |x86_64: ABI break with |vector in union and |vector in union and |-mno-mmx -mavx |-mno-mmx -mavx | --- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> --- I consider this is a GCC 9 bug: [hjl@gnu-cfl-2 pr102105]$ cat foo.c extern __attribute__((__vector_size__(8))) long long g_v1di; void pass_v1di( __attribute__((__vector_size__(8))) long long); void test_v1di() { pass_v1di(g_v1di); } [hjl@gnu-cfl-2 pr102105]$ /usr/gcc-9.3.1-x32/bin/gcc -S -O2 foo.c [hjl@gnu-cfl-2 pr102105]$ cat foo.s .file "foo.c" .text .p2align 4 .globl test_v1di .type test_v1di, @function test_v1di: .LFB0: .cfi_startproc movq g_v1di(%rip), %xmm0 jmp pass_v1di .cfi_endproc .LFE0: .size test_v1di, .-test_v1di .ident "GCC: (GNU) 9.3.1 20200312" .section .note.GNU-stack,"",@progbits [hjl@gnu-cfl-2 pr102105]$ /usr/gcc-9.3.1-x32/bin/gcc -S -O2 foo.c -mno-mmx [hjl@gnu-cfl-2 pr102105]$ cat foo.s .file "foo.c" .text .p2align 4 .globl test_v1di .type test_v1di, @function test_v1di: .LFB0: .cfi_startproc movq g_v1di(%rip), %rdi jmp pass_v1di .cfi_endproc .LFE0: .size test_v1di, .-test_v1di .ident "GCC: (GNU) 9.3.1 20200312" .section .note.GNU-stack,"",@progbits [hjl@gnu-cfl-2 pr102105]$ Since MMX register isn't used, -mno-mmx shouldn't change ABI.
next prev parent reply other threads:[~2021-08-28 1:09 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-08-27 20:22 [Bug target/102105] New: " mpolacek at gcc dot gnu.org 2021-08-27 20:22 ` [Bug target/102105] [10/11/12 Regression] " mpolacek at gcc dot gnu.org 2021-08-27 20:28 ` mpolacek at gcc dot gnu.org 2021-08-27 21:33 ` hjl.tools at gmail dot com 2021-08-28 1:09 ` hjl.tools at gmail dot com [this message] 2022-06-28 10:46 ` [Bug target/102105] x86_64: ABI break with __m64 argument and -mno-mmx jakub at gcc dot gnu.org 2023-07-07 9:45 ` rguenth at gcc dot gnu.org
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-102105-4-t0vn8xXflL@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).