Allow passthrough bf16 registers for vector.insert
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Do the tests have to live in a new file instead of sitting alongside the other variants in sve-insert-vector.ll? I see nothing SVE2 related here.
I saw #if defined(__ARM_FEATURE_SVE2) && defined(__ARM_FEATURE_SVE_BF16) in another file so assumed bf16 was SVE2 only
That will be to protect SVE2 specific BF16 instructions. SVE also has BF16 instructions, for example BFDOT. These tests only really care about the type as no BF16 related instructions are necessary so they can all sit within the same file. For a similar example see sve-vector-splat.ll.
I realise that now since I ran some tests with sve+bf16 and they work fine. I'll move these back into the previous file :)
One minor issue to resolve before committing.
llvm/test/CodeGen/AArch64/sve-insert-vector.ll | ||
---|---|---|
469–470 | Presumably this is bogus and should be removed? |
Presumably this is bogus and should be removed?