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
417b11de
Commit
417b11de
authored
Jan 08, 2004
by
Hartmut Penner
Committed by
Hartmut Penner
Jan 08, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc.dg/altivec-11.c: New test.
From-SVN: r75535
parent
ce1f50b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
0 deletions
+49
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.dg/altivec-11.c
+45
-0
No files found.
gcc/testsuite/ChangeLog
View file @
417b11de
2004-01-08 Hartmut Penner <hpenner@de.ibm.com>
* gcc.dg/altivec-11.c: New test.
2004-01-07 Mark Mitchell <mark@codesourcery.com>
* g++.dg/abi/vbase10.C: Use -mstructure-size-boundary=8 on ARM.
...
...
gcc/testsuite/gcc.dg/altivec-11.c
0 → 100644
View file @
417b11de
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-options "-O2 -maltivec -mabi=altivec" } */
/* { dg-final { scan-assembler-not "lvx" } } */
#include <altivec.h>
void
foo
(
vector
int
);
void
foo_s
(
vector
short
);
void
foo_c
(
vector
char
);
/* All constants should be loaded into vector register without
load from memory. */
void
bar
(
void
)
{
foo
((
vector
int
)
{
0
,
0
,
0
,
0
});
foo
((
vector
int
)
{
1
,
1
,
1
,
1
});
foo
((
vector
int
)
{
15
,
15
,
15
,
15
});
foo
((
vector
int
)
{
-
16
,
-
16
,
-
16
,
-
16
});
foo
((
vector
int
)
{
0x10001
,
0x10001
,
0x10001
,
0x10001
});
foo
((
vector
int
)
{
0xf000f
,
0xf000f
,
0xf000f
,
0xf000f
});
foo
((
vector
int
)
{
0xfff0fff0
,
0xfff0fff0
,
0xfff0fff0
,
0xfff0fff0
});
foo
((
vector
int
)
{
0x1010101
,
0x1010101
,
0x1010101
,
0x1010101
});
foo
((
vector
int
)
{
0xf0f0f0f
,
0xf0f0f0f
,
0xf0f0f0f
,
0xf0f0f0f
});
foo
((
vector
int
)
{
0xf0f0f0f0
,
0xf0f0f0f0
,
0xf0f0f0f0
,
0xf0f0f0f0
});
foo
((
vector
int
)
{
0x10
,
0x10
,
0x10
,
0x10
});
foo
((
vector
int
)
{
0x1e
,
0x1e
,
0x1e
,
0x1e
});
foo_s
((
vector
short
int
)
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
});
foo_s
((
vector
short
int
)
{
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
});
foo_s
((
vector
short
int
)
{
15
,
15
,
15
,
15
,
15
,
15
,
15
,
15
});
foo_s
((
vector
short
int
)
{
-
16
,
-
16
,
-
16
,
-
16
,
-
16
,
-
16
,
-
16
,
-
16
});
foo_s
((
vector
short
int
)
{
0xf0f0
,
0xf0f0
,
0xf0f0
,
0xf0f0
,
0xf0f0
,
0xf0f0
,
0xf0f0
,
0xf0f0
});
foo_s
((
vector
short
int
)
{
0xf0f
,
0xf0f
,
0xf0f
,
0xf0f
,
0xf0f
,
0xf0f
,
0xf0f
,
0xf0f
});
foo_c
((
vector
char
)
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
});
foo_c
((
vector
char
)
{
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
});
foo_c
((
vector
char
)
{
15
,
15
,
15
,
15
,
15
,
15
,
15
,
15
,
15
,
15
,
15
,
15
,
15
,
15
,
15
,
15
});
foo_c
((
vector
char
)
{
-
16
,
-
16
,
-
16
,
-
16
,
-
16
,
-
16
,
-
16
,
-
16
,
-
16
,
-
16
,
-
16
,
-
16
,
-
16
,
-
16
,
-
16
,
-
16
});
}
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