[all-commits] [llvm/llvm-project] ce368e: [libc][NFC] Workaround clang assertion in inline asm

Alex Brachet via All-commits all-commits at lists.llvm.org
Tue Jan 25 08:40:34 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ce368e1aa51f3d9f0a5f6ff0be3c02a9cf1e2d2e
      https://github.com/llvm/llvm-project/commit/ce368e1aa51f3d9f0a5f6ff0be3c02a9cf1e2d2e
  Author: Alex Brachet <abrachet at google.com>
  Date:   2022-01-25 (Tue, 25 Jan 2022)

  Changed paths:
    M libc/src/math/x86_64/cos.cpp
    M libc/src/math/x86_64/sin.cpp
    M libc/src/math/x86_64/tan.cpp

  Log Message:
  -----------
  [libc][NFC] Workaround clang assertion in inline asm

The clobber list "cc" is added to inline assembly to workaround a clang assertion that triggers when building with a clang built with assertions enabled. See bug [53391](https://github.com/llvm/llvm-project/issues/53391).

See https://godbolt.org/z/z3bc6a9PM showing functionally same output assembly.

Reviewed By: sivachandra, lntue

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




More information about the All-commits mailing list