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: unassignedb...@nondot.org
          Reporter: david.gr...@arm.com
                CC: deadal...@gmail.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to