[llvm] r358210 - [X86] Pre-commit i64 volatile test case for D60156. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 11 11:40:08 PDT 2019


Author: ctopper
Date: Thu Apr 11 11:40:08 2019
New Revision: 358210

URL: http://llvm.org/viewvc/llvm-project?rev=358210&view=rev
Log:
[X86] Pre-commit i64 volatile test case for D60156. NFC

Modified:
    llvm/trunk/test/CodeGen/X86/atomic-load-store-wide.ll

Modified: llvm/trunk/test/CodeGen/X86/atomic-load-store-wide.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/atomic-load-store-wide.ll?rev=358210&r1=358209&r2=358210&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/atomic-load-store-wide.ll (original)
+++ llvm/trunk/test/CodeGen/X86/atomic-load-store-wide.ll Thu Apr 11 11:40:08 2019
@@ -90,3 +90,35 @@ define i64 @test3(i64* %ptr) noimplicitf
   %val = load atomic i64, i64* %ptr seq_cst, align 8
   ret i64 %val
 }
+
+define i64 @test4(i64* %ptr) {
+; SSE42-LABEL: test4:
+; SSE42:       # %bb.0:
+; SSE42-NEXT:    movl {{[0-9]+}}(%esp), %eax
+; SSE42-NEXT:    movq {{.*#+}} xmm0 = mem[0],zero
+; SSE42-NEXT:    movd %xmm0, %eax
+; SSE42-NEXT:    pextrd $1, %xmm0, %edx
+; SSE42-NEXT:    retl
+;
+; NOSSE-LABEL: test4:
+; NOSSE:       # %bb.0:
+; NOSSE-NEXT:    pushl %ebx
+; NOSSE-NEXT:    .cfi_def_cfa_offset 8
+; NOSSE-NEXT:    pushl %esi
+; NOSSE-NEXT:    .cfi_def_cfa_offset 12
+; NOSSE-NEXT:    .cfi_offset %esi, -12
+; NOSSE-NEXT:    .cfi_offset %ebx, -8
+; NOSSE-NEXT:    movl {{[0-9]+}}(%esp), %esi
+; NOSSE-NEXT:    xorl %eax, %eax
+; NOSSE-NEXT:    xorl %edx, %edx
+; NOSSE-NEXT:    xorl %ecx, %ecx
+; NOSSE-NEXT:    xorl %ebx, %ebx
+; NOSSE-NEXT:    lock cmpxchg8b (%esi)
+; NOSSE-NEXT:    popl %esi
+; NOSSE-NEXT:    .cfi_def_cfa_offset 8
+; NOSSE-NEXT:    popl %ebx
+; NOSSE-NEXT:    .cfi_def_cfa_offset 4
+; NOSSE-NEXT:    retl
+  %val = load atomic volatile i64, i64* %ptr seq_cst, align 8
+  ret i64 %val
+}




More information about the llvm-commits mailing list