[PATCH] D138105: [PowerPC] Support test data class intrinsic of 128-bit float

Qiu Chaofan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 16 01:01:02 PST 2022


qiucf created this revision.
qiucf added reviewers: nemanjai, shchenz, PowerPC, quinnp, stefanp.
Herald added subscribers: kbarton, hiraditya.
Herald added a project: All.
qiucf requested review of this revision.
Herald added projects: clang, LLVM.
Herald added subscribers: llvm-commits, cfe-commits.

We've exploited test data class instructions for `f32` `f64` v2f64` and `v4f32`. This patch unifies the LLVM intrinsic into the same `ppc_test_data_class` and add support for 128-bit precision float values using `xststdcqp`.

Vector versions of the intrinsic can't be unified because they return vector int instead of int.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D138105

Files:
  clang/lib/CodeGen/CGBuiltin.cpp
  clang/lib/Sema/SemaChecking.cpp
  clang/test/CodeGen/PowerPC/builtins-ppc-p9-f128.c
  clang/test/CodeGen/PowerPC/builtins-ppc-xlcompat-test.c
  llvm/include/llvm/IR/IntrinsicsPowerPC.td
  llvm/lib/Target/PowerPC/PPCISelLowering.cpp
  llvm/test/CodeGen/PowerPC/builtins-ppc-p9-f128.ll
  llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-test.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138105.475721.patch
Type: text/x-patch
Size: 8776 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221116/c10e9557/attachment-0001.bin>


More information about the cfe-commits mailing list