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
a6096a27
Commit
a6096a27
authored
Mar 17, 1997
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(beq0_di, bne0_di, bge0_di, blt0_di): Use cmpw #0 instead of tstl when
testing address registers on the 68000. From-SVN: r13728
parent
0b364e61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
9 deletions
+50
-9
gcc/config/m68k/m68k.md
+50
-9
No files found.
gcc/config/m68k/m68k.md
View file @
a6096a27
...
@@ -5452,10 +5452,21 @@
...
@@ -5452,10 +5452,21 @@
return
\"
move%.l %0,%2
\;
or%.l %3,%2
\;
jeq %l1
\"
;
return
\"
move%.l %0,%2
\;
or%.l %3,%2
\;
jeq %l1
\"
;
#endif
#endif
operands
[
4
]
= gen_label_rtx();
operands
[
4
]
= gen_label_rtx();
if (TARGET_68020 || TARGET_5200)
#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
else
#ifdef MOTOROLA
#ifdef MOTOROLA
output_asm_insn (
\"
tst%.l %0
\;
jbne %l4
\;
tst%.l %3
\;
jbeq %l1
\"
, operands);
#ifdef SGS_CMP_ORDER
output_asm_insn (
\"
cmp%.w %0,%#0
\;
jbne %l4
\;
cmp%.w %3,%#0
\;
jbeq %l1
\"
, operands);
#else
output_asm_insn (
\"
cmp%.w %#0,%0
\;
jbne %l4
\;
cmp%.w %#0,%3
\;
jbeq %l1
\"
, operands);
#endif
#else
#else
output_asm_insn (
\"
tst%.l %0
\;
jne %l4
\;
tst%.l
%3
\;
jeq %l1
\"
, operands);
output_asm_insn (
\"
cmp%.w %#0,%0
\;
jne %l4
\;
cmp%.w %#0,
%3
\;
jeq %l1
\"
, operands);
#endif
#endif
ASM_OUTPUT_INTERNAL_LABEL (asm_out_file,
\"
L
\"
,
ASM_OUTPUT_INTERNAL_LABEL (asm_out_file,
\"
L
\"
,
CODE_LABEL_NUMBER (operands
[
4
]
));
CODE_LABEL_NUMBER (operands
[
4
]
));
...
@@ -5489,7 +5500,13 @@
...
@@ -5489,7 +5500,13 @@
operands
[
3
]
= gen_rtx (REG, SImode, REGNO (operands
[
0
]
) + 1);
operands
[
3
]
= gen_rtx (REG, SImode, REGNO (operands
[
0
]
) + 1);
else
else
operands
[
3
]
= adj_offsettable_operand (operands
[
0
]
, 4);
operands
[
3
]
= adj_offsettable_operand (operands
[
0
]
, 4);
if (ADDRESS_REG_P (operands
[
0
]
))
if (!ADDRESS_REG_P (operands
[
0
]
))
#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
if (TARGET_68020 || TARGET_5200)
#ifdef MOTOROLA
#ifdef MOTOROLA
return
\"
tst%.l %0
\;
jbne %l1
\;
tst%.l %3
\;
jbne %l1
\"
;
return
\"
tst%.l %0
\;
jbne %l1
\;
tst%.l %3
\;
jbne %l1
\"
;
#else
#else
...
@@ -5497,9 +5514,13 @@
...
@@ -5497,9 +5514,13 @@
#endif
#endif
else
else
#ifdef MOTOROLA
#ifdef MOTOROLA
return
\"
move%.l %0,%2
\;
or%.l %3,%2
\;
jbne %l1
\"
;
#ifdef SGS_CMP_ORDER
return
\"
cmp%.w %#0,%0
\;
jbne %l1
\;
cmp%.w %#0,%3
\;
jbne %l1
\"
;
#else
#else
return
\"
move%.l %0,%2
\;
or%.l %3,%2
\;
jne %l1
\"
;
return
\"
cmp%.w %0,%#0
\;
jbne %l1
\;
cmp%.w %3,%#0
\;
jbne %l1
\"
;
#endif
#else
return
\"
cmp%.w %#0,%0
\;
jne %l1
\;
cmp%.w %#0,%3
\;
jne %l1
\"
;
#endif
#endif
} ")
} ")
...
@@ -5536,10 +5557,20 @@
...
@@ -5536,10 +5557,20 @@
}
}
}
}
CC_STATUS_INIT;
CC_STATUS_INIT;
if (TARGET_68020 || TARGET_5200 || ! ADDRESS_REG_P (operands
[
0
]
))
output_asm_insn(
\"
tst%.l %0
\"
, operands);
else
/
* On an address reg, cmpw may replace cmpl. *
/
#ifdef SGS_CMP_ORDER
output_asm_insn(
\"
cmp%.w %0,%#0
\"
, operands);
#else
output_asm_insn(
\"
cmp%.w %#0,%0
\"
, operands);
#endif
#ifdef MOTOROLA
#ifdef MOTOROLA
return
\"
tst%.l %0
\;
jbpl %l1
\"
;
return
\"
jbpl %l1
\"
;
#else
#else
return
\"
tst%.l %0
\;
jpl %l1
\"
;
return
\"
jpl %l1
\"
;
#endif
#endif
} ")
} ")
...
@@ -5576,10 +5607,20 @@
...
@@ -5576,10 +5607,20 @@
}
}
}
}
CC_STATUS_INIT;
CC_STATUS_INIT;
if (TARGET_68020 || TARGET_5200 || ! ADDRESS_REG_P (operands
[
0
]
))
output_asm_insn(
\"
tst%.l %0
\"
, operands);
else
/
* On an address reg, cmpw may replace cmpl. *
/
#ifdef SGS_CMP_ORDER
output_asm_insn(
\"
cmp%.w %0,%#0
\"
, operands);
#else
output_asm_insn(
\"
cmp%.w %#0,%0
\"
, operands);
#endif
#ifdef MOTOROLA
#ifdef MOTOROLA
return
\"
tst%.l %0
\;
jbmi %l1
\"
;
return
\"
jbmi %l1
\"
;
#else
#else
return
\"
tst%.l %0
\;
jmi %l1
\"
;
return
\"
jmi %l1
\"
;
#endif
#endif
} ")
} ")
...
...
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