[LLVMdev] Failure handling half type

Alessio Giovanni Baroni alessiogiovanni.baroni at gmail.com
Mon Jun 17 06:59:16 PDT 2013


Hi,

if I write the following simple program:

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-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

define void @foo () {
    %1 = alloca half
    store half 0xH42CC, half* %1   ; 0xH42CC = 3.4
    %2 = load half* %1
    ret void
}

llc goes in SIGABRT. In the reference manual says that it's  correct syntax.

It's a bug?

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130617/bf9b04b5/attachment.html>


More information about the llvm-dev mailing list