[llvm-bugs] [Bug 25933] New: PowerPC64 missing 16 byte atomic ops

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Dec 23 03:06:00 PST 2015


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

            Bug ID: 25933
           Summary: PowerPC64 missing 16 byte atomic ops
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: PowerPC
          Assignee: unassignedbugs at nondot.org
          Reporter: anton at samba.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

The following test case:

int main(void)
{
        __uint128_t x;
        __sync_val_compare_and_swap_16(&x, 1, 0);
}

works on gcc:

$ gcc -mcpu=power8 -O2 test.c

but fails on clang:

$ clang -mcpu=power8 -O2 test.c
/tmp/test-bae14f.o: In function `main':
test.c:(.text+0x34): undefined reference to `__sync_val_compare_and_swap_16'

-- 
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/20151223/69b47e5b/attachment.html>


More information about the llvm-bugs mailing list