[PATCH] D158066: [PowerPC] Fix use of FPSCR builtins in smmintrin.h

Qiu Chaofan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 16 03:08:23 PDT 2023


qiucf created this revision.
qiucf added reviewers: nemanjai, shchenz, stefanp, PowerPC.
Herald added a subscriber: kbarton.
Herald added a project: All.
qiucf requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

`smmintrin.h` uses `__builtin_mffs`, `__builtin_mffsl`, `__builtin_mtfsf` and `__builtin_set_fpscr_rn`. This patch replaces the uses with `ppc` prefix and implement the missing ones.

This fixes issue 64664.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D158066

Files:
  clang/include/clang/Basic/BuiltinsPPC.def
  clang/lib/CodeGen/CGBuiltin.cpp
  clang/lib/Headers/ppc_wrappers/smmintrin.h
  clang/test/CodeGen/PowerPC/builtins-ppc.c
  clang/test/CodeGen/PowerPC/ppc-smmintrin.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158066.550689.patch
Type: text/x-patch
Size: 11576 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230816/f9d43767/attachment-0001.bin>


More information about the cfe-commits mailing list