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
d3f1be5d
Commit
d3f1be5d
authored
Dec 17, 2006
by
Eric Botcazou
Committed by
Eric Botcazou
Dec 17, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pr27528.c: Use empty templates.
* gcc.c-torture/compile/pr27528.c: Use empty templates. From-SVN: r119991
parent
fcd44320
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.c-torture/compile/pr27528.c
+6
-6
No files found.
gcc/testsuite/ChangeLog
View file @
d3f1be5d
2006
-
12
-
17
Eric
Botcazou
<
ebotcazou
@libertysurf
.
fr
>
*
gcc
.
c
-
torture
/
compile
/
pr27528
.
c
:
Use
empty
templates
.
2006
-
12
-
17
Steven
G
.
Kargl
<
kargl
@gcc
.
gnu
.
org
>
PR
fortran
/
30207
gcc/testsuite/gcc.c-torture/compile/pr27528.c
View file @
d3f1be5d
...
...
@@ -6,13 +6,13 @@ int x[2] = { 1, 2 };
static
inline
void
__attribute__
((
__always_inline__
))
insn1
(
int
x
)
{
asm
volatile
(
"
# %0 %1
"
::
"n"
(
x
),
"i"
(
x
));
asm
volatile
(
""
::
"n"
(
x
),
"i"
(
x
));
}
static
inline
void
__attribute__
((
__always_inline__
))
insn2
(
const
void
*
x
)
{
asm
volatile
(
"
# %0 %1
"
::
"s"
(
x
),
"i"
(
x
));
asm
volatile
(
""
::
"s"
(
x
),
"i"
(
x
));
}
#endif
...
...
@@ -29,10 +29,10 @@ foo (void)
insn2
(
&
x
[
1
]);
insn2
(
"string"
);
#endif
asm
volatile
(
"
# %0 %1
"
::
"s"
(
x
),
"i"
(
x
));
asm
volatile
(
""
::
"s"
(
x
),
"i"
(
x
));
/* At the time of writing, &x[1] is decomposed before reaching expand
when compiling with -O0. */
asm
volatile
(
"
# %0 %1
"
::
"s"
(
"string"
),
"i"
(
"string"
));
asm
volatile
(
"
# %0 %1
"
::
"s"
(
__FILE__
),
"i"
(
__FILE__
));
asm
volatile
(
"
# %0 %1
"
::
"s"
(
__FUNCTION__
),
"i"
(
__FUNCTION__
));
asm
volatile
(
""
::
"s"
(
"string"
),
"i"
(
"string"
));
asm
volatile
(
""
::
"s"
(
__FILE__
),
"i"
(
__FILE__
));
asm
volatile
(
""
::
"s"
(
__FUNCTION__
),
"i"
(
__FUNCTION__
));
}
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