Displaying 2 results from an estimated 2 matches similar to: "[RFC] Loading Bitfields with Smallest Needed Types"
2020 May 27
2
[cfe-dev] [RFC] Loading Bitfields with Smallest Needed Types
On Tue, May 26, 2020 at 7:32 PM John McCall via cfe-dev <
cfe-dev at lists.llvm.org> wrote:
> On 26 May 2020, at 18:28, Bill Wendling via llvm-dev wrote:
> > [...] The store is a byte:
> >
> > orb $0x1,0x4a(%rbx)
> >
> > while the read is a word:
> >
> > movzwl 0x4a(%r12),%r15d
> >
> > The problem is that between the store
2020 May 27
4
[cfe-dev] [RFC] Loading Bitfields with Smallest Needed Types
At least in this test-case, the "bitfield" part of this seems to be a
distraction. As Eli notes, Clang has lowered the function to LLVM IR
containing consistent i16 operations. Despite that being a different choice
from GCC, it should still be correct and consistent.
Of course that insight does mean it's quite easy to create a test-case with
the exact same problematic store->load