This isn't supported directly so we splat the vector element and extract
the most convenient copy.
Details
Diff Detail
Event Timeline
LGTM. Some comments inline.
| test/CodeGen/Mips/msa/basic_operations.ll | ||
|---|---|---|
| 466 | I think it would be beneficial if we checked here that we don't emit an 'SRA'. | |
| 480 | I ran this test manually and the compiler is generating an 'shf.w $w0,$w0,177' before the first splat. Is this because it didn't emit splat.d ? | |
| 514 | Could you check for the immediate as well ? (24) | |
| 538 | Could you check for the immediate as well ? (16) | |
| 561 | Would it be good if we checked that we don't emit an 'SRL' ? | |
| test/CodeGen/Mips/msa/basic_operations.ll | ||
|---|---|---|
| 480 | It's the bitcast from v2i64 to v4i32. bitcasts are shuffles in big-endian mode | |
I think it would be beneficial if we checked here that we don't emit an 'SRA'.