* [Bug target/102105] [10/11/12 Regression] x86_64: ABI break with vector in union and -mno-mmx -mavx
2021-08-27 20:22 [Bug target/102105] New: x86_64: ABI break with vector in union and -mno-mmx -mavx mpolacek at gcc dot gnu.org
@ 2021-08-27 20:22 ` mpolacek at gcc dot gnu.org
2021-08-27 20:28 ` mpolacek at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2021-08-27 20:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102105
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |10.4
Keywords| |ABI
Summary|x86_64: ABI break with |[10/11/12 Regression]
|vector in union and |x86_64: ABI break with
|-mno-mmx -mavx |vector in union and
| |-mno-mmx -mavx
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/102105] [10/11/12 Regression] x86_64: ABI break with vector in union and -mno-mmx -mavx
2021-08-27 20:22 [Bug target/102105] New: x86_64: ABI break with vector in union and -mno-mmx -mavx 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
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2021-08-27 20:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102105
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
diff between r271212 and r271213:
$ diff -up ~/y12.s ~/y13.s
--- /home/mpolacek/y12.s 2021-08-27 16:25:46.000000000 -0400
+++ /home/mpolacek/y13.s 2021-08-27 16:25:53.000000000 -0400
@@ -87,8 +87,8 @@ test_v1di:
movq %rsp, %rbp
.LCFI10:
movq g_v1di(%rip), %rax
- movq %rax, %rdi
- movl $0, %eax
+ vmovq %rax, %xmm0
+ movl $1, %eax
call pass_v1di
nop
popq %rbp
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/102105] [10/11/12 Regression] x86_64: ABI break with vector in union and -mno-mmx -mavx
2021-08-27 20:22 [Bug target/102105] New: x86_64: ABI break with vector in union and -mno-mmx -mavx 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 ` [Bug target/102105] " hjl.tools at gmail dot com
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: hjl.tools at gmail dot com @ 2021-08-27 21:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102105
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Last reconfirmed| |2021-08-27
CC|hjl at gcc dot gnu.org |hjl.tools at gmail dot com
Status|UNCONFIRMED |NEW
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/102105] x86_64: ABI break with vector in union and -mno-mmx -mavx
2021-08-27 20:22 [Bug target/102105] New: x86_64: ABI break with vector in union and -mno-mmx -mavx mpolacek at gcc dot gnu.org
` (2 preceding siblings ...)
2021-08-27 21:33 ` hjl.tools at gmail dot com
@ 2021-08-28 1:09 ` hjl.tools at gmail dot com
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
5 siblings, 0 replies; 7+ messages in thread
From: hjl.tools at gmail dot com @ 2021-08-28 1:09 UTC (permalink / raw)
To: gcc-bugs
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/102105] x86_64: ABI break with __m64 argument and -mno-mmx
2021-08-27 20:22 [Bug target/102105] New: x86_64: ABI break with vector in union and -mno-mmx -mavx mpolacek at gcc dot gnu.org
` (3 preceding siblings ...)
2021-08-28 1:09 ` [Bug target/102105] " hjl.tools at gmail dot com
@ 2022-06-28 10:46 ` jakub at gcc dot gnu.org
2023-07-07 9:45 ` rguenth at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-06-28 10:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102105
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|10.4 |10.5
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 10.4 is being released, retargeting bugs to GCC 10.5.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/102105] x86_64: ABI break with __m64 argument and -mno-mmx
2021-08-27 20:22 [Bug target/102105] New: x86_64: ABI break with vector in union and -mno-mmx -mavx mpolacek at gcc dot gnu.org
` (4 preceding siblings ...)
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
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07 9:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102105
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|10.5 |---
Target| |x86_64-*-* i?86-*-*
^ permalink raw reply [flat|nested] 7+ messages in thread