[llvm] r294764 - Autogenerate results for test/CodeGen/X86/pr14314.ll . NFC
Amaury Sechet via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 10 09:57:46 PST 2017
Author: deadalnix
Date: Fri Feb 10 11:57:46 2017
New Revision: 294764
URL: http://llvm.org/viewvc/llvm-project?rev=294764&view=rev
Log:
Autogenerate results for test/CodeGen/X86/pr14314.ll . NFC
Modified:
llvm/trunk/test/CodeGen/X86/pr14314.ll
Modified: llvm/trunk/test/CodeGen/X86/pr14314.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/pr14314.ll?rev=294764&r1=294763&r2=294764&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/pr14314.ll (original)
+++ llvm/trunk/test/CodeGen/X86/pr14314.ll Fri Feb 10 11:57:46 2017
@@ -1,13 +1,34 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -mtriple=i386-pc-linux -mcpu=corei7 | FileCheck %s
define i64 @atomicSub(i64* %a, i64 %b) nounwind {
+; CHECK-LABEL: atomicSub:
+; CHECK: # BB#0: # %entry
+; CHECK-NEXT: pushl %ebp
+; CHECK-NEXT: pushl %ebx
+; CHECK-NEXT: pushl %edi
+; CHECK-NEXT: pushl %esi
+; CHECK-NEXT: movl {{[0-9]+}}(%esp), %esi
+; CHECK-NEXT: movl {{[0-9]+}}(%esp), %edi
+; CHECK-NEXT: movl {{[0-9]+}}(%esp), %ebp
+; CHECK-NEXT: movl (%ebp), %eax
+; CHECK-NEXT: movl 4(%ebp), %edx
+; CHECK-NEXT: .p2align 4, 0x90
+; CHECK-NEXT: .LBB0_1: # %atomicrmw.start
+; CHECK-NEXT: # =>This Inner Loop Header: Depth=1
+; CHECK-NEXT: movl %eax, %ebx
+; CHECK-NEXT: subl %edi, %ebx
+; CHECK-NEXT: movl %edx, %ecx
+; CHECK-NEXT: sbbl %esi, %ecx
+; CHECK-NEXT: lock cmpxchg8b (%ebp)
+; CHECK-NEXT: jne .LBB0_1
+; CHECK-NEXT: # BB#2: # %atomicrmw.end
+; CHECK-NEXT: popl %esi
+; CHECK-NEXT: popl %edi
+; CHECK-NEXT: popl %ebx
+; CHECK-NEXT: popl %ebp
+; CHECK-NEXT: retl
entry:
%0 = atomicrmw sub i64* %a, i64 %b seq_cst
ret i64 %0
-; CHECK: atomicSub
-; CHECK: movl %eax, %ebx
-; CHECK: subl {{%[a-z]+}}, %ebx
-; CHECK: movl %edx, %ecx
-; CHECK: sbbl {{%[a-z]+}}, %ecx
-; CHECK: ret
}
More information about the llvm-commits
mailing list