[LLVMbugs] [Bug 20791] New: AArch64: Assertion failed: (isSimple() && "Expected a SimpleValueType!"), function getSimpleVT

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Aug 28 11:37:31 PDT 2014


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

            Bug ID: 20791
           Summary: AArch64: Assertion failed: (isSimple() && "Expected a
                    SimpleValueType!"), function getSimpleVT
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: AArch64
          Assignee: unassignedbugs at nondot.org
          Reporter: grosbach at apple.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
target triple = "arm64-apple-ios5.0.0"

define void @autogen_SD7918() {
BB:
  br label %CF78

CF78:                                             ; preds = %CF78, %BB
  br i1 undef, label %CF78, label %CF

CF:                                               ; preds = %CF, %CF78
  %I29 = insertelement <1 x i1> zeroinitializer, i1 false, i32 0
  %ZE = zext <1 x i1> %I29 to <1 x i32>
  br i1 undef, label %CF, label %CF76

CF76:                                             ; preds = %CF76, %CF
  %B37 = sdiv <1 x i32> %ZE, %ZE
  br label %CF76
}

$ llc -o - -mtriple=arm64-apple-darwin test-7918.ll 
    .section    __TEXT,__text,regular,pure_instructions
Assertion failed: (isSimple() && "Expected a SimpleValueType!"), function
getSimpleVT, file
/Users/grosbaj/sources/llvm/include/llvm/CodeGen/ValueTypes.h, line 205.
0  llc                      0x000000010b0937be
llvm::sys::PrintStackTrace(__sFILE*) + 46
1  llc                      0x000000010b093acb
PrintStackTraceSignalHandler(void*) + 27
2  llc                      0x000000010b093e8c SignalHandler(int) + 460
3  libsystem_platform.dylib 0x00007fff882fef1a _sigtramp + 26
4  llc                      0x000000010ba3da9e guard variable for
llvm::BitcodeErrorCategory()::O + 69646
5  llc                      0x000000010b093afb raise + 27
6  llc                      0x000000010b093bb2 abort + 18
7  llc                      0x000000010b093b91 __assert_rtn + 129
8  llc                      0x000000010af96f7d llvm::EVT::getSimpleVT() const +
109
9  llc                      0x0000000109a2ad24
performExtendCombine(llvm::SDNode*, llvm::TargetLowering::DAGCombinerInfo&,
llvm::SelectionDAG&) + 676
10 llc                      0x0000000109a288d9
llvm::AArch64TargetLowering::PerformDAGCombine(llvm::SDNode*,
llvm::TargetLowering::DAGCombinerInfo&) const + 761
11 llc                      0x000000010ad0d189 (anonymous
namespace)::DAGCombiner::combine(llvm::SDNode*) + 345
12 llc                      0x000000010ad0c84d (anonymous
namespace)::DAGCombiner::Run(llvm::CombineLevel) + 1197
13 llc                      0x000000010ad0c328
llvm::SelectionDAG::Combine(llvm::CombineLevel, llvm::AliasAnalysis&,
llvm::CodeGenOpt::Level) + 104
...


The custom lowering for the extend is assuming that if the destination type is
a simple type, then so is the source type. That's obviously not true, as the
testcase demonstrates.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140828/5d357f82/attachment.html>


More information about the llvm-bugs mailing list