[llvm] r304291 - Regenerate xchg-nofold.ll expected results. NFC.

Amaury Sechet via llvm-commits llvm-commits at lists.llvm.org
Wed May 31 02:44:09 PDT 2017


Author: deadalnix
Date: Wed May 31 04:44:08 2017
New Revision: 304291

URL: http://llvm.org/viewvc/llvm-project?rev=304291&view=rev
Log:
Regenerate xchg-nofold.ll expected results. NFC.

Modified:
    llvm/trunk/test/CodeGen/X86/xchg-nofold.ll

Modified: llvm/trunk/test/CodeGen/X86/xchg-nofold.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/xchg-nofold.ll?rev=304291&r1=304290&r2=304291&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/xchg-nofold.ll (original)
+++ llvm/trunk/test/CodeGen/X86/xchg-nofold.ll Wed May 31 04:44:08 2017
@@ -1,3 +1,4 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
 ; RUN: llc -mtriple=x86_64-linux-gnu < %s | FileCheck %s
 
 %"struct.std::atomic" = type { %"struct.std::atomic_bool" }
@@ -6,6 +7,28 @@
 
 ; CHECK-LABEL: _Z3fooRSt6atomicIbEb
 define zeroext i1 @_Z3fooRSt6atomicIbEb(%"struct.std::atomic"* nocapture dereferenceable(1) %a, i1 returned zeroext %b) nounwind {
+; CHECK-LABEL: _Z3fooRSt6atomicIbEb:
+; CHECK:       # BB#0: # %entry
+; CHECK-NEXT:    movq %rdi, %rax
+; CHECK-NEXT:    shrq $3, %rax
+; CHECK-NEXT:    movb 2147450880(%rax), %al
+; CHECK-NEXT:    testb %al, %al
+; CHECK-NEXT:    je .LBB0_3
+; CHECK-NEXT:  # BB#1:
+; CHECK-NEXT:    movl %edi, %ecx
+; CHECK-NEXT:    andl $7, %ecx
+; CHECK-NEXT:    cmpb %al, %cl
+; CHECK-NEXT:    jge .LBB0_2
+; CHECK-NEXT:  .LBB0_3:
+; CHECK-NEXT:    movl %esi, %eax
+; CHECK-NEXT:    xchgb %al, (%rdi)
+; CHECK-NEXT:    movl %esi, %eax
+; CHECK-NEXT:    retq
+; CHECK-NEXT:  .LBB0_2:
+; CHECK-NEXT:    pushq %rax
+; CHECK-NEXT:    callq __asan_report_store1
+; CHECK-NEXT:    #APP
+; CHECK-NEXT:    #NO_APP
 entry:
   %frombool.i.i = zext i1 %b to i8
   %_M_i.i.i = getelementptr inbounds %"struct.std::atomic", %"struct.std::atomic"* %a, i64 0, i32 0, i32 0, i32 0
@@ -30,7 +53,6 @@ entry:
 
 ; <label>:11:                                     ; preds = %6, %entry
   store atomic i8 %frombool.i.i, i8* %_M_i.i.i seq_cst, align 1
-; CHECK: xchgb	%{{.*}}, (%{{.*}})
   ret i1 %b
 }
 




More information about the llvm-commits mailing list