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
d0511997
Commit
d0511997
authored
Sep 12, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change `*return "string"' to "string" in patterns.
From-SVN: r10346
parent
d5e64548
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
60 deletions
+15
-60
gcc/config/sparc/sparc.md
+15
-60
No files found.
gcc/config/sparc/sparc.md
View file @
d0511997
...
@@ -4872,10 +4872,7 @@
...
@@ -4872,10 +4872,7 @@
(clobber (reg:SI 15))]
(clobber (reg:SI 15))]
;;- Do not use operand 1 for most machines.
;;- Do not use operand 1 for most machines.
"! TARGET_PTR64"
"! TARGET_PTR64"
"
*
"call %a0,%1%#"
{
return
\"
call %a0,%1%#
\"
;
}"
[
(set_attr "type" "call")
]
)
[
(set_attr "type" "call")
]
)
(define_insn "
*
call_symbolic_sp32"
(define_insn "
*
call_symbolic_sp32"
...
@@ -4884,10 +4881,7 @@
...
@@ -4884,10 +4881,7 @@
(clobber (reg:SI 15))]
(clobber (reg:SI 15))]
;;- Do not use operand 1 for most machines.
;;- Do not use operand 1 for most machines.
"! TARGET_PTR64"
"! TARGET_PTR64"
"
*
"call %a0,%1%#"
{
return
\"
call %a0,%1%#
\"
;
}"
[
(set_attr "type" "call")
]
)
[
(set_attr "type" "call")
]
)
(define_insn "
*
call_address_sp64"
(define_insn "
*
call_address_sp64"
...
@@ -4896,10 +4890,7 @@
...
@@ -4896,10 +4890,7 @@
(clobber (reg:DI 15))]
(clobber (reg:DI 15))]
;;- Do not use operand 1 for most machines.
;;- Do not use operand 1 for most machines.
"TARGET_PTR64"
"TARGET_PTR64"
"
*
"call %a0,%1%#"
{
return
\"
call %a0,%1%#
\"
;
}"
[
(set_attr "type" "call")
]
)
[
(set_attr "type" "call")
]
)
(define_insn "
*
call_symbolic_sp64"
(define_insn "
*
call_symbolic_sp64"
...
@@ -4908,10 +4899,7 @@
...
@@ -4908,10 +4899,7 @@
(clobber (reg:DI 15))]
(clobber (reg:DI 15))]
;;- Do not use operand 1 for most machines.
;;- Do not use operand 1 for most machines.
"TARGET_PTR64"
"TARGET_PTR64"
"
*
"call %a0,%1%#"
{
return
\"
call %a0,%1%#
\"
;
}"
[
(set_attr "type" "call")
]
)
[
(set_attr "type" "call")
]
)
;; This is a call that wants a structure value.
;; This is a call that wants a structure value.
...
@@ -4923,10 +4911,7 @@
...
@@ -4923,10 +4911,7 @@
(clobber (reg:SI 15))]
(clobber (reg:SI 15))]
;;- Do not use operand 1 for most machines.
;;- Do not use operand 1 for most machines.
"! TARGET_V9 && GET_CODE (operands
[
2
]
) == CONST_INT && INTVAL (operands
[
2
]
) > 0"
"! TARGET_V9 && GET_CODE (operands
[
2
]
) == CONST_INT && INTVAL (operands
[
2
]
) > 0"
"
*
"call %a0,%1
\;
nop
\;
unimp %2"
{
return
\"
call %a0,%1
\;
nop
\;
unimp %2
\"
;
}"
[
(set_attr "type" "call_no_delay_slot")
]
)
[
(set_attr "type" "call_no_delay_slot")
]
)
;; This is a call that wants a structure value.
;; This is a call that wants a structure value.
...
@@ -4938,10 +4923,7 @@
...
@@ -4938,10 +4923,7 @@
(clobber (reg:SI 15))]
(clobber (reg:SI 15))]
;;- Do not use operand 1 for most machines.
;;- Do not use operand 1 for most machines.
"! TARGET_V9 && GET_CODE (operands
[
2
]
) == CONST_INT && INTVAL (operands
[
2
]
) > 0"
"! TARGET_V9 && GET_CODE (operands
[
2
]
) == CONST_INT && INTVAL (operands
[
2
]
) > 0"
"
*
"call %a0,%1
\;
nop
\;
unimp %2"
{
return
\"
call %a0,%1
\;
nop
\;
unimp %2
\"
;
}"
[
(set_attr "type" "call_no_delay_slot")
]
)
[
(set_attr "type" "call_no_delay_slot")
]
)
;; This is a call that may want a structure value. This is used for
;; This is a call that may want a structure value. This is used for
...
@@ -4953,10 +4935,7 @@
...
@@ -4953,10 +4935,7 @@
(clobber (reg:SI 15))]
(clobber (reg:SI 15))]
;;- Do not use operand 1 for most machines.
;;- Do not use operand 1 for most machines.
"! TARGET_V9 && GET_CODE (operands
[
2
]
) == CONST_INT && INTVAL (operands
[
2
]
) < 0"
"! TARGET_V9 && GET_CODE (operands
[
2
]
) == CONST_INT && INTVAL (operands
[
2
]
) < 0"
"
*
"call %a0,%1
\;
nop
\;
nop"
{
return
\"
call %a0,%1
\;
nop
\;
nop
\"
;
}"
[
(set_attr "type" "call_no_delay_slot")
]
)
[
(set_attr "type" "call_no_delay_slot")
]
)
;; This is a call that wants a structure value.
;; This is a call that wants a structure value.
...
@@ -4967,10 +4946,7 @@
...
@@ -4967,10 +4946,7 @@
(clobber (reg:SI 15))]
(clobber (reg:SI 15))]
;;- Do not use operand 1 for most machines.
;;- Do not use operand 1 for most machines.
"! TARGET_V9 && GET_CODE (operands
[
2
]
) == CONST_INT && INTVAL (operands
[
2
]
) < 0"
"! TARGET_V9 && GET_CODE (operands
[
2
]
) == CONST_INT && INTVAL (operands
[
2
]
) < 0"
"
*
"call %a0,%1
\;
nop
\;
nop"
{
return
\"
call %a0,%1
\;
nop
\;
nop
\"
;
}"
[
(set_attr "type" "call_no_delay_slot")
]
)
[
(set_attr "type" "call_no_delay_slot")
]
)
(define_expand "call_value"
(define_expand "call_value"
...
@@ -5018,10 +4994,7 @@
...
@@ -5018,10 +4994,7 @@
(clobber (reg:SI 15))]
(clobber (reg:SI 15))]
;;- Do not use operand 2 for most machines.
;;- Do not use operand 2 for most machines.
"! TARGET_PTR64"
"! TARGET_PTR64"
"
*
"call %a1,%2%#"
{
return
\"
call %a1,%2%#
\"
;
}"
[
(set_attr "type" "call")
]
)
[
(set_attr "type" "call")
]
)
(define_insn "
*
call_value_symbolic_sp32"
(define_insn "
*
call_value_symbolic_sp32"
...
@@ -5031,10 +5004,7 @@
...
@@ -5031,10 +5004,7 @@
(clobber (reg:SI 15))]
(clobber (reg:SI 15))]
;;- Do not use operand 2 for most machines.
;;- Do not use operand 2 for most machines.
"! TARGET_PTR64"
"! TARGET_PTR64"
"
*
"call %a1,%2%#"
{
return
\"
call %a1,%2%#
\"
;
}"
[
(set_attr "type" "call")
]
)
[
(set_attr "type" "call")
]
)
(define_insn "
*
call_value_address_sp64"
(define_insn "
*
call_value_address_sp64"
...
@@ -5044,10 +5014,7 @@
...
@@ -5044,10 +5014,7 @@
(clobber (reg:DI 15))]
(clobber (reg:DI 15))]
;;- Do not use operand 2 for most machines.
;;- Do not use operand 2 for most machines.
"TARGET_PTR64"
"TARGET_PTR64"
"
*
"call %a1,%2%#"
{
return
\"
call %a1,%2%#
\"
;
}"
[
(set_attr "type" "call")
]
)
[
(set_attr "type" "call")
]
)
(define_insn "
*
call_value_symbolic_sp64"
(define_insn "
*
call_value_symbolic_sp64"
...
@@ -5057,10 +5024,7 @@
...
@@ -5057,10 +5024,7 @@
(clobber (reg:DI 15))]
(clobber (reg:DI 15))]
;;- Do not use operand 2 for most machines.
;;- Do not use operand 2 for most machines.
"TARGET_PTR64"
"TARGET_PTR64"
"
*
"call %a1,%2%#"
{
return
\"
call %a1,%2%#
\"
;
}"
[
(set_attr "type" "call")
]
)
[
(set_attr "type" "call")
]
)
(define_expand "untyped_call"
(define_expand "untyped_call"
...
@@ -5793,10 +5757,7 @@
...
@@ -5793,10 +5757,7 @@
(clobber (reg:SI 15))])
(clobber (reg:SI 15))])
(set (pc) (label_ref (match_operand 3 "" "")))]
(set (pc) (label_ref (match_operand 3 "" "")))]
"short_branch (INSN_UID (insn), INSN_UID (operands
[
3
]
))"
"short_branch (INSN_UID (insn), INSN_UID (operands
[
3
]
))"
"
*
"call %a1,%2
\;
add %%o7,(%l3-.-4),%%o7")
{
return
\"
call %a1,%2
\;
add %%o7,(%l3-.-4),%%o7
\"
;
}")
(define_peephole
(define_peephole
[
(parallel
[
(call (mem:SI (match_operand:SI 0 "call_operand_address" "ps"))
[
(parallel
[
(call (mem:SI (match_operand:SI 0 "call_operand_address" "ps"))
...
@@ -5816,10 +5777,7 @@
...
@@ -5816,10 +5777,7 @@
(clobber (reg:DI 15))])
(clobber (reg:DI 15))])
(set (pc) (label_ref (match_operand 3 "" "")))]
(set (pc) (label_ref (match_operand 3 "" "")))]
"TARGET_V9 && short_branch (INSN_UID (insn), INSN_UID (operands
[
3
]
))"
"TARGET_V9 && short_branch (INSN_UID (insn), INSN_UID (operands
[
3
]
))"
"
*
"call %a1,%2
\;
add %%o7,(%l3-.-4),%%o7")
{
return
\"
call %a1,%2
\;
add %%o7,(%l3-.-4),%%o7
\"
;
}")
(define_peephole
(define_peephole
[
(parallel
[
(call (mem:SI (match_operand:DI 0 "call_operand_address" "ps"))
[
(parallel
[
(call (mem:SI (match_operand:DI 0 "call_operand_address" "ps"))
...
@@ -5827,10 +5785,7 @@
...
@@ -5827,10 +5785,7 @@
(clobber (reg:DI 15))])
(clobber (reg:DI 15))])
(set (pc) (label_ref (match_operand 2 "" "")))]
(set (pc) (label_ref (match_operand 2 "" "")))]
"TARGET_V9 && short_branch (INSN_UID (insn), INSN_UID (operands
[
2
]
))"
"TARGET_V9 && short_branch (INSN_UID (insn), INSN_UID (operands
[
2
]
))"
"
*
"call %a0,%1
\;
add %%o7,(%l2-.-4),%%o7")
{
return
\"
call %a0,%1
\;
add %%o7,(%l2-.-4),%%o7
\"
;
}")
;; Other miscellaneous peepholes.
;; Other miscellaneous peepholes.
...
...
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