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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to