[llvm-bugs] [Bug 44246] New: [AArch64] strict_align not respected by GlobalISel

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Dec 7 04:15:46 PST 2019


https://bugs.llvm.org/show_bug.cgi?id=44246

            Bug ID: 44246
           Summary: [AArch64] strict_align not respected by GlobalISel
           Product: libraries
           Version: 9.0
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: AArch64
          Assignee: unassignedbugs at nondot.org
          Reporter: nikita.ppv at gmail.com
                CC: arnaud.degrandmaison at arm.com,
                    llvm-bugs at lists.llvm.org, peter.smith at linaro.org,
                    Ties.Stuij at arm.com

Originally reported at: https://github.com/rust-lang/rust/issues/66897

Running

target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
target triple = "aarch64-unknown-linux-gnu"

define i64 @test(i64* %p) #0 {
  %x = load i64, i64* %p, align 1
  ret i64 %x
}

attributes #0 = { "target-features"="+strict-align" }

through llc -O0 results in:

        ldr     x0, [x0]
        ret

Which violates strict-align. Passing -global-isel=false avoids the issue.

-- 
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/20191207/d8c933cf/attachment.html>


More information about the llvm-bugs mailing list