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
253b5120
Commit
253b5120
authored
May 15, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(b{eq,ne,ge,lt}0_di): Fixed for non-MOTOROLA syntax.
From-SVN: r9689
parent
98c748b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
gcc/config/m68k/m68k.md
+28
-0
No files found.
gcc/config/m68k/m68k.md
View file @
253b5120
...
...
@@ -5145,15 +5145,27 @@
"
*
{
if (which_alternative == 1)
#ifdef MOTOROLA
return
\"
move%.l %0,%2
\;
or%.l %0,%2
\;
jbeq %l1
\"
;
#else
return
\"
move%.l %0,%2
\;
or%.l %0,%2
\;
jeq %l1
\"
;
#endif
if (GET_CODE (operands
[
0
]
) == REG)
operands
[
3
]
= gen_rtx (REG, SImode, REGNO (operands
[
0
]
) + 1);
else
operands
[
3
]
= adj_offsettable_operand (operands
[
0
]
, 4);
if (! ADDRESS_REG_P (operands
[
0
]
))
#ifdef MOTOROLA
return
\"
move%.l %0,%2
\;
or%.l %3,%2
\;
jbeq %l1
\"
;
#else
return
\"
move%.l %0,%2
\;
or%.l %3,%2
\;
jeq %l1
\"
;
#endif
operands
[
4
]
= gen_label_rtx();
#ifdef MOTOROLA
output_asm_insn (
\"
tst%.l %0
\;
jbne %l4
\;
tst%.l %3
\;
jbeq %l1
\"
, operands);
#else
output_asm_insn (
\"
tst%.l %0
\;
jne %l4
\;
tst%.l %3
\;
jeq %l1
\"
, operands);
#endif
ASM_OUTPUT_INTERNAL_LABEL (asm_out_file,
\"
L
\"
,
CODE_LABEL_NUMBER (operands
[
4
]
));
return
\"\"
;
...
...
@@ -5174,9 +5186,17 @@
else
operands
[
3
]
= adj_offsettable_operand (operands
[
0
]
, 4);
if (ADDRESS_REG_P (operands
[
0
]
))
#ifdef MOTOROLA
return
\"
tst%.l %0
\;
jbne %l1
\;
tst%.l %3
\;
jbne %l1
\"
;
#else
return
\"
tst%.l %0
\;
jne %l1
\;
tst%.l %3
\;
jne %l1
\"
;
#endif
else
#ifdef MOTOROLA
return
\"
move%.l %0,%2
\;
or%.l %3,%2
\;
jbne %l1
\"
;
#else
return
\"
move%.l %0,%2
\;
or%.l %3,%2
\;
jne %l1
\"
;
#endif
} ")
(define_insn "bge0_di"
...
...
@@ -5188,7 +5208,11 @@
""
"
*
{
#ifdef MOTOROLA
return
\"
tst%.l %0
\;
jbge %l1
\"
;
#else
return
\"
tst%.l %0
\;
jge %l1
\"
;
#endif
} ")
(define_insn "blt0_di"
...
...
@@ -5200,7 +5224,11 @@
""
"
*
{
#ifdef MOTOROLA
return
\"
tst%.l %0
\;
jbmi %l1
\"
;
#else
return
\"
tst%.l %0
\;
jmi %l1
\"
;
#endif
} ")
(define_insn "beq"
...
...
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