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
af719b2d
Commit
af719b2d
authored
Nov 27, 2015
by
Marek Polacek
Committed by
Marek Polacek
Nov 27, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc.dg/pr63568.c: Convert to GIMPLE.
From-SVN: r231007
parent
be377c80
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
10 deletions
+30
-10
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.dg/pr63568.c
+26
-10
No files found.
gcc/testsuite/ChangeLog
View file @
af719b2d
2015-11-27 Marek Polacek <polacek@redhat.com>
* gcc.dg/pr63568.c: Convert to GIMPLE.
2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
PR rtl-optimization/68506
...
...
gcc/testsuite/gcc.dg/pr63568.c
View file @
af719b2d
/* PR middle-end/63568 */
/* { dg-do compile } */
/* { dg-options "-
fdump-tree-original
" } */
/* { dg-options "-
O -fdump-tree-cddce1
" } */
int
fn1
(
int
a
,
int
b
,
int
m
)
{
return
(
a
&
~
m
)
|
(
b
&
m
);
int
tem1
=
a
&
~
m
;
int
tem2
=
b
&
m
;
return
tem1
|
tem2
;
}
int
fn2
(
int
a
,
int
b
,
int
m
)
{
return
(
a
&
~
m
)
|
(
m
&
b
);
int
tem1
=
a
&
~
m
;
int
tem2
=
m
&
b
;
return
tem1
|
tem2
;
}
int
fn3
(
int
a
,
int
b
,
int
m
)
{
return
(
~
m
&
a
)
|
(
m
&
b
);
int
tem1
=
~
m
&
a
;
int
tem2
=
m
&
b
;
return
tem1
|
tem2
;
}
int
fn4
(
int
a
,
int
b
,
int
m
)
{
return
(
~
m
&
a
)
|
(
b
&
m
);
int
tem1
=
~
m
&
a
;
int
tem2
=
b
&
m
;
return
tem1
|
tem2
;
}
int
fn5
(
int
a
,
int
b
,
int
m
)
{
return
(
b
&
m
)
|
(
a
&
~
m
);
int
tem1
=
b
&
m
;
int
tem2
=
a
&
~
m
;
return
tem1
|
tem2
;
}
int
fn6
(
int
a
,
int
b
,
int
m
)
{
return
(
m
&
b
)
|
(
a
&
~
m
);
int
tem1
=
m
&
b
;
int
tem2
=
a
&
~
m
;
return
tem1
|
tem2
;
}
int
fn7
(
int
a
,
int
b
,
int
m
)
{
return
(
m
&
b
)
|
(
~
m
&
a
);
int
tem1
=
m
&
b
;
int
tem2
=
~
m
&
a
;
return
tem1
|
tem2
;
}
int
fn8
(
int
a
,
int
b
,
int
m
)
{
return
(
b
&
m
)
|
(
~
m
&
a
);
int
tem1
=
b
&
m
;
int
tem2
=
~
m
&
a
;
return
tem1
|
tem2
;
}
/* { dg-final { scan-tree-dump-not " \\| " "
original
" } } */
/* { dg-final { scan-tree-dump-not " \\| " "
cddce1
" } } */
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