[LLVMbugs] [Bug 12138] New: Assertion `MO.isDef() && MO.isImplicit() && MO.isDead()' failed. Assertion `MO.isDef() && MO.isImplicit() && MO.isDead()Assertion `MO.isDef() && MO.isImplicit() && MO.isDead()' failed. Assertion `MO.isDef() && MO.isImplicit() && MO.isDead()' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Feb 29 10:11:34 PST 2012


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

             Bug #: 12138
           Summary: Assertion `MO.isDef() && MO.isImplicit() &&
                    MO.isDead()' failed. Assertion `MO.isDef() &&
                    MO.isImplicit() && MO.isDead()Assertion `MO.isDef() &&
                    MO.isImplicit() && MO.isDead()' failed. Assertion
                    `MO.isDef() && MO.isImplicit() && MO.isDead()' failed.
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: regehr at cs.utah.edu
                CC: chenyang at cs.utah.edu, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


[regehr at gamow 1]$ clang -v
clang version 3.1 (trunk 151732)
Target: x86_64-unknown-linux-gnu
Thread model: posix
[regehr at gamow 1]$ clang -Os -m32 -c -w small.c
clang: RegisterCoalescer.cpp:817:
bool<unnamed>::RegisterCoalescer::ReMaterializeTrivialDef(llvm::LiveInterval&,
bool, unsigned int, llvm::MachineInstr*): Assertion `MO.isDef() &&
MO.isImplicit() && MO.isDead()' failed.
0  clang           0x0000000001e51bef
1  clang           0x0000000001e53e62
2  libpthread.so.0 0x00007ffff7bcf8f0
3  libc.so.6       0x00007ffff6ebea75 gsignal + 53
4  libc.so.6       0x00007ffff6ec25c0 abort + 384
5  libc.so.6       0x00007ffff6eb7941 __assert_fail + 241
6  clang           0x000000000194e272
7  clang           0x00000000019520cc
8  clang           0x0000000001954bc8
9  clang           0x0000000001defd0b
llvm::FPPassManager::runOnFunction(llvm::Function&) + 587
10 clang           0x0000000001defdf3
llvm::FPPassManager::runOnModule(llvm::Module&) + 51
11 clang           0x0000000001def7e1
llvm::MPPassManager::runOnModule(llvm::Module&) + 497
12 clang           0x0000000001def96b llvm::PassManagerImpl::run(llvm::Module&)
+ 187
13 clang           0x00000000007becec
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 1516
14 clang           0x00000000007bbfb9
15 clang           0x000000000091b5a1 clang::ParseAST(clang::Sema&, bool) + 465
16 clang           0x00000000007bab94 clang::CodeGenAction::ExecuteAction() +
68
17 clang           0x000000000065fa01
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 321
18 clang           0x00000000006484d9
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1609
19 clang           0x000000000063d590 cc1_main(char const**, char const**, char
const*, void*) + 960
20 clang           0x00000000006471d7 main + 7143
21 libc.so.6       0x00007ffff6ea9c4d __libc_start_main + 253
22 clang           0x000000000063add9
Stack dump:
0.    Program arguments:
/uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r151732-install/bin/clang
-cc1 -triple i386-unknown-linux-gnu -emit-obj -disable-free -main-file-name
small.c -mrelocation-model static -masm-verbose -mconstructor-aliases
-target-cpu pentium4 -momit-leaf-frame-pointer -coverage-file small.o
-resource-dir
/uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r151732-install/bin/../lib/clang/3.1
-fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem
/usr/local/include -internal-isystem
/uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r151732-install/bin/../lib/clang/3.1/include
-internal-externc-isystem /usr/include/i486-linux-gnu -internal-externc-isystem
/include -internal-externc-isystem /usr/include -Os -w -fdebug-compilation-dir
/home/regehr/z/reduce/1 -ferror-limit 19 -fmessage-length 80 -mstackrealign
-fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi
-fdiagnostics-show-option -fcolor-diagnostics -o small.o -x c small.c 
1.    <eof> parser at end of file
2.    Code generation
3.    Running pass 'Function Pass Manager' on module 'small.c'.
4.    Running pass 'Simple Register Coalescing' on function '@fn2'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang: note: diagnostic msg: Preprocessed source(s) and associated run
script(s) are located at:
clang: note: diagnostic msg: /tmp/small-GicthJ.i
clang: note: diagnostic msg: /tmp/small-GicthJ.sh
[regehr at gamow 1]$ cat small.c  
int a, b, c, e;

short fn1 (short p1, int p2) {
  return (p1 ^ 1) & p1 < 0 ? p1 : p1 - p2;
}

struct S0 {
  char f6;
  int f7;
} d[2][2];

void fn2 () {
  struct S0 f, g;
  d[0][0] = g = f;
  for (; f.f7; f.f7 -= 1) {
    b = fn1 (g.f7, c || (e = 1));
    if (a)
      break;
    g.f6 = 1;
  }
}

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list