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
3bda6d11
Commit
3bda6d11
authored
Feb 23, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(RTX_COSTS): Update costs for FP operations.
From-SVN: r9047
parent
5d6155d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
gcc/config/alpha/alpha.h
+12
-9
No files found.
gcc/config/alpha/alpha.h
View file @
3bda6d11
...
...
@@ -1432,9 +1432,8 @@ extern char *current_function_name;
switch on CODE. */
#define RTX_COSTS(X,CODE,OUTER_CODE) \
case PLUS: \
case MINUS: \
if (GET_MODE_CLASS (GET_MODE (X)) == MODE_FLOAT) \
case PLUS: case MINUS: \
if (FLOAT_MODE_P (GET_MODE (X))) \
return COSTS_N_INSNS (6); \
else if (GET_CODE (XEXP (X, 0)) == MULT \
&& const48_operand (XEXP (XEXP (X, 0), 1), VOIDmode)) \
...
...
@@ -1442,7 +1441,7 @@ extern char *current_function_name;
+ rtx_cost (XEXP (X, 1), OUTER_CODE)); \
break; \
case MULT: \
if (
GET_MODE_CLASS (GET_MODE (X)) == MODE_FLOAT)
\
if (
FLOAT_MODE_P (GET_MODE (X)))
\
return COSTS_N_INSNS (6); \
return COSTS_N_INSNS (23); \
case ASHIFT: \
...
...
@@ -1452,10 +1451,7 @@ extern char *current_function_name;
/* ... fall through ... */
\
case ASHIFTRT: case LSHIFTRT: case IF_THEN_ELSE: \
return COSTS_N_INSNS (2); \
case DIV: \
case UDIV: \
case MOD: \
case UMOD: \
case DIV: case UDIV: case MOD: case UMOD: \
if (GET_MODE (X) == SFmode) \
return COSTS_N_INSNS (34); \
else if (GET_MODE (X) == DFmode) \
...
...
@@ -1463,7 +1459,14 @@ extern char *current_function_name;
else \
return COSTS_N_INSNS (70); \
case MEM: \
return COSTS_N_INSNS (3);
return COSTS_N_INSNS (3); \
case FLOAT: case UNSIGNED_FLOAT: case FIX: case UNSIGNED_FIX: \
case FLOAT_EXTEND: case FLOAT_TRUNCATE: \
return COSTS_N_INSNS (6); \
case NEG: case ABS: \
if (FLOAT_MODE_P (GET_MODE (X))) \
return COSTS_N_INSNS (6); \
break;
/* Control the assembler format that we output. */
...
...
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