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
28fc3eee
Commit
28fc3eee
authored
Feb 03, 2011
by
Michael Meissner
Committed by
Michael Meissner
Feb 03, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix PR target/47580
From-SVN: r169776
parent
1fb4a788
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
9 deletions
+20
-9
gcc/ChangeLog
+10
-0
gcc/config/rs6000/vsx.md
+10
-9
No files found.
gcc/ChangeLog
View file @
28fc3eee
2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/47580
* config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
gpc_reg_operand instead of vsx_register_operand to match rs6000.md
generator functions.
(vsx_floatuns<VSi><mode>2): Ditto.
(vsx_fix_trunc<mode><VSi>2): Ditto.
(vsx_fixuns_trunc<mode><VSi>2): Ditto.
2011-02-02 Joseph Myers <joseph@codesourcery.com>
* config/i386/djgpp.opt (posix): New Driver option.
...
...
gcc/config/rs6000/vsx.md
View file @
28fc3eee
;; VSX patterns.
;; Copyright (C) 2009, 2010
;; Copyright (C) 2009, 2010
, 2011
;; Free Software Foundation, Inc.
;; Contributed by Michael Meissner
<meissner@linux.vnet.ibm.com>
...
...
@@ -695,33 +695,34 @@
;; the fprs because we don't want to add the altivec registers to movdi/movsi.
;; For the unsigned tests, there isn't a generic double -> unsigned conversion
;; in rs6000.md so don't test VECTOR_UNIT_VSX_P, just test against VSX.
;; Don't use vsx_register_operand here, use gpc_reg_operand to match rs6000.md.
(define_insn "vsx_float
<VSi><mode>
2"
[
(set (match_operand:VSX_B 0 "
vsx_register
_operand" "=
<VSr>
,?wa")
(float:VSX_B (match_operand:
<VSI>
1 "
vsx_register
_operand" "
<VSr2>
,
<VSr3>
")))]
[
(set (match_operand:VSX_B 0 "
gpc_reg
_operand" "=
<VSr>
,?wa")
(float:VSX_B (match_operand:
<VSI>
1 "
gpc_reg
_operand" "
<VSr2>
,
<VSr3>
")))]
"VECTOR_UNIT_VSX_P (
<MODE>
mode)"
"x
<VSv>
cvsx
<VSc><VSs>
%x0,%x1"
[
(set_attr "type" "
<VStype
_simple
>
")
(set_attr "fp_type" "
<VSfptype
_simple
>
")])
(define_insn "vsx_floatuns
<VSi><mode>
2"
[
(set (match_operand:VSX_B 0 "
vsx_register
_operand" "=
<VSr>
,?wa")
(unsigned_float:VSX_B (match_operand:
<VSI>
1 "
vsx_register
_operand" "
<VSr2>
,
<VSr3>
")))]
[
(set (match_operand:VSX_B 0 "
gpc_reg
_operand" "=
<VSr>
,?wa")
(unsigned_float:VSX_B (match_operand:
<VSI>
1 "
gpc_reg
_operand" "
<VSr2>
,
<VSr3>
")))]
"VECTOR_UNIT_VSX_P (
<MODE>
mode)"
"x
<VSv>
cvux
<VSc><VSs>
%x0,%x1"
[
(set_attr "type" "
<VStype
_simple
>
")
(set_attr "fp_type" "
<VSfptype
_simple
>
")])
(define_insn "vsx_fix_trunc
<mode><VSi>
2"
[
(set (match_operand:
<VSI>
0 "
vsx_register
_operand" "=
<VSr2>
,?
<VSr3>
")
(fix:
<VSI>
(match_operand:VSX_B 1 "
vsx_register
_operand" "
<VSr>
,wa")))]
[
(set (match_operand:
<VSI>
0 "
gpc_reg
_operand" "=
<VSr2>
,?
<VSr3>
")
(fix:
<VSI>
(match_operand:VSX_B 1 "
gpc_reg
_operand" "
<VSr>
,wa")))]
"VECTOR_UNIT_VSX_P (
<MODE>
mode)"
"x
<VSv>
cv
<VSs>
sx
<VSc>
s %x0,%x1"
[
(set_attr "type" "
<VStype
_simple
>
")
(set_attr "fp_type" "
<VSfptype
_simple
>
")])
(define_insn "vsx_fixuns_trunc
<mode><VSi>
2"
[
(set (match_operand:
<VSI>
0 "
vsx_register
_operand" "=
<VSr2>
,?
<VSr3>
")
(unsigned_fix:
<VSI>
(match_operand:VSX_B 1 "
vsx_register
_operand" "
<VSr>
,wa")))]
[
(set (match_operand:
<VSI>
0 "
gpc_reg
_operand" "=
<VSr2>
,?
<VSr3>
")
(unsigned_fix:
<VSI>
(match_operand:VSX_B 1 "
gpc_reg
_operand" "
<VSr>
,wa")))]
"VECTOR_UNIT_VSX_P (
<MODE>
mode)"
"x
<VSv>
cv
<VSs>
ux
<VSc>
s %x0,%x1"
[
(set_attr "type" "
<VStype
_simple
>
")
...
...
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