https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94584

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Max Filippov
<jcmvb...@gcc.gnu.org>:

https://gcc.gnu.org/g:79b59676531631331b9353107f7d40c887852433

commit r9-8501-g79b59676531631331b9353107f7d40c887852433
Author: Max Filippov <jcmvb...@gmail.com>
Date:   Mon Apr 13 13:26:04 2020 -0700

    xtensa: backport fix for PR target/94584

    Patterns zero_extendhisi2, zero_extendqisi2 and extendhisi2_internal can
    load value from memory, but they don't treat volatile memory correctly.
    Add %v1 before load instructions to emit 'memw' instruction when
    -mserialize-volatile is in effect.

    2020-04-15  Max Filippov  <jcmvb...@gmail.com>
    gcc/
            * config/xtensa/xtensa.md (zero_extendhisi2, zero_extendqisi2)
            (extendhisi2_internal): Add %v1 before the load instructions.

    gcc/testsuite/
            * gcc.target/xtensa/pr94584.c: New test.

Reply via email to