From: Sanjay Patel Date: Fri, 3 Mar 2017 16:34:35 +0000 (+0000) Subject: [x86] regenerate checks; NFC X-Git-Tag: android-x86-7.1-r4~19457 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e2ddb8b313c52f466e41c63479218282fa89ef97;p=android-x86%2Fexternal-llvm.git [x86] regenerate checks; NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296877 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/X86/add-of-carry.ll b/test/CodeGen/X86/add-of-carry.ll index 44b587af3aa..b9b494202a5 100644 --- a/test/CodeGen/X86/add-of-carry.ll +++ b/test/CodeGen/X86/add-of-carry.ll @@ -1,13 +1,15 @@ -; RUN: llc < %s -march=x86 | FileCheck %s +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py +; RUN: llc < %s -mtriple=i686-unknown-unknown | FileCheck %s + ; define i32 @test1(i32 %sum, i32 %x) nounwind readnone ssp { -entry: ; CHECK-LABEL: test1: -; CHECK: movl -; CHECK-NEXT: addl -; CHECK-NEXT: adcl $0 -; CHECK-NEXT: ret +; CHECK: # BB#0: +; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax +; CHECK-NEXT: addl {{[0-9]+}}(%esp), %eax +; CHECK-NEXT: adcl $0, %eax +; CHECK-NEXT: retl %add4 = add i32 %x, %sum %cmp = icmp ult i32 %add4, %x %inc = zext i1 %cmp to i32 @@ -16,14 +18,18 @@ entry: } ; + define i32 @test2(i32 %x, i32 %y, i32 %res) nounwind uwtable readnone ssp { -entry: +; CHECK-LABEL: test2: +; CHECK: # BB#0: +; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax +; CHECK-NEXT: movl {{[0-9]+}}(%esp), %ecx +; CHECK-NEXT: cmpl {{[0-9]+}}(%esp), %ecx +; CHECK-NEXT: sbbl $0, %eax +; CHECK-NEXT: retl %cmp = icmp ugt i32 %x, %y %dec = sext i1 %cmp to i32 %dec.res = add nsw i32 %dec, %res ret i32 %dec.res -; CHECK-LABEL: test2: -; CHECK: cmpl -; CHECK: sbbl -; CHECK: ret } +