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

Reply via email to