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
21592ebe
Commit
21592ebe
authored
Aug 30, 2018
by
Qing Zhao
Committed by
Qing Zhao
Aug 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move strcmpopt_6.c from gcc.dg to gcc.target/aarch64 and gcc.target/i386.
From-SVN: r263983
parent
22eea6b2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
0 deletions
+43
-0
gcc/testsuite/ChangeLog
+7
-0
gcc/testsuite/gcc.target/aarch64/strcmpopt_6.c
+0
-0
gcc/testsuite/gcc.target/i386/strcmpopt_6.c
+36
-0
No files found.
gcc/testsuite/ChangeLog
View file @
21592ebe
2018-08-30 Qing Zhao <qing.zhao@oracle.com>
PR 86519
gcc.dg/strcmpopt_6.c: Remove.
gcc.target/aarch64/strcmpopt_6.c: New testcase.
gcc.target/i386/strcmpopt_6.c: Likewise.
2018-08-30 Richard Biener <rguenther@suse.de>
PR tree-optimization/87147
...
...
gcc/testsuite/gcc.
dg
/strcmpopt_6.c
→
gcc/testsuite/gcc.
target/aarch64
/strcmpopt_6.c
View file @
21592ebe
File moved
gcc/testsuite/gcc.target/i386/strcmpopt_6.c
0 → 100644
View file @
21592ebe
/* When the specified length exceeds one of the arguments of the call to memcmp,
the call to memcmp should NOT be inlined. */
/* { dg-do compile } */
/* { dg-options "-O2 -Wno-stringop-overflow" } */
typedef
struct
{
char
s
[
8
];
int
x
;
}
S
;
__attribute__
((
noinline
))
int
f1
(
S
*
s
)
{
int
result
=
0
;
result
+=
__builtin_memcmp
(
s
->
s
,
"a"
,
3
);
return
result
;
}
__attribute__
((
noinline
))
int
f2
(
char
*
p
)
{
int
result
=
0
;
result
+=
__builtin_memcmp
(
p
,
"a"
,
3
);
return
result
;
}
int
main
(
void
)
{
S
ss
=
{{
'a'
,
'b'
,
'c'
},
2
};
char
*
s
=
"abcd"
;
if
(
f1
(
&
ss
)
<
0
||
f2
(
s
)
<
0
)
__builtin_abort
();
return
0
;
}
/* { dg-final { scan-assembler-times "memcmp" 2 } } */
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