Skip to content

error in backend: Cannot select: t17: x86mmx = select_cc t2, Constant:i64<0>, t7, t8, seteq:ch #29766

@pogo59

Description

@pogo59
Bugzilla Link 30418
Resolution FIXED
Resolved on Aug 11, 2017 03:57
Version trunk
OS Linux
Blocks #33196
Attachments compiler-command script
CC @zmodem,@RKSimon,@wjristow

Extended Description

One of our generated-source testers found this.

$ cat bz157150.cpp
typedef long __m64 attribute((vector_size(8)));
__m64 test47(long id9969) {
long id9966;
unsigned char bytes = (unsigned char)&id9966;
for (unsigned i = 0; i != 7; ++i) {
bytes[0] = 0 + i;
}
for (char id9967_idx = 0; (id9967_idx < 1) && id9969; ++id9967_idx) {
id9966 *= id9967_idx;
}
__m64 id9965 = (__m64)(id9966);
return __builtin_ia32_psllw(id9965, id9965);
}
$ clang -c -O1 bz157150.cpp
fatal error: error in backend: Cannot select: t17: x86mmx = select_cc t2,
Constant:i64<0>, t7, t8, seteq:ch
t2: i64,ch = CopyFromReg t0, Register:i64 %vreg0
t1: i64 = Register %vreg0
t3: i64 = Constant<0>
t7: x86mmx = bitcast Constant:i64<6>
t6: i64 = Constant<6>
t8: x86mmx = bitcast Constant:i64<0>
t3: i64 = Constant<0>
In function: _Z6test47l
clang-4.0: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 4.0.0 (trunk 281729)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/probinson/projects/llvm-org/trunk/cobj/bin
clang-4.0: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
clang-4.0: note: diagnostic msg:


PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-4.0: note: diagnostic msg: /tmp/bz157150-461a80.cpp
clang-4.0: note: diagnostic msg: /tmp/bz157150-461a80.sh
clang-4.0: note: diagnostic msg:


Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions