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
ff229ff6
Commit
ff229ff6
authored
Oct 17, 2002
by
Jan Hubicka
Committed by
Jan Hubicka
Oct 17, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc.dg/20021017-2.c: New test.
From-SVN: r58253
parent
48126a97
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
69 additions
and
0 deletions
+69
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.dg/20020523-2.c
+65
-0
No files found.
gcc/testsuite/ChangeLog
View file @
ff229ff6
Thu Oct 17 19:12:58 CEST 2002 Jan Hubicka <jh@suse.cz>
* gcc.dg/20021017-2.c: New test.
2002-10-17 Mark Mitchell <mark@codesourcery.com>
* g++.dg/abi/mangle17.C: Adjust.
...
...
gcc/testsuite/gcc.dg/20020523-2.c
0 → 100644
View file @
ff229ff6
/* PR target/6753
This testcase was miscompiled because sse_mov?fcc_const0*
patterns were missing earlyclobber. */
/* { dg-do run { target i386-*-* } } */
/* { dg-options "-march=pentium3 -msse -ffast-math -O2" } */
extern
void
abort
(
void
);
extern
void
exit
(
int
);
float
one
=
1
.
f
;
void
bar
(
float
f
)
{
if
(
__builtin_memcmp
(
&
one
,
&
f
,
sizeof
(
float
)))
abort
();
}
float
foo
(
void
)
{
return
1
.
f
;
}
typedef
struct
{
float
t
;
}
T
;
void
bail_if_no_sse
(
void
)
{
int
fl1
,
fl2
;
/* See if we can use cpuid. */
__asm__
(
"pushfl; pushfl; popl %0; movl %0,%1; xorl %2,%0;"
"pushl %0; popfl; pushfl; popl %0; popfl"
:
"=&r"
(
fl1
),
"=&r"
(
fl2
)
:
"i"
(
0x00200000
));
if
(((
fl1
^
fl2
)
&
0x00200000
)
==
0
)
exit
(
0
);
/* See if cpuid gives capabilities. */
__asm__
(
"cpuid"
:
"=a"
(
fl1
)
:
"0"
(
0
)
:
"ebx"
,
"ecx"
,
"edx"
,
"cc"
);
if
(
fl1
==
0
)
exit
(
0
);
/* See if capabilities include SSE (25th bit; 26 for SSE2). */
__asm__
(
"cpuid"
:
"=a"
(
fl1
),
"=d"
(
fl2
)
:
"0"
(
1
)
:
"ebx"
,
"ecx"
,
"cc"
);
if
((
fl2
&
(
1
<<
25
))
==
0
)
exit
(
0
);
}
int
main
(
void
)
{
int
i
;
T
x
[
1
];
bail_if_no_sse
();
for
(
i
=
0
;
i
<
1
;
i
++
)
{
x
[
i
].
t
=
foo
();
x
[
i
].
t
=
0
.
f
>
x
[
i
].
t
?
0
.
f
:
x
[
i
].
t
;
bar
(
x
[
i
].
t
);
}
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