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
e3a69bb4
Commit
e3a69bb4
authored
Feb 15, 2011
by
Michael Meissner
Committed by
Michael Meissner
Feb 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix PR 47755
From-SVN: r170189
parent
de650422
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
4 deletions
+30
-4
gcc/ChangeLog
+6
-0
gcc/config/rs6000/predicates.md
+2
-4
gcc/testsuite/ChangeLog
+6
-0
gcc/testsuite/gcc.target/powerpc/pr47755.c
+16
-0
No files found.
gcc/ChangeLog
View file @
e3a69bb4
2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/47755
* config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
mode for vector constants. Remove code that checks for TImode.
2011-02-15 Alexandre Oliva <aoliva@redhat.com>
PR debug/47106
...
...
gcc/config/rs6000/predicates.md
View file @
e3a69bb4
...
...
@@ -328,13 +328,11 @@
if (TARGET_PAIRED_FLOAT)
return false;
if ((VSX_VECTOR_MODE (mode) || mode == TImode) && zero_constant (op, mode))
return true;
if (ALTIVEC_VECTOR_MODE (mode))
if (VECTOR_MEM_ALTIVEC_OR_VSX_P (mode))
{
if (zero_constant (op, mode))
return true;
return easy_altivec_constant (op, mode);
}
...
...
gcc/testsuite/ChangeLog
View file @
e3a69bb4
2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/47755
* gcc.target/powerpc/pr47755.c: New file, test all 0 vector
constant does not generate a load from memory.
2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/47725
...
...
gcc/testsuite/gcc.target/powerpc/pr47755.c
0 → 100644
View file @
e3a69bb4
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-options "-O3 -mcpu=power7" } */
/* { dg-final { scan-assembler "xxlxor" } } */
/* { dg-final { scan-assembler-not "lxvd2x" } } */
/* { dg-final { scan-assembler-not "lxvw4x" } } */
/* { dg-final { scan-assembler-not "lvx" } } */
/* PR 47755: Compiler loads vector constant of 0 from TOC instead of using
xxlxor. */
void
func
(
vector
long
long
*
p
)
{
*
p
=
(
vector
long
long
)
{
0LL
,
0LL
};
}
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