[llvm-commits] Commit 168785 broke hexagon target data strings

Tobias Grosser tobias at grosser.es
Wed Nov 28 04:56:35 PST 2012


Hi Patrik,

the Polly builder started to show four failing test cases after your 
commit 168785. The failures are not due to any Polly passes, but arise 
as soon as an LLVM-IR module with a hexagon target data string is loaded 
into opt.

Here a test case (also attached):

=======================================================================
; RUN: opt < %s
target datalayout = 
"e-p:32:32:32-i64:64:64-i32:32:32-i16:16:16-i1:32:32f64:64:64-f32:32:32-a0:0-n32"
target triple = "hexagon-unknown-linux-gnu"

define void @foo() nounwind {
start:
         ret void
}
=======================================================================

$ opt targetdata.ll
opt: lib/VMCore/DataLayout.cpp:188: unsigned int 
getInt(llvm::StringRef): Assertion `!error && "not a number, or does not 
fit in an unsigned int"' failed.
0  opt             0x000000000144f1be
1  opt             0x000000000144f6ba
2  libpthread.so.0 0x00007f76fcc6bcb0
3  libc.so.6       0x00007f76fc0c1445 gsignal + 53
4  libc.so.6       0x00007f76fc0c4bab abort + 379
5  libc.so.6       0x00007f76fc0ba10e
6  libc.so.6       0x00007f76fc0ba1b2
7  opt             0x000000000124488a
8  opt             0x0000000001244405 
llvm::DataLayout::parseSpecifier(llvm::StringRef) + 2117
9  opt             0x000000000124382b 
llvm::DataLayout::init(llvm::StringRef) + 475
10 opt             0x00000000005faa2e
11 opt             0x00000000005e6955
12 opt             0x00000000005e10e1 main + 1633
13 libc.so.6       0x00007f76fc0ac76d __libc_start_main + 237
14 opt             0x00000000005d15b5
Stack dump:
0.	Program arguments: opt
Aborted

Cheers
Tobi
-------------- next part --------------
; RUN: opt < %s
target datalayout = "e-p:32:32:32-i64:64:64-i32:32:32-i16:16:16-i1:32:32f64:64:64-f32:32:32-a0:0-n32"
target triple = "hexagon-unknown-linux-gnu"

define void @foo() nounwind {
start:
        ret void
}


More information about the llvm-commits mailing list