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
258ae59d
Commit
258ae59d
authored
Feb 09, 1996
by
Doug Evans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move pic sethi ahead of non-pic sethi and document why.
From-SVN: r11186
parent
95726648
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
16 deletions
+18
-16
gcc/config/sparc/sparc.md
+18
-16
No files found.
gcc/config/sparc/sparc.md
View file @
258ae59d
...
...
@@ -1467,22 +1467,6 @@
;; is not an "arith_operand".
[
(set_attr "length" "1")
]
)
(define_insn "
*
sethi_si"
[
(set (match_operand:SI 0 "register_operand" "=r")
(high:SI (match_operand 1 "" "")))]
"check_pic (1)"
"sethi %%hi(%a1),%0"
[
(set_attr "type" "move")
(set_attr "length" "1")])
(define_insn "
*
sethi_hi"
[
(set (match_operand:HI 0 "register_operand" "=r")
(high:HI (match_operand 1 "" "")))]
"check_pic (1)"
"sethi %%hi(%a1),%0"
[
(set_attr "type" "move")
(set_attr "length" "1")])
;; For PIC, symbol_refs are put inside unspec so that the optimizer will not
;; confuse them with real addresses.
(define_insn "pic_lo_sum_si"
...
...
@@ -1497,6 +1481,8 @@
;; is not an "arith_operand".
[
(set_attr "length" "1")
]
)
;; The PIC version of sethi must appear before the non-pic case so that
;; the unspec will not be matched as part of the operand.
;; For PIC, symbol_refs are put inside unspec so that the optimizer will not
;; confuse them with real addresses.
(define_insn "pic_sethi_si"
...
...
@@ -1507,6 +1493,22 @@
[
(set_attr "type" "move")
(set_attr "length" "1")])
(define_insn "
*
sethi_si"
[
(set (match_operand:SI 0 "register_operand" "=r")
(high:SI (match_operand 1 "" "")))]
"check_pic (1)"
"sethi %%hi(%a1),%0"
[
(set_attr "type" "move")
(set_attr "length" "1")])
(define_insn "
*
sethi_hi"
[
(set (match_operand:HI 0 "register_operand" "=r")
(high:HI (match_operand 1 "" "")))]
"check_pic (1)"
"sethi %%hi(%a1),%0"
[
(set_attr "type" "move")
(set_attr "length" "1")])
(define_insn "get_pc_sp32"
[
(set (pc) (label_ref (match_operand 0 "" "")))
(set (reg:SI 15) (label_ref (match_dup 0)))]
...
...
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