diff options
Diffstat (limited to 'test/CodeGen/X86/atomic16.ll')
| -rw-r--r-- | test/CodeGen/X86/atomic16.ll | 56 |
1 files changed, 32 insertions, 24 deletions
diff --git a/test/CodeGen/X86/atomic16.ll b/test/CodeGen/X86/atomic16.ll index f6892de43d89..90716cc3984f 100644 --- a/test/CodeGen/X86/atomic16.ll +++ b/test/CodeGen/X86/atomic16.ll @@ -154,17 +154,19 @@ define void @atomic_fetch_nand16(i16 %x) nounwind { } define void @atomic_fetch_max16(i16 %x) nounwind { +; X64-LABEL: atomic_fetch_max16 +; X32-LABEL: atomic_fetch_max16 %t1 = atomicrmw max i16* @sc16, i16 %x acquire -; X64: movswl -; X64: movswl -; X64: subl +; X64: movw +; X64: movw +; X64: subw ; X64: cmov ; X64: lock ; X64: cmpxchgw -; X32: movswl -; X32: movswl -; X32: subl +; X32: movw +; X32: movw +; X32: subw ; X32: cmov ; X32: lock ; X32: cmpxchgw @@ -174,17 +176,19 @@ define void @atomic_fetch_max16(i16 %x) nounwind { } define void @atomic_fetch_min16(i16 %x) nounwind { +; X64-LABEL: atomic_fetch_min16 +; X32-LABEL: atomic_fetch_min16 %t1 = atomicrmw min i16* @sc16, i16 %x acquire -; X64: movswl -; X64: movswl -; X64: subl +; X64: movw +; X64: movw +; X64: subw ; X64: cmov ; X64: lock ; X64: cmpxchgw -; X32: movswl -; X32: movswl -; X32: subl +; X32: movw +; X32: movw +; X32: subw ; X32: cmov ; X32: lock ; X32: cmpxchgw @@ -194,17 +198,19 @@ define void @atomic_fetch_min16(i16 %x) nounwind { } define void @atomic_fetch_umax16(i16 %x) nounwind { +; X64-LABEL: atomic_fetch_umax16 +; X32-LABEL: atomic_fetch_umax16 %t1 = atomicrmw umax i16* @sc16, i16 %x acquire -; X64: movzwl -; X64: movzwl -; X64: subl +; X64: movw +; X64: movw +; X64: subw ; X64: cmov ; X64: lock ; X64: cmpxchgw -; X32: movzwl -; X32: movzwl -; X32: subl +; X32: movw +; X32: movw +; X32: subw ; X32: cmov ; X32: lock ; X32: cmpxchgw @@ -214,17 +220,19 @@ define void @atomic_fetch_umax16(i16 %x) nounwind { } define void @atomic_fetch_umin16(i16 %x) nounwind { +; X64-LABEL: atomic_fetch_umin16 +; X32-LABEL: atomic_fetch_umin16 %t1 = atomicrmw umin i16* @sc16, i16 %x acquire -; X64: movzwl -; X64: movzwl -; X64: subl +; X64: movw +; X64: movw +; X64: subw ; X64: cmov ; X64: lock ; X64: cmpxchgw -; X32: movzwl -; X32: movzwl -; X32: subl +; X32: movw +; X32: movw +; X32: subw ; X32: cmov ; X32: lock ; X32: cmpxchgw |
