public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/37169] New: [4.4 Regression] Inefficent code for _mm_cvtsi64_si128
@ 2008-08-19 23:47 hjl dot tools at gmail dot com
2008-08-20 1:40 ` [Bug target/37169] " hjl dot tools at gmail dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-08-19 23:47 UTC (permalink / raw)
To: gcc-bugs
[hjl@gnu-6 i386]$ cat x.c
/* { dg-do run } */
/* { dg-options "-O2 -msse2" } */
#include <emmintrin.h>
__m128i
test (long long b)
{
return _mm_cvtsi64_si128 (b);
}
[hjl@gnu-6 i386]$
/export/build/gnu/gcc-avx-internal/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc-avx-internal/build-x86_64-linux/gcc/ -DDEBUG -Wall
-Werror -mfpmath=sse x.c -S -O2 -msse4 -march=core2
[hjl@gnu-6 i386]$ cat x.s
.file "x.c"
.text
.p2align 4,,15
.globl test
.type test, @function
test:
.LFB493:
.cfi_startproc
pxor %xmm0, %xmm0
pinsrq $0, %rdi, %xmm0
ret
.cfi_endproc
.LFE493:
.size test, .-test
[hjl@gnu-6 i386]$
Gcc 4.3 generates
hjl@gnu-6 i386]$ gcc x.c -S -O2 -msse4 -march=core2[hjl@gnu-6 i386]$ cat x.s
.file "x.c"
.text
.p2align 4,,15
.globl test
.type test, @function
test:
.LFB518:
movq %rdi, %xmm0
ret
--
Summary: [4.4 Regression] Inefficent code for _mm_cvtsi64_si128
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hjl dot tools at gmail dot com
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37169
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/37169] [4.4 Regression] Inefficent code for _mm_cvtsi64_si128
2008-08-19 23:47 [Bug target/37169] New: [4.4 Regression] Inefficent code for _mm_cvtsi64_si128 hjl dot tools at gmail dot com
@ 2008-08-20 1:40 ` hjl dot tools at gmail dot com
2008-08-20 13:25 ` hjl at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-08-20 1:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from hjl dot tools at gmail dot com 2008-08-20 01:39 -------
A patch is posted at
http://gcc.gnu.org/ml/gcc-patches/2008-08/msg01351.html
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2008-
| |08/msg01351.html
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37169
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/37169] [4.4 Regression] Inefficent code for _mm_cvtsi64_si128
2008-08-19 23:47 [Bug target/37169] New: [4.4 Regression] Inefficent code for _mm_cvtsi64_si128 hjl dot tools at gmail dot com
2008-08-20 1:40 ` [Bug target/37169] " hjl dot tools at gmail dot com
@ 2008-08-20 13:25 ` hjl at gcc dot gnu dot org
2008-08-20 21:18 ` hjl dot tools at gmail dot com
2008-08-29 5:38 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: hjl at gcc dot gnu dot org @ 2008-08-20 13:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from hjl at gcc dot gnu dot org 2008-08-20 13:23 -------
Subject: Bug 37169
Author: hjl
Date: Wed Aug 20 13:22:30 2008
New Revision: 139289
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=139289
Log:
gcc/
2008-08-20 H.J. Lu <hongjiu.lu@intel.com>
PR target/37169
* config/i386/i386.c (ix86_expand_vector_init_one_nonzero): In
V2DI mode, for SSE4.1, use movq instead of vector set if the
second element is zero and inter-unit moves are OK.
gcc/testsuite/
2008-08-20 H.J. Lu <hongjiu.lu@intel.com>
PR target/37169
* i386/sse2-init-v2di-2.c: New.
Added:
trunk/gcc/testsuite/gcc.target/i386/sse2-init-v2di-2.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/i386/i386.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37169
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/37169] [4.4 Regression] Inefficent code for _mm_cvtsi64_si128
2008-08-19 23:47 [Bug target/37169] New: [4.4 Regression] Inefficent code for _mm_cvtsi64_si128 hjl dot tools at gmail dot com
2008-08-20 1:40 ` [Bug target/37169] " hjl dot tools at gmail dot com
2008-08-20 13:25 ` hjl at gcc dot gnu dot org
@ 2008-08-20 21:18 ` hjl dot tools at gmail dot com
2008-08-29 5:38 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-08-20 21:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from hjl dot tools at gmail dot com 2008-08-20 21:17 -------
Fixed.
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37169
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/37169] [4.4 Regression] Inefficent code for _mm_cvtsi64_si128
2008-08-19 23:47 [Bug target/37169] New: [4.4 Regression] Inefficent code for _mm_cvtsi64_si128 hjl dot tools at gmail dot com
` (2 preceding siblings ...)
2008-08-20 21:18 ` hjl dot tools at gmail dot com
@ 2008-08-29 5:38 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-08-29 5:38 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Target Milestone|--- |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37169
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-08-29 5:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-19 23:47 [Bug target/37169] New: [4.4 Regression] Inefficent code for _mm_cvtsi64_si128 hjl dot tools at gmail dot com
2008-08-20 1:40 ` [Bug target/37169] " hjl dot tools at gmail dot com
2008-08-20 13:25 ` hjl at gcc dot gnu dot org
2008-08-20 21:18 ` hjl dot tools at gmail dot com
2008-08-29 5:38 ` pinskia at gcc dot gnu dot org
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).