[LLVMbugs] [Bug 4773] New: simple float[3] vector usage leads to llc failure
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Tue Aug 25 08:34:32 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=4773
Summary: simple float[3] vector usage leads to llc failure
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: brian.e.paul at gmail.com
CC: llvmbugs at cs.uiuc.edu
The following code (vec3.c):
typedef __attribute__(( ext_vector_type(3) )) float vec3;
vec3 sum(vec3 a, vec3 b)
{
return a + b;
}
Causes clang/llc to fail when compiled with:
$ clang -S vec3.c -o vec3.s
Return operand #2 has unhandled type f32UNREACHABLE executed at
CallingConvLower.cpp:93!
0 clang-cc 0x0913070c
1 clang-cc 0x09130cd8
2 0x00110400 __kernel_sigreturn + 0
3 libc.so.6 0x0036ae18 abort + 392
4 clang-cc 0x091111e4
5 clang-cc 0x08c1ff43
6 clang-cc 0x08be174d
7 clang-cc 0x08ca7e17
8 clang-cc 0x08ca7f53
9 clang-cc 0x08ca8456
10 clang-cc 0x08cbe3ca
11 clang-cc 0x08cbeed4
12 clang-cc 0x08cbfd56
13 clang-cc 0x08da8b9e
14 clang-cc 0x090a5d61
15 clang-cc 0x090a6864
16 clang-cc 0x090a6a31
17 clang-cc 0x080955ec
18 clang-cc 0x080956ea
19 clang-cc 0x082fcebe
20 clang-cc 0x080717a1
21 clang-cc 0x080734d4 main + 3320
22 libc.so.6 0x003546d5 __libc_start_main + 229
23 clang-cc 0x08069701
Stack dump:
0. Program arguments: /home/local/bin/../libexec/clang-cc -triple
i386-pc-linux-gnu -S -disable-free -main-file-name vec3.c --relocation-model
static --disable-fp-elim --unwind-tables=0 --mcpu=pentium4 --fmath-errno=1
-fdiagnostics-show-option -o vec3.s -x c vec3.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'X86 DAG->DAG Instruction Selection' on function
'@vec3_sum'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
I'm using llvm/clang from SVN on Aug 26, 2009, debug build on x86-32.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list