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
bbe348cd
Commit
bbe348cd
authored
Dec 01, 1998
by
Nick Clifton
Committed by
Nick Clifton
Dec 01, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new test based on PR 18365
From-SVN: r24025
parent
688d56bc
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
0 deletions
+57
-0
gcc/testsuite/gcc.c-torture/ChangeLog
+5
-0
gcc/testsuite/gcc.c-torture/execute/981130-1.c
+30
-0
gcc/testsuite/gcc.c-torture/execute/981130-1.x
+22
-0
No files found.
gcc/testsuite/gcc.c-torture/ChangeLog
View file @
bbe348cd
1998-11-30 Nick Clifton <nickc@cygnus.com>
* execute/981130-1.c: New test.
* execute/981130-1.x: New test failure expectations.
Sun Oct 11 05:04:28 1998 Ken Raeburn <raeburn@cygnus.com>
* execute/memcheck: New directory of tests for
...
...
gcc/testsuite/gcc.c-torture/execute/981130-1.c
0 → 100644
View file @
bbe348cd
struct
s
{
int
a
;
int
b
;};
struct
s
s1
;
struct
s
s2
=
{
1
,
2
,
};
void
check
(
a
,
b
)
int
a
;
int
b
;
{
if
(
a
==
b
)
exit
(
0
);
else
abort
();
}
int
main
()
{
int
*
p
;
int
x
;
s1
.
a
=
9
;
p
=
&
s1
.
a
;
s1
=
s2
;
x
=
*
p
;
check
(
x
,
1
);
}
gcc/testsuite/gcc.c-torture/execute/981130-1.x
0 → 100644
View file @
bbe348cd
# This test is known to fail on targets that use the instruction scheduler
# at optimisation levels of 2 or more because the alias analysis is confused
# by the reassignment of a variable structure to a fixed structure. The
# failure could be suppressed by preventing instruction scheduling:
#
# set additional_flags "-fno-schedule-insns2";
#
# but this would disguise the fact that there is a problem. Instead we use
# we generate an xfail result and explain that it is alias analysis that
# is at fault.
set torture_eval_before_execute {
set compiler_conditional_xfail_data {
"alias analysis conflicts with instruction scheduling" \
"m32r-*-*" \
{ "-O2" "-O1" "-O0" "-Os"} \
{ "" }
}
}
return 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