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
a1efcf3c
Commit
a1efcf3c
authored
Jun 05, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(cmpdi): Rewrite to avoid bogus matching constraints.
From-SVN: r9880
parent
7f49c331
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
12 deletions
+22
-12
gcc/config/m68k/m68k.md
+22
-12
No files found.
gcc/config/m68k/m68k.md
View file @
a1efcf3c
...
...
@@ -411,23 +411,33 @@
;; compare instructions.
(define_insn "cmpdi"
(define_expand "cmpdi"
[
(parallel
[
(set (cc0)
(compare (match_operand:DI 0 "nonimmediate_operand" "")
(match_operand:DI 1 "general_operand" "")))
(clobber (match_dup 2))])]
""
"
{
operands
[
2
]
= gen_reg_rtx (DImode);
}")
(define_insn ""
[
(set (cc0)
;; (compare (match_operand:DI 0 "general_operand" "=&d
*
a")
;; (compare (match_operand:DI 0 "general_operand" "+&d
*
a")
;; (compare (match_operand:DI 0 "general_operand" "+d
*
a")
(compare (match_operand:DI 0 "general_operand" "d
*
a")
(match_operand:DI 1 "general_operand" "d")))
(clobber (match_scratch:DI 2 "=0"))]
(compare (match_operand:DI 1 "nonimmediate_operand" "0,d")
(match_operand:DI 2 "general_operand" "d,0")))
(clobber (match_operand:DI 0 "register_operand" "=d,d"))]
""
"
*
{
operands
[
2
]
= gen_rtx (REG, SImode, REGNO (operands
[
0
]
) + 1);
operands
[
3
]
= gen_rtx (REG, SImode, REGNO (operands
[
1
]
) + 1);
if (DATA_REG_P (operands
[
0
]
))
return
\"
sub%.l %3,%2
\;
subx%.l %1,%0
\"
;
if (rtx_equal_p (operands
[
0
]
, operands
[
1
]
))
return
\"
sub%.l %R2,%R0
\;
subx%.l %2,%0
\"
;
else
return
\"
exg %/d0,%2
\;
sub%.l %3,%/d0
\;
exg %/d0,%0
\;
subx%.l %1,%/d0
\;
exg %/d0,%2
\"
;
{
return
\"
sub%.l %R1,%R0
\;
subx%.l %1,%0
\"
;
cc_status.flags |= CC_REVERSED;
}
}")
;; This is the second "hook" for PIC code (in addition to movsi). See
...
...
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