Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
667e8acb
Commit
667e8acb
authored
Apr 01, 2009
by
Xinliang David Li
Committed by
Xinliang David Li
Apr 01, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better m128i constant materialization
From-SVN: r145418
parent
eec49116
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
3 deletions
+25
-3
gcc/ChangeLog
+5
-0
gcc/config/i386/i386.c
+2
-3
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.target/i386/all_one_m128i.c
+14
-0
No files found.
gcc/ChangeLog
View file @
667e8acb
2009-04-1 Xinliang David Li <davidxl@google.com>
* config/i386/i386.c (legitimate_constant_p): Recognize
all one vector constant.
2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
* gcc/config/vax/vax.c: Add #includes to silence warnings.
* gcc/config/vax/vax.c: Add #includes to silence warnings.
...
...
gcc/config/i386/i386.c
View file @
667e8acb
...
@@ -8951,9 +8951,8 @@ legitimate_constant_p (rtx x)
...
@@ -8951,9 +8951,8 @@ legitimate_constant_p (rtx x)
break
;
break
;
case
CONST_VECTOR
:
case
CONST_VECTOR
:
if
(
x
==
CONST0_RTX
(
GET_MODE
(
x
)))
if
(
!
standard_sse_constant_p
(
x
))
return
true
;
return
false
;
return
false
;
default
:
default
:
break
;
break
;
...
...
gcc/testsuite/ChangeLog
View file @
667e8acb
2009-04-01 Xinliang David Li <davidxl@google.com>
* gcc.target/i386/all_one_m128i.c: New test.
2009-04-01 Janis Johnson <janis187@us.ibm.com>
2009-04-01 Janis Johnson <janis187@us.ibm.com>
PR c/33466
PR c/33466
...
...
gcc/testsuite/gcc.target/i386/all_one_m128i.c
0 → 100644
View file @
667e8acb
/* { dg-do compile } */
/* { dg-options "-O2 -msse2" } */
typedef
long
long
__m128i
__attribute__
((
__vector_size__
(
16
)));
typedef
int
__v4si
__attribute__
((
__vector_size__
(
16
)));
__m128i
foo
()
{
__m128i
minus_1
=
(
__m128i
)
(
__v4si
)
{
-
1
,
-
1
,
-
1
,
-
1
};
return
minus_1
;
}
/* { dg-final { scan-assembler "pcmpeqd" } } */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment