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
f1ffca1c
Commit
f1ffca1c
authored
Aug 07, 1996
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(casesi_jump): New pattern.
(casesi): Generate RTL to match it. From-SVN: r12600
parent
61b2fbe7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletions
+14
-1
gcc/config/sh/sh.md
+14
-1
No files found.
gcc/config/sh/sh.md
View file @
f1ffca1c
...
...
@@ -1691,6 +1691,18 @@
"jmp @%0%#"
[(set_attr "needs_delay_slot" "yes")])
;; This might seem redundant, but it helps us distinguish case table jumps
;; which can be present in structured code from indirect jumps which can not
;; be present in structured code. This allows -fprofile-arcs to work.
(define_insn "*casesi_jump"
[(set (pc)
(match_operand:SI 0 "arith_reg_operand" "r"))
(use (label_ref (match_operand 1 "" "")))]
""
"jmp @%0%#"
[(set_attr "needs_delay_slot" "yes")])
;; Call subroutine returning any type.
;; ??? This probably doesn't work.
...
...
@@ -1783,7 +1795,8 @@
(mem:HI (plus:SI (reg:SI 0)
(match_dup 6)))))
(set (match_dup 6) (mem:HI (plus:SI (reg:SI 0) (match_dup 6))))])
(set (pc) (reg:SI 0))]
(parallel [(set (pc) (reg:SI 0))
(use (label_ref (match_dup 3)))])]
""
"
{
...
...
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