[PATCH] D82609: [PowerPC] Implement Vector Multiply High/Divide Extended Builtins in LLVM/Clang

Amy Kwan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 17 19:32:35 PDT 2020


amyk added inline comments.


================
Comment at: llvm/test/CodeGen/PowerPC/p10-vector-divide.ll:59
+
+define <4 x i32> @test_vdivesw(<4 x i32> %a, <4 x i32> %b) {
+; CHECK-LABEL: test_vdivesw:
----------------
NeHuang wrote:
> nit:  do we also need  `_intrinsic` in the name as the test cases for the vector multiply high intrinsics.
I am thinking that it may be OK to leave the vector divide extended tests without the `_intrinsic` suffix. 

The reason why I added `_intrinsic` to vector multiply high is because the vector multiply high instructions can be produced in two ways:
- by the `mulhs` node (which is present in the test, I have named them `test_vmulh...`)
- by the `@llvm.ppc.altivec.vmulh[s|u][w|d]` intrinsic (these tests have the `_intrinsic` suffix)

So far for the vector divide extended, we produce the instructions only if we have the intrinsic. 

However I do not feel too strongly either way on this so if there is a preference to add `_intrinsic` to these tests, I can definitely do that. 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D82609/new/

https://reviews.llvm.org/D82609



More information about the llvm-commits mailing list