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
a431e913
Commit
a431e913
authored
Jul 21, 2010
by
Jakub Jelinek
Committed by
Jakub Jelinek
Jul 21, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc.dg/guality/asm-1.c: New test.
From-SVN: r162363
parent
6b2b43d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.dg/guality/asm-1.c
+25
-0
No files found.
gcc/testsuite/ChangeLog
View file @
a431e913
2010-07-21 Jakub Jelinek <jakub@redhat.com>
* gcc.dg/guality/asm-1.c: New test.
2010-07-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/44697
...
...
gcc/testsuite/gcc.dg/guality/asm-1.c
0 → 100644
View file @
a431e913
/* { dg-do run } */
/* { dg-options "-g" } */
struct
A
{
int
x
;
unsigned
short
y
;
char
z
[
64
];
};
void
__attribute__
((
noinline
))
foo
(
struct
A
*
p
,
char
*
q
)
{
int
f
=
&
p
->
z
[
p
->
y
]
-
q
;
asm
volatile
(
"nop"
);
asm
volatile
(
"nop"
:
:
"g"
(
f
));
/* { dg-final { gdb-test 12 "f" "14" } } */
asm
volatile
(
""
:
:
"g"
(
p
),
"g"
(
q
));
}
int
main
()
{
struct
A
a
;
__builtin_memset
(
&
a
,
0
,
sizeof
a
);
a
.
y
=
26
;
a
.
x
=
12
;
asm
volatile
(
""
:
:
"r"
(
&
a
)
:
"memory"
);
foo
(
&
a
,
&
a
.
z
[
a
.
x
]);
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