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

            Bug ID: 22678
           Summary: vector cast from float to i8 crashes in CodeGen
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: ARM
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Created attachment 13939
  --> http://llvm.org/bugs/attachment.cgi?id=13939&action=edit
failing test case

This bitcode (which compiles fine with release 3.6):

target datalayout = "e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128"
target triple = "arm--linux-eabi"

define void @test() {
  %1 = fptoui <16 x float> undef to <16 x i8>
  store <16 x i8> %1, <16 x i8>* undef
  ret void
}

compiled like this:

llc cast_f32x16_to_i8x16.ll -march=arm -mattr=+neon

produces this error:

llc: third_party/llvm/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:6485:
llvm::SDValue (anonymous namespace)::DAGCombiner::visitTRUNCATE(llvm::SDNode
*): Assertion `NVT.getSizeInBits() == VecTy.getSizeInBits() && "Invalid Size"'
failed.
Stack dump:
0.    Program arguments:
/google/src/cloud/abadams/domain_transform_interleaved_image/google3/blaze-bin/third_party/llvm/llvm/llc
bugpoint-reduced-simplified.ll -filetype=asm -o -march=arm -mattr=+neon 
1.    Running pass 'Function Pass Manager' on module
'bugpoint-reduced-simplified.ll'.
2.    Running pass 'ARM Instruction Selection' on function '@test'
Aborted (core dumped)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to