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
e62db39c
Commit
e62db39c
authored
Jan 19, 1997
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(rot[lr][shq]i3): Allow 'N', 'O' or 'P' operands.
From-SVN: r13524
parent
a388a7aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
9 deletions
+58
-9
gcc/config/m68k/m68k.md
+58
-9
No files found.
gcc/config/m68k/m68k.md
View file @
e62db39c
...
...
@@ -64,6 +64,9 @@
;;- 'K' all integers EXCEPT -128 .. 127
;;- 'L' -8 .. -1
;;- 'M' all integers EXCEPT -256 .. 255
;;- 'N' 24 .. 31
;;- 'O' 16
;;- 'P' 8 .. 15
;;- Assembler specs:
;;- "%." size separator ("." or "") move%.l d0,d1
...
...
@@ -4712,38 +4715,84 @@
(define_insn "rotlsi3"
[
(set (match_operand:SI 0 "register_operand" "=d")
(rotate:SI (match_operand:SI 1 "register_operand" "0")
(match_operand:SI 2 "general_operand" "dI")))]
(match_operand:SI 2 "general_operand" "dI
NO
")))]
"!TARGET_5200"
"rol%.l %2,%0")
"
*
{
if (GET_CODE (operands
[
2
]
) == CONST_INT && INTVAL (operands
[
2
]
) == 16)
return
\"
swap %0
\"
;
else if (GET_CODE (operands
[
2
]
) == CONST_INT && INTVAL (operands
[
2
]
) >= 16)
{
INTVAL (operands
[
2
]
) = 32 - INTVAL (operands
[
2
]
);
return
\"
ror%.l %2,%0
\"
;
}
else
return
\"
rol%.l %2,%0
\"
;
}")
(define_insn "rotlhi3"
[
(set (match_operand:HI 0 "register_operand" "=d")
(rotate:HI (match_operand:HI 1 "register_operand" "0")
(match_operand:HI 2 "general_operand" "dI")))]
(match_operand:HI 2 "general_operand" "dI
P
")))]
"!TARGET_5200"
"rol%.w %2,%0")
"
*
{
if (GET_CODE (operands
[
2
]
) == CONST_INT && INTVAL (operands
[
2
]
) >= 8)
{
INTVAL (operands
[
2
]
) = 16 - INTVAL (operands
[
2
]
);
return
\"
ror%.w %2,%0
\"
;
}
else
return
\"
rol%.w %2,%0
\"
;
}")
(define_insn ""
[
(set (strict_low_part (match_operand:HI 0 "register_operand" "+d"))
(rotate:HI (match_dup 0)
(match_operand:HI 1 "general_operand" "dI")))]
(match_operand:HI 1 "general_operand" "dI
P
")))]
"!TARGET_5200"
"rol%.w %1,%0")
"
*
{
if (GET_CODE (operands
[
2
]
) == CONST_INT && INTVAL (operands
[
2
]
) >= 8)
{
INTVAL (operands
[
2
]
) = 16 - INTVAL (operands
[
2
]
);
return
\"
ror%.w %2,%0
\"
;
}
else
return
\"
rol%.w %2,%0
\"
;
}")
(define_insn "rotlqi3"
[
(set (match_operand:QI 0 "register_operand" "=d")
(rotate:QI (match_operand:QI 1 "register_operand" "0")
(match_operand:QI 2 "general_operand" "dI")))]
"!TARGET_5200"
"rol%.b %2,%0")
"
*
{
if (GET_CODE (operands
[
2
]
) == CONST_INT && INTVAL (operands
[
2
]
) >= 4)
{
INTVAL (operands
[
2
]
) = 8 - INTVAL (operands
[
2
]
);
return
\"
ror%.b %2,%0
\"
;
}
else
return
\"
rol%.b %2,%0
\"
;
}")
(define_insn ""
[
(set (strict_low_part (match_operand:QI 0 "register_operand" "+d"))
(rotate:QI (match_dup 0)
(match_operand:QI 1 "general_operand" "dI")))]
"!TARGET_5200"
"rol%.b %1,%0")
"
*
{
if (GET_CODE (operands
[
2
]
) == CONST_INT && INTVAL (operands
[
2
]
) >= 4)
{
INTVAL (operands
[
2
]
) = 8 - INTVAL (operands
[
2
]
);
return
\"
ror%.b %2,%0
\"
;
}
else
return
\"
rol%.b %2,%0
\"
;
}")
(define_insn "rotrsi3"
[
(set (match_operand:SI 0 "register_operand" "=d")
...
...
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