[llvm-bugs] [Bug 41477] New: Stack probing emits incorrect code on gnux32

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Apr 11 22:02:42 PDT 2019


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

            Bug ID: 41477
           Summary: Stack probing emits incorrect code on gnux32
           Product: compiler-rt
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: compiler-rt
          Assignee: unassignedbugs at nondot.org
          Reporter: crlf0710 at gmail.com
                CC: llvm-bugs at lists.llvm.org

Hello, we've found that stack probing emits incorrect code on gnu x32 platform.

Minimal Repro code:
---------------------------
; ModuleID = 'bugpoint-reduced-simplified.bc'
source_filename = "b.7rcbfp3g-cgu.0"
target datalayout = "e-m:e-p:32:32-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnux32"

define dso_local void @_ZN1b7call_it17h422679d04fa7b4d4E() unnamed_addr #0 {
start:
  %unsized_tmp = alloca i8, i32 undef, align 16
  unreachable
}

attributes #0 = { "probe-stack"="__rust_probestack" }

!llvm.module.flags = !{!0}

!0 = !{i32 7, !"PIE Level", i32 2}
--------------------------

********** EXPANDING POST-RA PSEUDO INSTRS **********
********** Function: _ZN1b7call_it17h422679d04fa7b4d4E
real copy:   $rax = COPY killed renamable $eax
Cannot copy EAX to RAX
LLVM ERROR: Cannot emit physreg copy instruction

--------------------------
For more information, See https://github.com/rust-lang/rust/issues/59674 .

-- 
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/20190412/5d7aed1a/attachment-0001.html>


More information about the llvm-bugs mailing list