diff options
author | Dale Johannesen <dalej@apple.com> | 2008-08-19 18:47:28 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2008-08-19 18:47:28 +0000 |
commit | d20e44562b9caf06df0468b239773aa18e0f688a (patch) | |
tree | 5b90b01ba67a591dbae26ebc89f9792f1e7e890d /test | |
parent | 294a1c6fc36efd86317f569659dc1e041827259a (diff) | |
download | external_llvm-d20e44562b9caf06df0468b239773aa18e0f688a.zip external_llvm-d20e44562b9caf06df0468b239773aa18e0f688a.tar.gz external_llvm-d20e44562b9caf06df0468b239773aa18e0f688a.tar.bz2 |
Add support for 8 and 16 bit forms of __sync
builtins on X86.
Change "lock" instructions to be on a separate line.
This is needed to work around a bug in the Darwin
assembler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54999 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/atomic_op.ll | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/CodeGen/X86/atomic_op.ll b/test/CodeGen/X86/atomic_op.ll index a17f028..6871a08 100644 --- a/test/CodeGen/X86/atomic_op.ll +++ b/test/CodeGen/X86/atomic_op.ll @@ -1,6 +1,7 @@ ; RUN: llvm-as < %s | llc -march=x86 -o %t1 -f -; RUN: grep "lock xaddl" %t1 | count 4 -; RUN: grep "lock cmpxchgl" %t1 | count 13 +; RUN: grep "lock" %t1 | count 17 +; RUN: grep "xaddl" %t1 | count 4 +; RUN: grep "cmpxchgl" %t1 | count 13 ; RUN: grep "xchgl" %t1 | count 14 ; RUN: grep "cmova" %t1 | count 2 ; RUN: grep "cmovb" %t1 | count 2 |