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

Peter Bergner <bergner at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |linkw at gcc dot gnu.org,
                   |                            |meissner at gcc dot gnu.org,
                   |                            |segher at gcc dot gnu.org
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2024-07-24

--- Comment #1 from Peter Bergner <bergner at gcc dot gnu.org> ---
Compiling the test case on BE, I see the following asm:

        li 9,256
        addis 10,2,.LANCHOR0@toc@ha
        sth 9,.LANCHOR0@toc@l(10)
        lwz 9,.LANCHOR0@toc@l(10)
        cmpwi 0,9,256
        ...

Clearly, storing a halfword to mem and then loading it as a word and expecting
them to be the same isn't likely to work.

Reply via email to