Error during code selection with broadcast instruction (AVX) with optsize
| 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.
Thanks, Andrea! Updating status to 'resolved'.
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).
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.
assigned to @adibiagio