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
fd6b2a6d
Commit
fd6b2a6d
authored
Apr 18, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(cmpsi): Use `cmpq' for small immediate values.
(addsi3): Use `loada' for `reg1 = reg2 + immed'. From-SVN: r4182
parent
a3404926
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
14 deletions
+20
-14
gcc/config/clipper/clipper.md
+20
-14
No files found.
gcc/config/clipper/clipper.md
View file @
fd6b2a6d
...
@@ -83,13 +83,26 @@
...
@@ -83,13 +83,26 @@
""
""
"
*
"
*
{
{
int val;
if (which_alternative == 0)
if (which_alternative == 0)
return
\"
cmpw %1,%0
\"
;
return
\"
cmpw %1,%0
\"
;
if (which_alternative == 1)
if (which_alternative == 1)
return
\"
cmpi %1,%0
\"
;
{
val = INTVAL (operands
[
1
]
);
if (0 <= val && val < 16)
return
\"
cmpq %1,%0
\"
;
return
\"
cmpi %1,%0
\"
;
}
cc_status.flags |= CC_REVERSED; /
* immediate must be first *
/
cc_status.flags |= CC_REVERSED; /
* immediate must be first *
/
val = INTVAL (operands
[
0
]
);
if (0 <= val && val < 16)
return
\"
cmpq %0,%1
\"
;
return
\"
cmpi %0,%1
\"
;
return
\"
cmpi %0,%1
\"
;
}")
}")
...
@@ -688,12 +701,16 @@
...
@@ -688,12 +701,16 @@
(define_insn "addsi3"
(define_insn "addsi3"
[
(set (match_operand:SI 0 "int_reg_operand" "=r,r,r")
[
(set (match_operand:SI 0 "int_reg_operand" "=r,r,r")
(plus:SI (match_operand:SI 1 "int_reg_operand" "%0,r,r")
(plus:SI (match_operand:SI 1 "int_reg_operand" "%0,r,r")
(match_operand:SI 2 "nonmemory_operand" "rn,0,r")))]
(match_operand:SI 2 "nonmemory_operand" "rn,0,r
n
")))]
""
""
"
*
"
*
{
{
if (which_alternative == 2) /
* 3 address version *
/
if (which_alternative == 2) /
* 3 address version *
/
return
\"
loada
[
%2
](
%1
)
,%0
\"
;
{
if (GET_CODE (operands
[
2
]
) == CONST_INT)
return
\"
loada %a2(%1),%0
\"
;
return
\"
loada
[
%2
](
%1
)
,%0
\"
;
}
/
* 2 address version *
/
/
* 2 address version *
/
if (GET_CODE (operands
[
2
]
) == CONST_INT)
if (GET_CODE (operands
[
2
]
) == CONST_INT)
{
{
...
@@ -1377,14 +1394,3 @@
...
@@ -1377,14 +1394,3 @@
;; These patters are jump_insns that do not allow output reloads and clipper
;; These patters are jump_insns that do not allow output reloads and clipper
;; can only decrement and test registers.
;; can only decrement and test registers.
;;
;;
;;- Local variables:
;;- mode:c
;;- comment-start: ";;- "
;;- eval: (set-syntax-table (copy-sequence (syntax-table)))
;;- eval: (modify-syntax-entry ?
[
"(
]
")
;;- eval: (modify-syntax-entry ?] ")
[
")
;;- eval: (modify-syntax-entry ?{ "(}")
;;- eval: (modify-syntax-entry ?} "){")
;;- End:
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