[llvm-bugs] [Bug 38539] New: ExpandPostRAPseudos - Sub-register pseudos should have been eliminated

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Aug 13 03:51:20 PDT 2018


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

            Bug ID: 38539
           Summary: ExpandPostRAPseudos - Sub-register pseudos should have
                    been eliminated
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: llvm-dev at redking.me.uk
                CC: craig.topper at gmail.com, llvm-bugs at lists.llvm.org,
                    spatel+llvm at rotateright.com

define void @f() {
BB:
  %A30 = alloca i66
  %L17 = load i66, i66* %A30
  %B20 = and i66 %L17, -1
  %G2 = getelementptr i66, i66* %A30, i1 true
  %L10 = load i8, i8* undef
  %B6 = udiv i8 %L10, %L10
  %C15 = icmp eq i8 undef, 0
  %B8 = srem i66 0, %B20
  %C2 = icmp ule i66 %B8, %B20
  %B5 = or i8 0, %B6
  %C19 = icmp uge i1 false, %C2
  %C1 = icmp sle i8 undef, %B5
  %B37 = srem i1 %C1, %C2
  %C7 = icmp uge i1 false, %C15
  store i1 %C7, i1* undef
  %G6 = getelementptr i66, i66* %G2, i1 %B37
  store i66* %G6, i66** undef
  %B30 = srem i1 %C19, %C7
  store i1 %B30, i1* undef
  ret void
}

llc -mtriple=x86_64-unknown

Sub-register pseudos should have been eliminated.
UNREACHABLE executed at
/home/simon/LLVM/llvm/lib/CodeGen/ExpandPostRAPseudos.cpp:219!

Seems to have failed to strip some EXTRACT_SUBREG TargetOpcodes.

Reduced from https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8882

-- 
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/20180813/aff54b38/attachment.html>


More information about the llvm-bugs mailing list