diff options
| author | David Majnemer <david.majnemer@gmail.com> | 2013-10-18 14:49:59 +0000 |
|---|---|---|
| committer | David Majnemer <david.majnemer@gmail.com> | 2013-10-18 14:49:59 +0000 |
| commit | 2b3384523067e4dae2691de7dda12c3e125437d5 (patch) | |
| tree | e2399ad101377850dfb7723ca479475b1a8f5730 /llvm/test/CodeGen | |
| parent | a661b44a5d2036755e3818475f5f6ccd4e5a6b96 (diff) | |
| download | bcm5719-llvm-2b3384523067e4dae2691de7dda12c3e125437d5.tar.gz bcm5719-llvm-2b3384523067e4dae2691de7dda12c3e125437d5.zip | |
Test case for r192957
Forgot to 'svn add'
llvm-svn: 192978
Diffstat (limited to 'llvm/test/CodeGen')
| -rw-r--r-- | llvm/test/CodeGen/X86/nocx16.ll | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/nocx16.ll b/llvm/test/CodeGen/X86/nocx16.ll new file mode 100644 index 00000000000..cceaac47122 --- /dev/null +++ b/llvm/test/CodeGen/X86/nocx16.ll @@ -0,0 +1,21 @@ +; RUN: llc < %s -march=x86-64 -mcpu=corei7 -mattr=-cx16 | FileCheck %s +define void @test(i128* %a) nounwind { +entry: +; CHECK: __sync_val_compare_and_swap_16 + %0 = cmpxchg i128* %a, i128 1, i128 1 seq_cst +; CHECK: __sync_lock_test_and_set_16 + %1 = atomicrmw xchg i128* %a, i128 1 seq_cst +; CHECK: __sync_fetch_and_add_16 + %2 = atomicrmw add i128* %a, i128 1 seq_cst +; CHECK: __sync_fetch_and_sub_16 + %3 = atomicrmw sub i128* %a, i128 1 seq_cst +; CHECK: __sync_fetch_and_and_16 + %4 = atomicrmw and i128* %a, i128 1 seq_cst +; CHECK: __sync_fetch_and_nand_16 + %5 = atomicrmw nand i128* %a, i128 1 seq_cst +; CHECK: __sync_fetch_and_or_16 + %6 = atomicrmw or i128* %a, i128 1 seq_cst +; CHECK: __sync_fetch_and_xor_16 + %7 = atomicrmw xor i128* %a, i128 1 seq_cst + ret void +} |

