[LLVMdev] Error: llc crashes (LLVM 3.1)

Jun Koi junkoi2004 at gmail.com
Fri Sep 21 01:58:53 PDT 2012


hi,

i have a simple IR file like below:

;;;;;;;;;;;;;
; ModuleID = 'gg.bc'
@aaa = external global i128
@bbb = external global i128

define void @depasta() nounwind {
"0x0":
  %0 = load i128* @bbb
  %1 = and i128 %0, 4294967295
  %2 = shl i128 %0, 96
  %3 = mul i128 %1, 18446744078004518913
  %4 = add i128 %3, %2
  store i128 %4, i128* @aaa
  ret void
}
;;;;;;;;;

i tried to compile this IR file to bitcode file (with llvm-as), then
compile BC file to native code (with llc).
however, llc crashes like below:

------
 C:\>llvm-as gg.ll
C:\>llc -filetype=obj gg.bc
UNREACHABLE executed!

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
--------

this looks like a bug, doesn't it? any idea why?

this is LLVM 3.1, on Windows 32bit.

thanks,
Jun



More information about the llvm-dev mailing list