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
7555e8b2
Commit
7555e8b2
authored
May 02, 2016
by
Oleg Endo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sh.md (*negnegt, *movtt): Remove.
gcc/ * config/sh/sh.md (*negnegt, *movtt): Remove. From-SVN: r235704
parent
552cc590
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
19 deletions
+4
-19
gcc/ChangeLog
+4
-0
gcc/config/sh/sh.md
+0
-19
No files found.
gcc/ChangeLog
View file @
7555e8b2
2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
* config/sh/sh.md (*negnegt, *movtt): Remove.
2016-05-02 Marek Polacek <polacek@redhat.com>
Tom de Vries <tom@codesourcery.com>
...
...
gcc/config/sh/sh.md
View file @
7555e8b2
...
...
@@ -8345,16 +8345,6 @@
gcc_unreachable ();
})
;; The
*
negnegt pattern helps the combine pass to figure out how to fold
;; an explicit double T bit negation.
(define_insn_and_split "
*
negnegt"
[
(set (reg:SI T_REG)
(eq:SI (match_operand 0 "negt_reg_operand" "") (const_int 0)))]
"TARGET_SH1"
"#"
""
[
(const_int 0)
]
)
;; Store (negated) T bit as all zeros or ones in a reg.
;; subc Rn,Rn ! Rn = Rn - Rn - T; T = T
;; not Rn,Rn ! Rn = 0 - Rn
...
...
@@ -8379,15 +8369,6 @@
}
[
(set_attr "type" "arith")
]
)
;; The
*
movtt pattern eliminates redundant T bit to T bit moves / tests.
(define_insn_and_split "
*
movtt"
[
(set (reg:SI T_REG)
(eq:SI (match_operand 0 "t_reg_operand" "") (const_int 1)))]
"TARGET_SH1"
"#"
""
[
(const_int 0)
]
)
;; Invert the T bit.
;; On SH2A we can use the nott insn. On anything else this must be done with
;; multiple insns like:
...
...
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