summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/atomic16.ll
diff options
context:
space:
mode:
authorMichael Liao <michael.liao@intel.com>2012-09-22 21:07:59 +0000
committerMichael Liao <michael.liao@intel.com>2012-09-22 21:07:59 +0000
commit4d6b84028ab3b135308296d61a8acfc3fd0b1fb1 (patch)
treed79ce01cf721d3d2f7614af48759b18250446376 /test/CodeGen/X86/atomic16.ll
parentd15e2a08578fe7028196037d9a35c834f0e0b7f8 (diff)
downloadllvm-4d6b84028ab3b135308296d61a8acfc3fd0b1fb1.tar.gz
llvm-4d6b84028ab3b135308296d61a8acfc3fd0b1fb1.tar.bz2
llvm-4d6b84028ab3b135308296d61a8acfc3fd0b1fb1.tar.xz
Enhance test case of atomic16 to verify inst encoding fixed in r164453.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164465 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/atomic16.ll')
-rw-r--r--test/CodeGen/X86/atomic16.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/X86/atomic16.ll b/test/CodeGen/X86/atomic16.ll
index e276d47e34..73191a1e95 100644
--- a/test/CodeGen/X86/atomic16.ll
+++ b/test/CodeGen/X86/atomic16.ll
@@ -1,5 +1,11 @@
; RUN: llc < %s -O0 -march=x86-64 -mcpu=corei7 | FileCheck %s --check-prefix X64
; RUN: llc < %s -O0 -march=x86 -mcpu=corei7 | FileCheck %s --check-prefix X32
+; RUN: llc < %s -O0 -mtriple=x86_64-linux-unknonw-unknown -mcpu=corei7 -show-mc-encoding | grep xaddw | grep 0x66
+; RUN: llc < %s -O0 -mtriple=x86_64-linux-unknonw-unknown -mcpu=corei7 -show-mc-encoding | grep addw | grep 0x66
+; RUN: llc < %s -O0 -mtriple=x86_64-linux-unknonw-unknown -mcpu=corei7 -show-mc-encoding | grep subw | grep 0x66
+; RUN: llc < %s -O0 -mtriple=x86_64-linux-unknonw-unknown -mcpu=corei7 -show-mc-encoding | grep xorw | grep 0x66
+; RUN: llc < %s -O0 -mtriple=x86_64-linux-unknonw-unknown -mcpu=corei7 -show-mc-encoding | grep orw | grep 0x66
+; RUN: llc < %s -O0 -mtriple=x86_64-linux-unknonw-unknown -mcpu=corei7 -show-mc-encoding | grep andw | grep 0x66
@sc16 = external global i16