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
8840ae2b
Commit
8840ae2b
authored
Aug 26, 2011
by
Jakub Jelinek
Committed by
Jakub Jelinek
Aug 26, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* rtlanal.c (nonzero_bits1): Handle CLRSB.
From-SVN: r178101
parent
321358d4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
gcc/ChangeLog
+4
-0
gcc/rtlanal.c
+7
-2
No files found.
gcc/ChangeLog
View file @
8840ae2b
2011-08-26 Jakub Jelinek <jakub@redhat.com>
* rtlanal.c (nonzero_bits1): Handle CLRSB.
2011-08-26 Richard Guenther <rguenther@suse.de>
* expr.c (string_constant): Handle &MEM_REF.
...
...
gcc/rtlanal.c
View file @
8840ae2b
/* Analyze RTL for GNU compiler.
Copyright (C) 1987, 1988, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
Free Software Foundation, Inc.
1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
,
2011
Free Software Foundation, Inc.
This file is part of GCC.
...
...
@@ -4273,6 +4273,11 @@ nonzero_bits1 (const_rtx x, enum machine_mode mode, const_rtx known_x,
nonzero
=
-
1
;
break
;
case
CLRSB
:
/* This is at most the number of bits in the mode minus 1. */
nonzero
=
((
unsigned
HOST_WIDE_INT
)
1
<<
(
floor_log2
(
mode_width
)))
-
1
;
break
;
case
PARITY
:
nonzero
=
1
;
break
;
...
...
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