UNREACHABLE executed ! error

Hi,

On LLVM 2.8, on executing following command
../install/bin/lli test.bc

It gives following error

"UNREACHABLE executed!
0 lli 0x08699718
Stack dump:
0. Program arguments: ../install/bin/lli test.bc
1. Running pass 'X86 Machine Code Emitter' on function '@main'
Aborted"

But,
../install/bin/llc test.bc :- does not give any error.

Also, This problem does not occur for LLVM 2.6.

Regards
Prachee Yogi

Hi,

On LLVM 2.8, on executing following command
../install/bin/lli test.bc

It gives following error

"UNREACHABLE executed!
0 lli 0x08699718
Stack dump:
0. Program arguments: ../install/bin/lli test.bc
1. Running pass 'X86 Machine Code Emitter' on function '@main'
Aborted"

But,
../install/bin/llc test.bc :- does not give any error.

Also, This problem does not occur for LLVM 2.6.

lli is a JIT that runs the program. llc only generates native assembly code for the bitcode file. So, in the first case, your program is running and hitting an unreachable statement, and in the second case, your program is not running at all.

-- John T.

But we are not getting this error for llvm-2.6 version.
In llvm-2.6
../install/bin/lli test.bc
didn't give any error.