[all-commits] [llvm/llvm-project] de7c00: [PowerPC] Fix use of FPSCR builtins in smmintrin.h...

Qiu Chaofan via All-commits all-commits at lists.llvm.org
Thu Oct 26 00:56:46 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: de7c0068329d78027df7b7184d72646c1ca9f2bd
      https://github.com/llvm/llvm-project/commit/de7c0068329d78027df7b7184d72646c1ca9f2bd
  Author: Qiu Chaofan <qiucofan at cn.ibm.com>
  Date:   2023-10-26 (Thu, 26 Oct 2023)

  Changed paths:
    M clang/include/clang/Basic/BuiltinsPPC.def
    M clang/lib/Basic/Targets/PPC.cpp
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/lib/Headers/ppc_wrappers/smmintrin.h
    M clang/test/CodeGen/PowerPC/builtins-ppc.c
    M clang/test/CodeGen/PowerPC/ppc-emmintrin.c
    M clang/test/CodeGen/PowerPC/ppc-mmintrin.c
    M clang/test/CodeGen/PowerPC/ppc-pmmintrin.c
    M clang/test/CodeGen/PowerPC/ppc-smmintrin.c
    M clang/test/CodeGen/PowerPC/ppc-tmmintrin.c
    M clang/test/CodeGen/PowerPC/ppc-x86gprintrin.c

  Log Message:
  -----------
  [PowerPC] Fix use of FPSCR builtins in smmintrin.h (#67299)

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.




More information about the All-commits mailing list