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
5827c03c
Commit
5827c03c
authored
Oct 02, 2014
by
Segher Boessenkool
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add file I forgot to add before.
From-SVN: r215802
parent
f65eb9e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
gcc/testsuite/gcc.dg/combine-clobber.c
+22
-0
No files found.
gcc/testsuite/gcc.dg/combine-clobber.c
0 → 100644
View file @
5827c03c
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2 -fdump-rtl-combine-all" } */
/* This testcase checks if combine tries to combine sequences where the last
insn has a clobber of a reg, and a previous insn sets that reg.
In this case, we have three insns
(set flags (compare a b))
(set tmp (eq flags 0))
(parallel [(set dst (neg tmp))
(clobber flags)])
Previously, combine would not try the three-insn combination because of
the set and clobber of flags. Now it does. Test that. */
int
f
(
int
a
,
int
b
)
{
return
-
(
a
==
b
);
}
/* This regexp works for reg parameters as well as mem parameters. */
/* { dg-final { scan-rtl-dump {neg:SI[^:]*eq:SI[^:]*:SI} "combine" } } */
/* { dg-final { cleanup-rtl-dump "combine" } } */
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