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
6acaa318
Commit
6acaa318
authored
26 years ago
by
Jeffrey A Law
Committed by
Jeff Law
26 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc.dg/980709-1.c: New test.
From-SVN: r21018
parent
752e74f9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.dg/980709-1.c
+20
-0
No files found.
gcc/testsuite/ChangeLog
View file @
6acaa318
Thu Jul 9 00:38:51 1998 Jeffrey A Law (law@cygnus.com)
* gcc.dg/980709-1.c: New test.
Tue Jul 7 13:41:27 1998 Richard Henderson <rth@cygnus.com>
* gcc.c-torture/execute/bcp-1.c: New test.
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.dg/980709-1.c
0 → 100644
View file @
6acaa318
/* { dg-do compile { target i?86-*-* } } */
/* { dg-options -O2 } */
extern
__inline__
int
test_and_set_bit
(
int
nr
,
volatile
void
*
addr
)
{
int
oldbit
;
__asm__
__volatile__
(
""
"btsl %2,%1
\n\t
sbbl %0,%0"
:
"=r"
(
oldbit
),
"=m"
(
addr
)
:
"ir"
(
nr
));
return
oldbit
;
}
struct
buffer_head
{
unsigned
long
b_state
;
};
extern
void
lock_buffer
(
struct
buffer_head
*
bh
)
{
while
(
test_and_set_bit
(
2
,
&
bh
->
b_state
))
__wait_on_buffer
(
bh
);
}
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