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
2f97afcb
Commit
2f97afcb
authored
Dec 29, 1994
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(expand_mult_highpart): Use convert_modes instead of
gen_lowpart to do conversions. From-SVN: r8704
parent
7b3ba71b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gcc/expmed.c
+3
-3
No files found.
gcc/expmed.c
View file @
2f97afcb
...
...
@@ -2487,7 +2487,7 @@ expand_mult_highpart (mode, op0, cnst1, target, unsignedp)
tem
=
expand_mult
(
wider_mode
,
op0
,
wide_op1
,
NULL_RTX
,
unsignedp
);
tem
=
expand_shift
(
RSHIFT_EXPR
,
wider_mode
,
tem
,
build_int_2
(
size
,
0
),
NULL_RTX
,
1
);
return
gen_lowpart
(
mode
,
tem
);
return
convert_modes
(
mode
,
wider_mode
,
tem
,
unsignedp
);
}
if
(
target
==
0
)
...
...
@@ -2532,7 +2532,7 @@ expand_mult_highpart (mode, op0, cnst1, target, unsignedp)
/* Extract the high half of the just generated product. */
tem
=
expand_shift
(
RSHIFT_EXPR
,
wider_mode
,
tem
,
build_int_2
(
size
,
0
),
NULL_RTX
,
1
);
tem
=
gen_lowpart
(
mode
,
tem
);
tem
=
convert_modes
(
mode
,
wider_mode
,
tem
,
unsignedp
);
/* We used the wrong signedness. Adjust the result. */
return
expand_mult_highpart_adjust
(
mode
,
tem
,
op0
,
op1
,
target
,
unsignedp
);
...
...
@@ -2553,7 +2553,7 @@ expand_mult_highpart (mode, op0, cnst1, target, unsignedp)
/* Extract the high half of the just generated product. */
tem
=
expand_shift
(
RSHIFT_EXPR
,
wider_mode
,
tem
,
build_int_2
(
size
,
0
),
NULL_RTX
,
1
);
return
gen_lowpart
(
mode
,
tem
);
return
convert_modes
(
mode
,
wider_mode
,
tem
,
unsignedp
);
}
/* Emit the code to divide OP0 by OP1, putting the result in TARGET
...
...
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