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
4a8c52e0
Commit
4a8c52e0
authored
Jul 13, 1998
by
Andreas Schwab
Committed by
Jeff Law
Jul 13, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* m68k.c (output_scc_di): Use cmpw #0 only for address registers.
From-SVN: r21119
parent
42801468
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
16 deletions
+33
-16
gcc/ChangeLog
+4
-0
gcc/config/m68k/m68k.c
+29
-16
No files found.
gcc/ChangeLog
View file @
4a8c52e0
Mon Jul 13 23:31:04 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* m68k.c (output_scc_di): Use cmpw #0 only for address registers.
Mon Jul 13 23:26:43 1998 Jeffrey A Law (law@cygnus.com)
* tree.h (tree_common): Note front-end dependencies on layout of
...
...
gcc/config/m68k/m68k.c
View file @
4a8c52e0
...
...
@@ -1046,39 +1046,52 @@ output_scc_di(op, operand1, operand2, dest)
}
loperands
[
4
]
=
gen_label_rtx
();
if
(
operand2
!=
const0_rtx
)
{
#ifdef MOTOROLA
#ifdef SGS_CMP_ORDER
output_asm_insn
(
"cmp%.l %0,%2
\n\t
jbne %l4
\n\t
cmp%.l %1,%3"
,
loperands
);
output_asm_insn
(
"cmp%.l %0,%2
\n\t
jbne %l4
\n\t
cmp%.l %1,%3"
,
loperands
);
#else
output_asm_insn
(
"cmp%.l %2,%0
\n\t
jbne %l4
\n\t
cmp%.l %3,%1"
,
loperands
);
output_asm_insn
(
"cmp%.l %2,%0
\n\t
jbne %l4
\n\t
cmp%.l %3,%1"
,
loperands
);
#endif
#else
#ifdef SGS_CMP_ORDER
output_asm_insn
(
"cmp%.l %0,%2
\n\t
jne %l4
\n\t
cmp%.l %1,%3"
,
loperands
);
output_asm_insn
(
"cmp%.l %0,%2
\n\t
jne %l4
\n\t
cmp%.l %1,%3"
,
loperands
);
#else
output_asm_insn
(
"cmp%.l %2,%0
\n\t
jne %l4
\n\t
cmp%.l %3,%1"
,
loperands
);
output_asm_insn
(
"cmp%.l %2,%0
\n\t
jne %l4
\n\t
cmp%.l %3,%1"
,
loperands
);
#endif
#endif
else
if
(
TARGET_68020
||
TARGET_5200
)
#ifdef MOTOROLA
output_asm_insn
(
"tst%.l %0
\n\t
jbne %l4
\n\t
tst%.l %1"
,
loperands
);
#else
output_asm_insn
(
"tst%.l %0
\n\t
jne %l4
\n\t
tst%.l %1"
,
loperands
);
#endif
}
else
#ifdef MOTOROLA
{
if
(
TARGET_68020
||
TARGET_5200
||
!
ADDRESS_REG_P
(
loperands
[
0
]))
output_asm_insn
(
"tst%.l %0"
,
loperands
);
else
{
#ifdef SGS_CMP_ORDER
output_asm_insn
(
"cmp%.w %0,%#0
\n\t
jbne %l4
\n\t
cmp%.w %1
,%#0"
,
loperands
);
output_asm_insn
(
"cmp%.w %0
,%#0"
,
loperands
);
#else
output_asm_insn
(
"cmp%.w %#0,%0
\n\t
jbne %l4
\n\t
cmp%.w %#0,%1
"
,
loperands
);
output_asm_insn
(
"cmp%.w %#0,%0
"
,
loperands
);
#endif
}
#ifdef MOTOROLA
output_asm_insn
(
"jbne %l4"
,
loperands
);
#else
output_asm_insn
(
"jne %l4"
,
loperands
);
#endif
if
(
TARGET_68020
||
TARGET_5200
||
!
ADDRESS_REG_P
(
loperands
[
1
]))
output_asm_insn
(
"tst%.l %1"
,
loperands
);
else
{
#ifdef SGS_CMP_ORDER
output_asm_insn
(
"cmp%.w %0,%#0
\n\t
jne %l4
\n\t
cmp%.w %1,%#0"
,
loperands
);
output_asm_insn
(
"
cmp%.w %1,%#0"
,
loperands
);
#else
output_asm_insn
(
"cmp%.w %#0,%0
\n\t
jne %l4
\n\t
cmp%.w %#0,%1"
,
loperands
);
#endif
output_asm_insn
(
"cmp%.w %#0,%1"
,
loperands
);
#endif
}
}
loperands
[
5
]
=
dest
;
switch
(
op_code
)
...
...
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