Test case to verify that the expected code is generated for a
vector float gather based on the patterns in tablegen for big
and little endian cases.
Details
- Reviewers
lei nemanjai stefanp hfinkel power-llvm-team jsji amyk - Group Reviewers
Restricted Project - Commits
- rG9d9389391408: [PowerPC] Test case for vector float gather on ppc64le and ppc64
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 41053 Build 41215: arc lint + arc unit
Event Timeline
Please make sure that your test does not put restrictions on the allocation of output registers. See my comments.
Otherwise I think this looks fine.
llvm/test/CodeGen/PowerPC/float-vector-gather.ll | ||
---|---|---|
14 | nit: | |
24 | So xxmrghd computes the contents of one register based on the other two. | |
38 | Same as above. The outputs of the two xxmrghd instructions don't need to be [[REG0]] or [[REG1]]. The register allocator may decide to use a different register there. |
I think this patch is fine now.
I only have one minor comment.
llvm/test/CodeGen/PowerPC/float-vector-gather.ll | ||
---|---|---|
3 | nit: |
nit:
I think you mean v4f32 and not v4i32 since they are all floats.