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
908bd465
Commit
908bd465
authored
Jul 02, 2007
by
Daniel Berlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing test from last commit
Fixup two existing C++ tests for SCCVN changes From-SVN: r126187
parent
8b0a5125
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
4 deletions
+42
-4
gcc/testsuite/g++.dg/init/new19.C
+3
-3
gcc/testsuite/g++.dg/tree-ssa/pr27090.C
+1
-1
gcc/testsuite/gcc.c-torture/compile/pr32571.c
+38
-0
No files found.
gcc/testsuite/g++.dg/init/new19.C
View file @
908bd465
// { dg-do compile }
// { dg-options "-O2 -fstrict-aliasing -fdump-tree-
lim
-details" }
// { dg-options "-O2 -fstrict-aliasing -fdump-tree-
pre
-details" }
// Make sure we hoist invariants out of the loop even in the presence
// of placement new. This is similar to code in tramp3d.
...
...
@@ -69,5 +69,5 @@ int c::foo(int f1, int f2, int f3)
return
sum
;
}
// { dg-final { scan-tree-dump "
Moving statement\\n.*->ai\\\[0\\\];\\n.*out of loop" "lim
" } }
// { dg-final { cleanup-tree-dump "
lim
" } }
// { dg-final { scan-tree-dump "
Replaced.*->ai\\\[0\\\]" "pre
" } }
// { dg-final { cleanup-tree-dump "
pre
" } }
gcc/testsuite/g++.dg/tree-ssa/pr27090.C
View file @
908bd465
...
...
@@ -17,5 +17,5 @@ int foo(Foo& f)
return
f
.
get
();
}
/* { dg-final { scan-tree-dump "return f->x;" "optimized" } } */
/* { dg-final { scan-tree-dump "return f->x;" "optimized"
{ xfail *-*-* }
} } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
gcc/testsuite/gcc.c-torture/compile/pr32571.c
0 → 100644
View file @
908bd465
struct
list_head
{
struct
list_head
*
next
,
*
prev
;
};
struct
ib_fmr
{
int
*
device
;
struct
list_head
list
;
};
static
inline
struct
mthca_fmr
*
to_mfmr
(
struct
ib_fmr
*
ibmr
)
{
const
struct
ib_fmr
*
__mptr
=
(
ibmr
);
return
(
struct
mthca_fmr
*
)(
(
char
*
)
__mptr
);
}
void
mthca_unmap_fmr
(
struct
list_head
*
fmr_list
)
{
struct
ib_fmr
*
fmr
;
if
(
mthca_is_memfree
())
{
for
(
fmr
=
({
const
struct
list_head
*
__mptr
=
((
fmr_list
)
->
next
);
(
struct
ib_fmr
*
)(
(
char
*
)
__mptr
-
8
);});
&
fmr
->
list
!=
(
fmr_list
);
fmr
=
({
const
struct
list_head
*
__mptr
=
(
fmr
->
list
.
next
);
(
struct
ib_fmr
*
)(
(
char
*
)
__mptr
-
8
);})
)
mthca_arbel_fmr_unmap
(
to_mfmr
(
fmr
));
}
else
for
(
fmr
=
({
const
struct
list_head
*
__mptr
=
((
fmr_list
)
->
next
);
(
struct
ib_fmr
*
)(
(
char
*
)
__mptr
-
8
);});
&
fmr
->
list
!=
(
fmr_list
);
fmr
=
({
const
struct
list_head
*
__mptr
=
(
fmr
->
list
.
next
);
(
struct
ib_fmr
*
)(
(
char
*
)
__mptr
-
8
);})
)
mthca_tavor_fmr_unmap
(
to_mfmr
(
fmr
));
}
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