[all-commits] [llvm/llvm-project] d9717d: [X86] Add a memory clobber to the bittest intrinsi...

topperc via All-commits all-commits at lists.llvm.org
Wed Sep 23 14:55:36 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d9717d8ee7143f4f5b768dfb5e8629ecfa067e39
      https://github.com/llvm/llvm-project/commit/d9717d8ee7143f4f5b768dfb5e8629ecfa067e39
  Author: Craig Topper <craig.topper at intel.com>
  Date:   2020-09-23 (Wed, 23 Sep 2020)

  Changed paths:
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/test/CodeGen/bittest-intrin.c

  Log Message:
  -----------
  [X86] Add a memory clobber to the bittest intrinsic inline asm. Get default clobbers from the target

I believe the inline asm emitted here should have a memory clobber since it writes to memory.

It was also missing the dirflag clobber that we use by default along with flags and fpsr. To avoid missing defaults in the future, get the default list from the target

Differential Revision: https://reviews.llvm.org/D88121




More information about the All-commits mailing list