[LLVMdev] i256 for x86_64

Chris Lattner clattner at apple.com
Tue May 25 17:25:52 PDT 2010


On May 25, 2010, at 5:16 PM, Ehsan Amiri wrote:

> Hello all
> 
> I have a very simple handwritten .ll file that can be translated to native assembly on x86_64 when I use i128. But if I use i256 I get an error. see the file and the first line of the error below. Any help is appreciated! I played a little bit with target datalayout but it didn't help.

This works for me on mainline.  Are you using an old version of llvm?

-Chris


> 
> Best
> Ehsan
> 
> Input File:
> 
> target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
> target triple = "x86_64-unknown-linux-gnu"
> 
> define i32 @main(i32 %argc, i8** nocapture %argv) nounwind {
> entry:
> 
>   %0 = tail call i256 (...)* @get_num() nounwind ;comment here
>   ret i32 0
> }
> 
> declare i256 @get_num(...)
> 
> ---------------------------------------------
> 
> First line of error:
> 
> Call result #2 has unhandled type i64UNREACHABLE executed at CallingConvLower.cpp:148!
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev





More information about the llvm-dev mailing list