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
2e361e59
Commit
2e361e59
authored
Sep 18, 2000
by
Bernd Schmidt
Committed by
Bernd Schmidt
Sep 18, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid problems with reloading fpul in HImode
From-SVN: r36499
parent
0fb8cb90
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
5 deletions
+27
-5
gcc/ChangeLog
+6
-0
gcc/config/sh/sh-protos.h
+1
-0
gcc/config/sh/sh.c
+14
-0
gcc/config/sh/sh.h
+1
-0
gcc/config/sh/sh.md
+5
-5
No files found.
gcc/ChangeLog
View file @
2e361e59
...
...
@@ -3,6 +3,12 @@
* reload1.c (forget_old_reloads_1): If a hard reg is stored, clear
its entry in spill_reg_store.
* config/sh/lib1funcs.ams (movstr_i4 functions): Always compile in.
* sh.c (reg_no_subreg_operand): New function.
* sh-protos.h (reg_no_subreg_operand): Declare it.
* sh.h (PREDICATE_CODES): Add it.
* sh.md (floatsisf2_i4, floatsidf2_i, extendsfdf2_i4): Use it for
input operand that needs to be in fpul.
(fix_truncsfsi2, fix_truncsfsi2_i4): Use register_operand for output.
2000-09-18 Alexandre Oliva <aoliva@redhat.com>
...
...
gcc/config/sh/sh-protos.h
View file @
2e361e59
...
...
@@ -81,6 +81,7 @@ extern int system_reg_operand PARAMS ((rtx, enum machine_mode));
extern
int
general_movsrc_operand
PARAMS
((
rtx
,
enum
machine_mode
));
extern
int
general_movdst_operand
PARAMS
((
rtx
,
enum
machine_mode
));
extern
int
arith_reg_operand
PARAMS
((
rtx
,
enum
machine_mode
));
extern
int
reg_no_subreg_operand
PARAMS
((
rtx
,
enum
machine_mode
));
extern
int
fp_arith_reg_operand
PARAMS
((
rtx
,
enum
machine_mode
));
extern
int
fp_extended_operand
PARAMS
((
rtx
,
enum
machine_mode
));
extern
int
arith_operand
PARAMS
((
rtx
,
enum
machine_mode
));
...
...
gcc/config/sh/sh.c
View file @
2e361e59
...
...
@@ -4645,6 +4645,20 @@ general_movdst_operand (op, mode)
return
general_operand
(
op
,
mode
);
}
/* Accept a register, but not a subreg of any kind. This allows us to
avoid pathological cases in reload wrt data movement common in
int->fp conversion. */
int
reg_no_subreg_operand
(
op
,
mode
)
register
rtx
op
;
enum
machine_mode
mode
;
{
if
(
GET_CODE
(
op
)
==
SUBREG
)
return
0
;
return
register_operand
(
op
,
mode
);
}
/* Returns 1 if OP is a normal arithmetic register. */
int
...
...
gcc/config/sh/sh.h
View file @
2e361e59
...
...
@@ -2231,6 +2231,7 @@ extern struct rtx_def *fpscr_rtx;
#define PREDICATE_CODES \
{"arith_operand", {SUBREG, REG, CONST_INT}}, \
{"arith_reg_operand", {SUBREG, REG}}, \
{"reg_no_subreg_operand", {REG}}, \
{"arith_reg_or_0_operand", {SUBREG, REG, CONST_INT}}, \
{"binary_float_operator", {PLUS, MULT}}, \
{"commutative_float_operator", {PLUS, MULT}}, \
...
...
gcc/config/sh/sh.md
View file @
2e361e59
...
...
@@ -4235,7 +4235,7 @@ else
(define_insn "floatsisf2_i4"
[(set (match_operand:SF 0 "arith_reg_operand" "=f")
(float:SF (match_operand:SI 1 "reg
ister
_operand" "y")))
(float:SF (match_operand:SI 1 "reg
_no_subreg
_operand" "y")))
(use (match_operand:PSI 2 "fpscr_operand" "c"))]
"TARGET_SH3E"
"float %1,%0"
...
...
@@ -4251,7 +4251,7 @@ else
;; [(set_attr "type" "fp")])
(define_expand "fix_truncsfsi2"
[(set (match_operand:SI 0 "
arith_reg
_operand" "=y")
[(set (match_operand:SI 0 "
register
_operand" "=y")
(fix:SI (match_operand:SF 1 "arith_reg_operand" "f")))]
"TARGET_SH3E"
"
...
...
@@ -4264,7 +4264,7 @@ else
}")
(define_insn "fix_truncsfsi2_i4"
[(set (match_operand:SI 0 "
arith_reg
_operand" "=y")
[(set (match_operand:SI 0 "
register
_operand" "=y")
(fix:SI (match_operand:SF 1 "arith_reg_operand" "f")))
(use (match_operand:PSI 2 "fpscr_operand" "c"))]
"TARGET_SH4"
...
...
@@ -4490,7 +4490,7 @@ else
(define_insn "floatsidf2_i"
[(set (match_operand:DF 0 "arith_reg_operand" "=f")
(float:DF (match_operand:SI 1 "reg
ister
_operand" "y")))
(float:DF (match_operand:SI 1 "reg
_no_subreg
_operand" "y")))
(use (match_operand:PSI 2 "fpscr_operand" "c"))]
"TARGET_SH4"
"float %1,%0"
...
...
@@ -4634,7 +4634,7 @@ else
(define_insn "extendsfdf2_i4"
[(set (match_operand:DF 0 "arith_reg_operand" "=f")
(float_extend:DF (match_operand:SF 1 "reg
ister
_operand" "y")))
(float_extend:DF (match_operand:SF 1 "reg
_no_subreg
_operand" "y")))
(use (match_operand:PSI 2 "fpscr_operand" "c"))]
"TARGET_SH4"
"fcnvsd %1,%0"
...
...
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