PPC::B and PPC::BCC's target operand may be an immediate.
[llvm/msp430.git] / test / FrontendC / 2008-03-05-syncPtr.c
blob03aedab9524ec46932fd1ec6b0ce842f083c0ee4
1 // RUN: %llvmgcc %s -S -emit-llvm -o - | grep llvm.atomic
2 // XFAIL: sparc-sun-solaris2|arm|ia64
3 // Feature currently implemented only for x86, alpha, powerpc.
5 int* foo(int** a, int* b, int* c) {
6 return __sync_val_compare_and_swap (a, b, c);
9 int foo2(int** a, int* b, int* c) {
10 return __sync_bool_compare_and_swap (a, b, c);
13 int* foo3(int** a, int b) {
14 return __sync_fetch_and_add (a, b);
17 int* foo4(int** a, int b) {
18 return __sync_fetch_and_sub (a, b);
21 int* foo5(int** a, int* b) {
22 return __sync_lock_test_and_set (a, b);
25 int* foo6(int** a, int*** b) {
26 return __sync_lock_test_and_set (a, b);