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
35f456e3
Commit
35f456e3
authored
May 31, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(one_cmpldi2): New pattern.
({a,l}shrdi{3,_const}): Allow 63 as shift count. From-SVN: r9854
parent
e65886db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
13 deletions
+37
-13
gcc/config/m68k/m68k.md
+37
-13
No files found.
gcc/config/m68k/m68k.md
View file @
35f456e3
...
@@ -4009,6 +4009,24 @@
...
@@ -4009,6 +4009,24 @@
;; one complement instructions
;; one complement instructions
;; "one_cmpldi2" is only here to help combine().
(define_insn "one_cmpldi2"
[
(set (match_operand:DI 0 "general_operand" "=dm")
(not:DI (match_operand:DI 1 "general_operand" "0")))]
""
"
*
{
CC_STATUS_INIT;
if (GET_CODE (operands
[
0
]
) == REG)
operands
[
2
]
= gen_rtx (REG, SImode, REGNO (operands
[
0
]
) + 1);
else if (GET_CODE (XEXP (operands
[
0
]
, 0)) == POST_INC
|| GET_CODE (XEXP (operands
[
0
]
, 0)) == PRE_DEC)
operands
[
1
]
= operands
[
0
]
;
else
operands
[
1
]
= adj_offsettable_operand (operands
[
0
]
, 4);
return
\"
not%.l %1
\;
not%.l %0
\"
;
}")
(define_insn "one_cmplsi2"
(define_insn "one_cmplsi2"
[
(set (match_operand:SI 0 "general_operand" "=dm")
[
(set (match_operand:SI 0 "general_operand" "=dm")
(not:SI (match_operand:SI 1 "general_operand" "0")))]
(not:SI (match_operand:SI 1 "general_operand" "0")))]
...
@@ -4293,12 +4311,14 @@
...
@@ -4293,12 +4311,14 @@
[
(set (match_operand:DI 0 "general_operand" "=d")
[
(set (match_operand:DI 0 "general_operand" "=d")
(ashiftrt:DI (match_operand:DI 1 "general_operand" "0")
(ashiftrt:DI (match_operand:DI 1 "general_operand" "0")
(match_operand 2 "const_int_operand" "n")))]
(match_operand 2 "const_int_operand" "n")))]
"(INTVAL (operands
[
2
]
) == 1
"(INTVAL (operands
[
2
]
) == 1
|| INTVAL (operands
[
2
]
) == 2
|| INTVAL (operands
[
2
]
) ==
8 || INTVAL (operands
[
2
]
) == 16
|| INTVAL (operands
[
2
]
) ==
3 || INTVAL (operands
[
2
]
) == 8
|| INTVAL (operands
[
2
]
) == 2 || INTVAL (operands
[
2
]
) ==
3)"
|| INTVAL (operands
[
2
]
) == 16 || INTVAL (operands
[
2
]
) == 6
3)"
"
*
"
*
{
{
operands
[
1
]
= gen_rtx (REG, SImode, REGNO (operands
[
0
]
) + 1);
operands
[
1
]
= gen_rtx (REG, SImode, REGNO (operands
[
0
]
) + 1);
if (INTVAL (operands
[
2
]
) == 63)
return
\"
add%.l %0,%0
\;
subx%.l %0,%0
\;
move%.l %0,%1
\"
;
CC_STATUS_INIT;
CC_STATUS_INIT;
if (INTVAL (operands
[
2
]
) == 1)
if (INTVAL (operands
[
2
]
) == 1)
return
\"
asr%.l %#1,%0
\;
roxr%.l %#1,%1
\"
;
return
\"
asr%.l %#1,%0
\;
roxr%.l %#1,%1
\"
;
...
@@ -4320,9 +4340,10 @@
...
@@ -4320,9 +4340,10 @@
"
"
{
{
if (GET_CODE (operands
[
2
]
) != CONST_INT
if (GET_CODE (operands
[
2
]
) != CONST_INT
|| (INTVAL (operands
[
2
]
) != 1 && INTVAL (operands
[
2
]
) != 32
|| (INTVAL (operands
[
2
]
) != 1 && INTVAL (operands
[
2
]
) != 2
&& INTVAL (operands
[
2
]
) != 8 && INTVAL (operands
[
2
]
) != 16
&& INTVAL (operands
[
2
]
) != 3 && INTVAL (operands
[
2
]
) != 8
&& INTVAL (operands
[
2
]
) != 2 && INTVAL (operands
[
2
]
) != 3))
&& INTVAL (operands
[
2
]
) != 16 && INTVAL (operands
[
2
]
) != 32
&& INTVAL (operands
[
2
]
) != 63))
FAIL;
FAIL;
} ")
} ")
...
@@ -4434,13 +4455,15 @@
...
@@ -4434,13 +4455,15 @@
[
(set (match_operand:DI 0 "general_operand" "=d")
[
(set (match_operand:DI 0 "general_operand" "=d")
(lshiftrt:DI (match_operand:DI 1 "general_operand" "0")
(lshiftrt:DI (match_operand:DI 1 "general_operand" "0")
(match_operand 2 "const_int_operand" "n")))]
(match_operand 2 "const_int_operand" "n")))]
"(INTVAL (operands
[
2
]
) == 1
"(INTVAL (operands
[
2
]
) == 1
|| INTVAL (operands
[
2
]
) == 2
|| INTVAL (operands
[
2
]
) ==
8 || INTVAL (operands
[
2
]
) == 16
|| INTVAL (operands
[
2
]
) ==
3 || INTVAL (operands
[
2
]
) == 8
|| INTVAL (operands
[
2
]
) ==
2 || INTVAL (operands
[
2
]
) ==
3)"
|| INTVAL (operands
[
2
]
) ==
16 || INTVAL (operands
[
2
]
) == 6
3)"
"
*
"
*
{
{
CC_STATUS_INIT;
operands
[
1
]
= gen_rtx (REG, SImode, REGNO (operands
[
0
]
) + 1);
operands
[
1
]
= gen_rtx (REG, SImode, REGNO (operands
[
0
]
) + 1);
if (INTVAL (operands
[
2
]
) == 63)
return
\"
add%.l %0,%0
\;
clr%.l %0
\;
clr%.l %1
\;
addx%.l %1,%1
\"
;
CC_STATUS_INIT;
if (INTVAL (operands
[
2
]
) == 1)
if (INTVAL (operands
[
2
]
) == 1)
return
\"
lsr%.l %#1,%0
\;
roxr%.l %#1,%1
\"
;
return
\"
lsr%.l %#1,%0
\;
roxr%.l %#1,%1
\"
;
else if (INTVAL (operands
[
2
]
) == 8)
else if (INTVAL (operands
[
2
]
) == 8)
...
@@ -4461,9 +4484,10 @@
...
@@ -4461,9 +4484,10 @@
"
"
{
{
if (GET_CODE (operands
[
2
]
) != CONST_INT
if (GET_CODE (operands
[
2
]
) != CONST_INT
|| (INTVAL (operands
[
2
]
) != 1 && INTVAL (operands
[
2
]
) != 32
|| (INTVAL (operands
[
2
]
) != 1 && INTVAL (operands
[
2
]
) != 2
&& INTVAL (operands
[
2
]
) != 8 && INTVAL (operands
[
2
]
) != 16
&& INTVAL (operands
[
2
]
) != 3 && INTVAL (operands
[
2
]
) != 8
&& INTVAL (operands
[
2
]
) != 2 && INTVAL (operands
[
2
]
) != 3))
&& INTVAL (operands
[
2
]
) != 16 && INTVAL (operands
[
2
]
) != 32
&& INTVAL (operands
[
2
]
) != 63))
FAIL;
FAIL;
} ")
} ")
...
...
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