llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Error during code selection with broadcast instruction (AVX) with optsize

Open wolfy1961 opened this issue 11 years ago • 4 comments

Bugzilla Link 23259
Resolution FIXED
Resolved on Apr 22, 2015 19:30
Version trunk
OS Windows NT
Attachments IR generated from a C++ test case using __builtin_shufflevector
CC @adibiagio,@filcab,@rotateright

Extended Description

The attached IR gets (with llc r235151):

LLVM ERROR: Cannot select: 0x502f8b0: v2i64 = X86ISD::VBROADCAST 0x502dec0 [ORD=7] [ID=18] 0x502dec0: i64,ch = load 0x4fd3100, 0x502f690, 0x502dfd0<LD8[ConstantPool]> [ORD=7] [ID=16] 0x502f690: i64 = X86ISD::Wrapper 0x5030830 [ID=14] 0x5030830: i64 = TargetConstantPool<i64 1> 0 [ID=11] 0x502dfd0: i64 = undef [ID=4] In function: _Z7test768Dv3_l

This was introduced with r218263.

wolfy1961 avatar Apr 17 '15 03:04 wolfy1961

Thanks, Andrea! Updating status to 'resolved'.

rotateright avatar Apr 22 '15 19:04 rotateright

As Filipe said, this failure is caused by the lack of a pattern for i64. I fixed this at revision 235509.

The title of this bug was a bit misleading. The problem was only reproducible on a AVX target (and not AVX2).

adibiagio avatar Apr 22 '15 16:04 adibiagio

This looks like a lack of pattern for i64 (if you change it to double, everything works), I'm just not sure how we're modelling cross-domain penalties, in case they apply.

filcab avatar Apr 17 '15 14:04 filcab

assigned to @adibiagio

wolfy1961 avatar Apr 17 '15 03:04 wolfy1961