[llvm-bugs] [Bug 32451] New: `Cannot emit physreg copy instruction` assertion in KNL code generation

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Mar 28 13:44:47 PDT 2017


http://bugs.llvm.org/show_bug.cgi?id=32451

            Bug ID: 32451
           Summary: `Cannot emit physreg copy instruction` assertion in
                    KNL code generation
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: keno at alumni.harvard.edu
                CC: llvm-bugs at lists.llvm.org

Today's trunk (I'm at r298936) crashes with `Cannot emit physreg copy
instruction` when generating code for KNL. Reproducer is:

$ llc -fast-isel -mcpu knl crash.ll
Cannot emit physreg copy instruction
UNREACHABLE executed at
/home/keno/julia/deps/srccache/llvm-svn/lib/Target/X86/X86InstrInfo.cpp:6553!

$ cat crash.ll
; ModuleID = 'convert'
source_filename = "convert"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

define i8** @japi1_convert_690(i8**, i8***, i32) #0 {
top:
  %3 = alloca i8***
  store volatile i8*** %1, i8**** %3
  %4 = call i8*** @julia.gc_root_decl()
  %5 = call i8**** @jl_get_ptls_states()
  %6 = bitcast i8**** %5 to i8***
  %7 = getelementptr i8**, i8*** %6, i64 3
  %8 = bitcast i8*** %7 to i64**
  %9 = load i64*, i64** %8, !tbaa !2
  %10 = getelementptr i8**, i8*** %1, i64 1
  %11 = load i8**, i8*** %10
  %12 = bitcast i8** %11 to i8*
  %13 = load i8, i8* %12, !tbaa !5
  %14 = trunc i8 %13 to i1
  %15 = zext i1 %14 to i8
  %16 = zext i8 %15 to i32
  %17 = call i8** @jl_box_int32(i32 signext %16)
  store i8** %17, i8*** %4
  ret i8** %17
}

declare i8**** @jl_get_ptls_states()

declare i8** @jl_box_int32(i32)

declare i8*** @julia.gc_root_decl()

attributes #0 = { "no-frame-pointer-elim"="true" }

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

!0 = !{i32 2, !"Dwarf Version", i32 4}
!1 = !{i32 1, !"Debug Info Version", i32 3}
!2 = !{!3, !3, i64 0, i64 1}
!3 = !{!"jtbaa_const", !4, i64 0}
!4 = !{!"jtbaa"}
!5 = !{!6, !6, i64 0}
!6 = !{!"jtbaa_immut", !7, i64 0}
!7 = !{!"jtbaa_value", !8, i64 0}
!8 = !{!"jtbaa_data", !4, i64 0}

-- 
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/20170328/1b03f202/attachment.html>


More information about the llvm-bugs mailing list