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
21505616
Commit
21505616
authored
Jun 15, 2002
by
Hans-Peter Nilsson
Committed by
Hans-Peter Nilsson
Jun 15, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc.c-torture/execute/20020615-1.c: New test.
From-SVN: r54650
parent
8f8c44cb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
0 deletions
+63
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.c-torture/execute/20020615-1.c
+59
-0
No files found.
gcc/testsuite/ChangeLog
View file @
21505616
2002-06-15 Hans-Peter Nilsson <hp@axis.com>
* gcc.c-torture/execute/20020615-1.c: New test.
2002-06-15 Roger Sayle <roger@eyesopen.com>
2002-06-15 Roger Sayle <roger@eyesopen.com>
* gcc.c-tortuture/execute/compare-1.c: New test case.
* gcc.c-tortuture/execute/compare-1.c: New test case.
...
...
gcc/testsuite/gcc.c-torture/execute/20020615-1.c
0 → 100644
View file @
21505616
/* PR target/7042. In cris.md the return pattern and its condition
had a bug uncovered by the combination of saved registers and
filled delay slot, where the delay-slot insn set the
return-value register. Derived from ghostscript-6.52 (GPL)
by hp@axis.com. */
typedef
struct
font_hints_s
{
int
axes_swapped
;
int
x_inverted
,
y_inverted
;
}
font_hints
;
typedef
struct
gs_fixed_point_s
{
long
x
,
y
;
}
gs_fixed_point
;
int
line_hints
(
const
font_hints
*
fh
,
const
gs_fixed_point
*
p0
,
const
gs_fixed_point
*
p1
)
{
long
dx
=
p1
->
x
-
p0
->
x
;
long
dy
=
p1
->
y
-
p0
->
y
;
long
adx
,
ady
;
int
xi
=
fh
->
x_inverted
,
yi
=
fh
->
y_inverted
;
int
hints
;
if
(
xi
)
dx
=
-
dx
;
if
(
yi
)
dy
=
-
dy
;
if
(
fh
->
axes_swapped
)
{
long
t
=
dx
;
int
ti
=
xi
;
dx
=
dy
,
xi
=
yi
;
dy
=
t
,
yi
=
ti
;
}
adx
=
dx
<
0
?
-
dx
:
dx
;
ady
=
dy
<
0
?
-
dy
:
dy
;
if
(
dy
!=
0
&&
(
adx
<=
ady
>>
4
))
{
hints
=
dy
>
0
?
2
:
1
;
if
(
xi
)
hints
^=
3
;
}
else
if
(
dx
!=
0
&&
(
ady
<=
adx
>>
4
))
{
hints
=
dx
<
0
?
8
:
4
;
if
(
yi
)
hints
^=
12
;
}
else
hints
=
0
;
return
hints
;
}
int
main
()
{
static
font_hints
fh
[]
=
{{
0
,
1
,
0
},
{
0
,
0
,
1
},
{
0
,
0
,
0
}};
static
gs_fixed_point
gsf
[]
=
{{
0x30000
,
0x13958
},
{
0x30000
,
0x18189
},
{
0x13958
,
0x30000
},
{
0x18189
,
0x30000
}};
if
(
line_hints
(
fh
,
gsf
,
gsf
+
1
)
!=
1
||
line_hints
(
fh
+
1
,
gsf
+
2
,
gsf
+
3
)
!=
8
||
line_hints
(
fh
+
2
,
gsf
+
2
,
gsf
+
3
)
!=
4
)
abort
();
exit
(
0
);
}
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