[llvm-bugs] [Bug 32795] New: crash at -O3 and -O2 in 32-bit mode (Instruction does not dominate all uses! error in backend: Broken function found, compilation aborted!)
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Apr 25 15:11:22 PDT 2017
http://bugs.llvm.org/show_bug.cgi?id=32795
Bug ID: 32795
Summary: crash at -O3 and -O2 in 32-bit mode (Instruction does
not dominate all uses! error in backend: Broken
function found, compilation aborted!)
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: chengniansun at gmail.com
CC: llvm-bugs at lists.llvm.org
$ clang-trunk -v
clang version 5.0.0 (trunk 298510)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5.3.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.2
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.3.0
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64
$ clang-trunk -O3 -m32 small.c
Instruction does not dominate all uses!
%.pre = sext i16 %p1 to i32
store i32 %.pre, i32* @e, align 4, !tbaa !6
fatal error: error in backend: Broken function found, compilation aborted!
clang-5.0: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 5.0.0 (trunk 298510)
Target: i386-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
clang-5.0: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang-5.0: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-5.0: note: diagnostic msg: /tmp/small-62a555.c
clang-5.0: note: diagnostic msg: /tmp/small-62a555.sh
clang-5.0: note: diagnostic msg:
********************
$ cat small.c
short a, i;
int b[6];
int c, e, f, g, h, j;
short d[6];
void
fn1 (short p1)
{
if (a)
;
else
f = 2;
if (f)
i = h >= p1;
else
lbl_1586:
e = p1;
for (; g < p1;)
{
c = b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[b
[d
[j]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
^ d[j]];
j = p1;
}
goto lbl_1586;
}
$
--
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/20170425/f98aa6a6/attachment-0001.html>
More information about the llvm-bugs
mailing list