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
810cfbeb
Commit
810cfbeb
authored
Oct 06, 2011
by
Richard Henderson
Committed by
Richard Henderson
Oct 06, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i386: Use the proper mode for blend in vshuffle.
From-SVN: r179625
parent
44167383
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
7 deletions
+27
-7
gcc/ChangeLog
+6
-0
gcc/config/i386/i386.c
+21
-7
No files found.
gcc/ChangeLog
View file @
810cfbeb
...
...
@@ -7,6 +7,12 @@
(vshuffle<mode>): Use it.
(avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
* config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
for vector_all_ones_operand.
(ix86_expand_int_vcond): Distinguish between comparison mode
and data mode. Allow them to differ.
(ix86_expand_vshuffle): Don't force data mode to match maskmode.
2001-10-06 Richard Henderson <rth@redhat.com>
* optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
gcc/config/i386/i386.c
View file @
810cfbeb
...
...
@@ -18941,7 +18941,7 @@ ix86_expand_sse_movcc (rtx dest, rtx cmp, rtx op_true, rtx op_false)
enum
machine_mode
mode
=
GET_MODE
(
dest
);
rtx
t2
,
t3
,
x
;
if
(
vector_all_ones_operand
(
op_true
,
GET_MODE
(
op_true
)
)
if
(
vector_all_ones_operand
(
op_true
,
mode
)
&&
rtx_equal_p
(
op_false
,
CONST0_RTX
(
mode
)))
{
emit_insn
(
gen_rtx_SET
(
VOIDmode
,
dest
,
cmp
));
...
...
@@ -19170,7 +19170,8 @@ ix86_expand_fp_vcond (rtx operands[])
bool
ix86_expand_int_vcond
(
rtx
operands
[])
{
enum
machine_mode
mode
=
GET_MODE
(
operands
[
0
]);
enum
machine_mode
data_mode
=
GET_MODE
(
operands
[
0
]);
enum
machine_mode
mode
=
GET_MODE
(
operands
[
4
]);
enum
rtx_code
code
=
GET_CODE
(
operands
[
3
]);
bool
negate
=
false
;
rtx
x
,
cop0
,
cop1
;
...
...
@@ -19297,8 +19298,21 @@ ix86_expand_int_vcond (rtx operands[])
}
}
x
=
ix86_expand_sse_cmp
(
operands
[
0
],
code
,
cop0
,
cop1
,
operands
[
1
+
negate
],
operands
[
2
-
negate
]);
/* Allow the comparison to be done in one mode, but the movcc to
happen in another mode. */
if
(
data_mode
==
mode
)
{
x
=
ix86_expand_sse_cmp
(
operands
[
0
],
code
,
cop0
,
cop1
,
operands
[
1
+
negate
],
operands
[
2
-
negate
]);
}
else
{
gcc_assert
(
GET_MODE_SIZE
(
data_mode
)
==
GET_MODE_SIZE
(
mode
));
x
=
ix86_expand_sse_cmp
(
gen_lowpart
(
mode
,
operands
[
0
]),
code
,
cop0
,
cop1
,
operands
[
1
+
negate
],
operands
[
2
-
negate
]);
x
=
gen_lowpart
(
data_mode
,
x
);
}
ix86_expand_sse_movcc
(
operands
[
0
],
x
,
operands
[
1
+
negate
],
operands
[
2
-
negate
]);
...
...
@@ -19533,9 +19547,9 @@ ix86_expand_vshuffle (rtx operands[])
mask
=
expand_simple_binop
(
maskmode
,
AND
,
mask
,
vt
,
NULL_RTX
,
0
,
OPTAB_DIRECT
);
xops
[
0
]
=
gen_lowpart
(
maskmode
,
operands
[
0
])
;
xops
[
1
]
=
gen_lowpart
(
m
askm
ode
,
t2
);
xops
[
2
]
=
gen_lowpart
(
m
askm
ode
,
t1
);
xops
[
0
]
=
operands
[
0
]
;
xops
[
1
]
=
gen_lowpart
(
mode
,
t2
);
xops
[
2
]
=
gen_lowpart
(
mode
,
t1
);
xops
[
3
]
=
gen_rtx_EQ
(
maskmode
,
mask
,
vt
);
xops
[
4
]
=
mask
;
xops
[
5
]
=
vt
;
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