diff options
author | Michael Meissner <meissner@gcc.gnu.org> | 2020-02-05 16:45:05 -0500 |
---|---|---|
committer | Michael Meissner <meissner@gcc.gnu.org> | 2020-02-05 16:45:05 -0500 |
commit | d10cddeaad2a315c114063b7c1ff11c6a356ab65 (patch) | |
tree | b70823c913c4b91e43abd649586c52bf93cfeace | |
parent | 44334e036526ac269dc6437caa1976e5bf30e849 (diff) | |
download | gcc-d10cddeaad2a315c114063b7c1ff11c6a356ab65.zip gcc-d10cddeaad2a315c114063b7c1ff11c6a356ab65.tar.gz gcc-d10cddeaad2a315c114063b7c1ff11c6a356ab65.tar.bz2 |
Fix PR 93568 (thinko)
2020-02-05 Michael Meissner <meissner@linux.ibm.com>
PR target/93568
* config/rs6000/rs6000.c (get_vector_offset): Fix
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cd9b734..b986f28 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2020-02-05 Michael Meissner <meissner@linux.ibm.com> + + PR target/93568 + * config/rs6000/rs6000.c (get_vector_offset): Fix + 2020-02-05 Andrew Stubbs <ams@codesourcery.com> * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Use / not space. diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index bf0dc97..7457956 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -6744,8 +6744,7 @@ get_vector_offset (rtx mem, rtx element, rtx base_tmp, unsigned scalar_size) /* All insns should use the 'Q' constraint (address is a single register) if the element number is not a constant. */ - rtx addr = XEXP (mem, 0); - gcc_assert (satisfies_constraint_Q (addr)); + gcc_assert (satisfies_constraint_Q (mem)); /* Mask the element to make sure the element number is between 0 and the maximum number of elements - 1 so that we don't generate an address |