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
c127c127
Commit
c127c127
authored
Aug 01, 2000
by
Kazu Hirata
Committed by
Jeff Law
Jul 31, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* h8300.md: Fix formatting.
From-SVN: r35397
parent
1868b439
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
22 deletions
+18
-22
gcc/ChangeLog
+2
-0
gcc/config/h8300/h8300.md
+16
-22
No files found.
gcc/ChangeLog
View file @
c127c127
...
@@ -130,6 +130,8 @@
...
@@ -130,6 +130,8 @@
2000-07-31 Kazu Hirata <kazu@hxi.com>
2000-07-31 Kazu Hirata <kazu@hxi.com>
* h8300.md: Fix formatting.
* local-alloc.c: Fix formatting.
* local-alloc.c: Fix formatting.
* h8300.c (get_shift_alg): Remove the variable alg.
* h8300.c (get_shift_alg): Remove the variable alg.
...
...
gcc/config/h8300/h8300.md
View file @
c127c127
...
@@ -290,19 +290,18 @@
...
@@ -290,19 +290,18 @@
case 0:
case 0:
return
\"
sub.w %e0,%e0
\;
sub.w %f0,%f0
\"
;
return
\"
sub.w %e0,%e0
\;
sub.w %f0,%f0
\"
;
case 1:
case 1:
if (REGNO
(operands
[
0
]
) < REGNO
(operands
[
1
]
))
if (REGNO
(operands
[
0
]
) < REGNO
(operands
[
1
]
))
return
\"
mov.w %e1,%e0
\;
mov.w %f1,%f0
\"
;
return
\"
mov.w %e1,%e0
\;
mov.w %f1,%f0
\"
;
else
else
return
\"
mov.w %f1,%f0
\;
mov.w %e1,%e0
\"
;
return
\"
mov.w %f1,%f0
\;
mov.w %e1,%e0
\"
;
case 2:
case 2:
/
* Make sure we don't trample the register we index with. *
/
/
* Make sure we don't trample the register we index with. *
/
if (GET_CODE (operands
[
1
]
) == MEM)
if (GET_CODE(operands
[
1
]
) == MEM)
{
{
rtx inside = XEXP (operands
[
1
]
,0);
rtx inside = XEXP (operands
[
1
]
,0);
if (REG_P (inside))
if (REG_P (inside))
{
{
rn = REGNO(inside);
rn = REGNO
(inside);
}
}
else if (GET_CODE (inside) == PLUS)
else if (GET_CODE (inside) == PLUS)
{
{
...
@@ -351,20 +350,19 @@
...
@@ -351,20 +350,19 @@
|| register_operand (operands
[
1
]
, SFmode))"
|| register_operand (operands
[
1
]
, SFmode))"
"
*
"
*
{
{
/
* Copy of the movsi stuff *
/
/
* Copy of the movsi stuff
.
*
/
int rn = -1;
int rn = -1;
switch (which_alternative)
switch (which_alternative)
{
{
case 0:
case 0:
return
\"
sub.w %e0,%e0
\;
sub.w %f0,%f0
\"
;
return
\"
sub.w %e0,%e0
\;
sub.w %f0,%f0
\"
;
case 1:
case 1:
if (REGNO
(operands
[
0
]
) < REGNO
(operands
[
1
]
))
if (REGNO
(operands
[
0
]
) < REGNO
(operands
[
1
]
))
return
\"
mov.w %e1,%e0
\;
mov.w %f1,%f0
\"
;
return
\"
mov.w %e1,%e0
\;
mov.w %f1,%f0
\"
;
else
else
return
\"
mov.w %f1,%f0
\;
mov.w %e1,%e0
\"
;
return
\"
mov.w %f1,%f0
\;
mov.w %e1,%e0
\"
;
case 2:
case 2:
/
* Make sure we don't trample the register we index with. *
/
/
* Make sure we don't trample the register we index with. *
/
if (GET_CODE (operands
[
1
]
) == MEM)
if (GET_CODE (operands
[
1
]
) == MEM)
{
{
rtx inside = XEXP (operands
[
1
]
,0);
rtx inside = XEXP (operands
[
1
]
,0);
...
@@ -381,14 +379,11 @@
...
@@ -381,14 +379,11 @@
}
}
}
}
if (rn == REGNO (operands
[
0
]
))
if (rn == REGNO (operands
[
0
]
))
{
/
* Move the second word first. *
/
/
* move the second word first *
/
return
\"
mov.w %f1,%f0
\;
mov.w %e1,%e0
\"
;
return
\"
mov.w %f1,%f0
\;
mov.w %e1,%e0
\"
;
}
else
else
{
/
* Move the first word first. *
/
return
\"
mov.w %e1,%e0
\;
mov.w %f1,%f0
\"
;
return
\"
mov.w %e1,%e0
\;
mov.w %f1,%f0
\"
;
}
case 3:
case 3:
return \"mov.w %e1,%e0\;mov.w %f1,%f0\";
return \"mov.w %e1,%e0\;mov.w %f1,%f0\";
...
@@ -430,13 +425,13 @@
...
@@ -430,13 +425,13 @@
number to zero in one of the two low bytes. */
number to zero in one of the two low bytes. */
if (val == (val & 0xff))
if (val == (val & 0xff))
{
{
operands[1] = GEN_INT ((char)val & 0xff);
operands[1] = GEN_INT ((char)
val & 0xff);
return \"sub.l %S0,%S0\;add.b %1,%w0\";
return \"sub.l %S0,%S0\;add.b %1,%w0\";
}
}
if (val == (val & 0xff00))
if (val == (val & 0xff00))
{
{
operands[1] = GEN_INT ((char)(val >> 8) & 0xff);
operands[1] = GEN_INT ((char)
(val >> 8) & 0xff);
return \"sub.l %S0,%S0\;add.b %1,%x0\";
return \"sub.l %S0,%S0\;add.b %1,%x0\";
}
}
...
@@ -1339,7 +1334,6 @@
...
@@ -1339,7 +1334,6 @@
(const_int 8)
(const_int 8)
(const_int 2)))])
(const_int 2)))])
;; ----------------------------------------------------------------------
;; ----------------------------------------------------------------------
;; JUMP INSTRUCTIONS
;; JUMP INSTRUCTIONS
;; ----------------------------------------------------------------------
;; ----------------------------------------------------------------------
...
@@ -1656,7 +1650,7 @@
...
@@ -1656,7 +1650,7 @@
(define_expand "zero_extendhisi2_h8300"
(define_expand "zero_extendhisi2_h8300"
[
(set (reg:HI 1) (match_operand:HI 1 "general_operand" ""))
[
(set (reg:HI 1) (match_operand:HI 1 "general_operand" ""))
(set (reg:SI 0) (zero_extend:SI (reg:HI 1)))
(set (reg:SI 0) (zero_extend:SI (reg:HI 1)))
(set (match_operand:SI 0 "general_operand" ""
) (reg:SI 0))]
(set (match_operand:SI 0 "general_operand" "") (reg:SI 0))]
"TARGET_H8300"
"TARGET_H8300"
"")
"")
...
@@ -1740,7 +1734,7 @@
...
@@ -1740,7 +1734,7 @@
(define_expand "extendhisi2_h8300"
(define_expand "extendhisi2_h8300"
[
(set (reg:HI 1) (match_operand:HI 1 "general_operand" ""))
[
(set (reg:HI 1) (match_operand:HI 1 "general_operand" ""))
(set (reg:SI 0) (sign_extend:SI (reg:HI 1)))
(set (reg:SI 0) (sign_extend:SI (reg:HI 1)))
(set (match_operand:SI 0 "general_operand" ""
) (reg:SI 0))]
(set (match_operand:SI 0 "general_operand" "") (reg:SI 0))]
"TARGET_H8300"
"TARGET_H8300"
"")
"")
...
@@ -1896,7 +1890,7 @@
...
@@ -1896,7 +1890,7 @@
;; You'll never believe all these patterns perform one basic action --
;; You'll never believe all these patterns perform one basic action --
;; load a bit from the source, optionally invert the bit, then store it
;; load a bit from the source, optionally invert the bit, then store it
;; in the destination (which is known to be zero).
.
;; in the destination (which is known to be zero).
;;
;;
;; Combine obviously need some work to better identify this situation and
;; Combine obviously need some work to better identify this situation and
;; canonicalize the form better.
;; canonicalize the form better.
...
@@ -2228,7 +2222,7 @@
...
@@ -2228,7 +2222,7 @@
[
(set (match_operand:QI 0 "register_operand" "")
[
(set (match_operand:QI 0 "register_operand" "")
(mem:QI (match_operand:HI 1 "register_operand" "")))
(mem:QI (match_operand:HI 1 "register_operand" "")))
(set (match_dup 1) (plus:HI (match_dup 1) (const_int 1)))]
(set (match_dup 1) (plus:HI (match_dup 1) (const_int 1)))]
"REGNO
(operands
[
1
]
) != REGNO
(operands
[
0
]
)"
"REGNO
(operands
[
1
]
) != REGNO
(operands
[
0
]
)"
"mov.b @%T1+,%X0"
"mov.b @%T1+,%X0"
[
(set_attr "length" "2")
[
(set_attr "length" "2")
(set_attr "cc" "set_znv")])
(set_attr "cc" "set_znv")])
...
@@ -2237,7 +2231,7 @@
...
@@ -2237,7 +2231,7 @@
[
(set (match_operand:HI 0 "register_operand" "")
[
(set (match_operand:HI 0 "register_operand" "")
(mem:HI (match_operand:HI 1 "register_operand" "")))
(mem:HI (match_operand:HI 1 "register_operand" "")))
(set (match_dup 1) (plus:HI (match_dup 1) (const_int 2)))]
(set (match_dup 1) (plus:HI (match_dup 1) (const_int 2)))]
"REGNO
(operands
[
1
]
) != REGNO
(operands
[
0
]
)"
"REGNO
(operands
[
1
]
) != REGNO
(operands
[
0
]
)"
"mov.w @%T1+,%T0"
"mov.w @%T1+,%T0"
[
(set_attr "length" "2")
[
(set_attr "length" "2")
(set_attr "cc" "set_znv")])
(set_attr "cc" "set_znv")])
...
@@ -2249,7 +2243,7 @@
...
@@ -2249,7 +2243,7 @@
(plus:HI (match_dup 1) (const_int -1)))
(plus:HI (match_dup 1) (const_int -1)))
(set (mem:QI (match_dup 1))
(set (mem:QI (match_dup 1))
(match_operand:QI 0 "register_operand" ""))]
(match_operand:QI 0 "register_operand" ""))]
"REGNO
(operands
[
1
]
) != REGNO
(operands
[
0
]
)"
"REGNO
(operands
[
1
]
) != REGNO
(operands
[
0
]
)"
"mov.b %X0,@-%T1"
"mov.b %X0,@-%T1"
[
(set_attr "length" "2")
[
(set_attr "length" "2")
(set_attr "cc" "set_znv")])
(set_attr "cc" "set_znv")])
...
@@ -2259,7 +2253,7 @@
...
@@ -2259,7 +2253,7 @@
(plus:HI (match_dup 1) (const_int -2)))
(plus:HI (match_dup 1) (const_int -2)))
(set (mem:HI (match_dup 1))
(set (mem:HI (match_dup 1))
(match_operand:HI 0 "register_operand" ""))]
(match_operand:HI 0 "register_operand" ""))]
"REGNO
(operands
[
1
]
) != REGNO
(operands
[
0
]
)"
"REGNO
(operands
[
1
]
) != REGNO
(operands
[
0
]
)"
"mov.w %T0,@-%T1"
"mov.w %T0,@-%T1"
[
(set_attr "length" "2")
[
(set_attr "length" "2")
(set_attr "cc" "set_znv")])
(set_attr "cc" "set_znv")])
...
...
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