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
01952d37
Commit
01952d37
authored
22 years ago
by
Alexandre Oliva
Committed by
Alexandre Oliva
22 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc.c-torture/execute/20030222-1.c: New test.
From-SVN: r63767
parent
f12448c8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.c-torture/execute/20030222-1.c
+27
-0
No files found.
gcc/testsuite/ChangeLog
View file @
01952d37
2003-03-04 Alexandre Oliva <aoliva@redhat.com>
* gcc.c-torture/execute/20030222-1.c: New test.
2003-03-03 James E Wilson <wilson@tuliptree.org>
* gcc.dg/m68k-slp-ice.c: New test for PR c/7872.
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.c-torture/execute/20030222-1.c
0 → 100644
View file @
01952d37
/* Verify that we get the low part of the long long as an int. We
used to get it wrong on big-endian machines, if register allocation
succeeded at all. We use volatile to make sure the long long is
actually truncated to int, in case a single register is wide enough
for a long long. */
#include <limits.h>
void
ll_to_int
(
long
long
x
,
volatile
int
*
p
)
{
int
i
;
asm
(
""
:
"=r"
(
i
)
:
"0"
(
x
));
*
p
=
i
;
}
int
val
=
INT_MIN
+
1
;
int
main
()
{
volatile
int
i
;
ll_to_int
((
long
long
)
val
,
&
i
);
if
(
i
!=
val
)
abort
();
exit
(
0
);
}
This diff is collapsed.
Click to expand it.
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