From e8f3b70ddb695c8f90fb076679de1b8edf04f1ef Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Mon, 15 Jan 2018 14:43:52 +0000 Subject: [PATCH] re PR target/83850 (Spills on vector extract, gcc.target/i386/pr80846-1.c FAILs) 2018-01-15 Richard Biener PR middle-end/83850 * expmed.c (extract_bit_field_1): Fix typo. From-SVN: r256700 --- gcc/ChangeLog | 5 +++++ gcc/expmed.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 980573ff3c6..9c59870638d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-01-15 Richard Biener + + PR middle-end/83850 + * expmed.c (extract_bit_field_1): Fix typo. + 2018-01-15 Kyrylo Tkachov PR target/83687 diff --git a/gcc/expmed.c b/gcc/expmed.c index 35ce82bbb29..4c74e7dc2ea 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -1631,7 +1631,7 @@ extract_bit_field_1 (rtx str_rtx, poly_uint64 bitsize, poly_uint64 bitnum, if (VECTOR_MODE_P (GET_MODE (op0)) && !MEM_P (op0) && VECTOR_MODE_P (tmode) - && known_eq (bitsize, GET_MODE_SIZE (tmode)) + && known_eq (bitsize, GET_MODE_BITSIZE (tmode)) && maybe_gt (GET_MODE_SIZE (GET_MODE (op0)), GET_MODE_SIZE (tmode))) { machine_mode new_mode = GET_MODE (op0); -- 2.30.2