[PATCH] D102875: [PowerPC] Add PowerPC compare and multiply related builtins and instrinsics for XL compatibility
Amy Kwan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 8 16:26:59 PDT 2021
amyk added inline comments.
================
Comment at: clang/lib/Sema/SemaChecking.cpp:3356
+ case PPC::BI__builtin_ppc_maddld:
+ return SemaFeatureCheck(*this, TheCall, "power9-vector",
+ diag::err_ppc_builtin_only_on_pwr9);
----------------
This is just a question.
Is `power9-vector` the correct feature check in these cases? Does it matter if these are not vector instructions?
================
Comment at: clang/test/CodeGen/builtins-ppc-xlcompat-multiply-64bit-only.c:15
+ // CHECK-LABEL: @test_builtin_ppc_mulhd(
+ // CHECK-NEXT: entry:
+ // CHECK: %2 = call i64 @llvm.ppc.mulhd(i64 %0, i64 %1)
----------------
Does `entry` need to be removed from these tests (in case of failing in non-assert builds)?
Perhaps it may not fail but might be good to double check.
================
Comment at: llvm/include/llvm/IR/IntrinsicsPowerPC.td:1527
}
-
----------------
nit: unrelated change?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102875/new/
https://reviews.llvm.org/D102875
More information about the cfe-commits
mailing list