[llvm-bugs] [Bug 51626] New: Wrong data layout for M68k

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Aug 25 12:49:56 PDT 2021


            Bug ID: 51626
           Summary: Wrong data layout for M68k
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: M68k
          Assignee: unassignedbugs at nondot.org
          Reporter: glaubitz at physik.fu-berlin.de
                CC: glaubitz at physik.fu-berlin.de, jrtc27 at jrtc27.com,
                    llvm-bugs at lists.llvm.org, minyihh at uci.edu,
                    rickytaylor26 at gmail.com

According to the comment by Jessica Clarke in [1], the data layout for M68k is


> glaubitz at node54:/data/home/glaubitz/llvm-project/build> clang -S -x c /dev/null -o - -emit-llvm --target=m68k-linux-gnu | grep datalayout
> target datalayout = "E-m:e-p:32:32-i8:8:8-i16:16:16-i32:16:32-n8:16:32-a:0:16-S16"
> glaubitz at node54:/data/home/glaubitz/llvm-project/build>

"p:32:32 still looks wrong, _Alignof(void *) is 2 not 4 so it should be
p:32:16:32 just like i32, so that needs fixing in LLVM"

> [1] https://github.com/rust-lang/rust/pull/88321#discussion_r696022822

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210825/a1e95ade/attachment-0001.html>

More information about the llvm-bugs mailing list