[llvm-bugs] [Bug 47771] New: attribute((target("cx16"))) doesn't effect atomics codegen

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Oct 8 13:02:57 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=47771

            Bug ID: 47771
           Summary: attribute((target("cx16"))) doesn't effect atomics
                    codegen
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C
          Assignee: unassignedclangbugs at nondot.org
          Reporter: scanon at apple.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

https://godbolt.org/z/18jqEE

I expect tagging a function with feature("cx16") to generate the same code as
using the command-line option -mcx16, but we still get a call to atomic_load
instead of a cmpxchg16b instruction.

Appears to happen with GCC as well, FWIW.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201008/6bbf68b3/attachment.html>


More information about the llvm-bugs mailing list