[libcxx-commits] [PATCH] D138667: [libc++abi][LIT][AIX] Use Vector instructions available on Power7 in vec_reg_restore.pass.cpp

Xing Xue via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Nov 24 06:43:58 PST 2022


xingxue created this revision.
xingxue added reviewers: compnerd, nemanjai, daltenty.
xingxue added a project: LLVM.
Herald added a project: All.
xingxue requested review of this revision.
Herald added a project: libc++abi.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++abi.

libc++abi LIT test case `vec_reg_restore.pass.cpp` for AIX uses instructions `mtvsrd` and `mfvsrd` that are only available on Power8 CPU and higher, and therefore, fails on Power7 which is supported by the current AIX Clang. This patch replaces `mtvsrd`/`mfvsrd` with `lxvd2x`/`stxvd2x` that are available on Power7. Because `lxvd2x`/`stxvd2x` loads into or stores from a vector register through a memory location, a buffer is used.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D138667

Files:
  libcxxabi/test/vendor/ibm/vec_reg_restore.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138667.477767.patch
Type: text/x-patch
Size: 4019 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20221124/848967b9/attachment.bin>


More information about the libcxx-commits mailing list