diff options
Diffstat (limited to 'gcc/expmed.c')
-rw-r--r-- | gcc/expmed.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/expmed.c b/gcc/expmed.c index c230a33..883d33f 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -1072,7 +1072,8 @@ extract_bit_field (str_rtx, bitsize, bitnum, unsignedp, : bitpos == 0)))) { enum machine_mode mode1 - = mode_for_size (bitsize, GET_MODE_CLASS (tmode), 0); + = (VECTOR_MODE_P (tmode) ? mode + : mode_for_size (bitsize, GET_MODE_CLASS (tmode), 0)); if (mode1 != GET_MODE (op0)) { |