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
6ec6b7f2
Commit
6ec6b7f2
authored
Feb 08, 2008
by
Sa Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check parameter type of spu intrinsics spu_convts, spu_convtu, spu_convtf
From-SVN: r132184
parent
3f4dc604
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
gcc/testsuite/gcc.target/spu/intrinsics-3.c
+21
-0
No files found.
gcc/testsuite/gcc.target/spu/intrinsics-3.c
0 → 100644
View file @
6ec6b7f2
/* { dg-do compile } */
#include <spu_intrinsics.h>
void
f0
(
vec_uint4
*
in
)
{
vec_float4
out
=
spu_convtf
(
in
[
0
],
128
);
/* { dg-error "expects an integer literal in the range" "0, 127" }*/
}
void
f1
(
vec_int4
*
in
)
{
vec_float4
out
=
spu_convtf
(
in
[
0
],
128
);
/* { dg-error "expects an integer literal in the range" "0, 127" }*/
}
void
f2
(
vec_float4
*
in
)
{
vec_int4
out
=
spu_convts
(
in
[
0
],
128
);
/* { dg-error "expects an integer literal in the range" "0, 127" }*/
}
void
f3
(
vec_float4
*
in
)
{
vec_uint4
out
=
spu_convtu
(
in
[
0
],
128
);
/* { dg-error "expects an integer literal in the range" "0, 127" }*/
}
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