[llvm-bugs] [Bug 36559] New: Error in type legalising on v6m

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Mar 1 05:40:16 PST 2018


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

            Bug ID: 36559
           Summary: Error in type legalising on v6m
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: ARM
          Assignee: unassignedbugs at nondot.org
          Reporter: david.green at arm.com
                CC: deadalnix at gmail.com, llvm-bugs at lists.llvm.org

This code:

char a[] = {1, 1, 1};
char b = 1;
int c;
static int d;
e() {
  char *f = &a[2];
  char *g = &b;
  char **h = c;
  if (g != (*h = f))
    d = 70;
}
i() { fn3(d); }


Compiled like this:
clang --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c test.c -O3 -c


Gives me this:
Operand not processed?
t21: ch = br t23, BasicBlock:ch<if.then 0x82b168>

UNREACHABLE executed at ../lib/CodeGen/SelectionDAG/LegalizeTypes.cpp:476!


Bisecting led to this commit:
https://reviews.llvm.org/rL325892

-- 
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/20180301/e9832459/attachment.html>


More information about the llvm-bugs mailing list