[x86] auto-generate complete checks; NFC

llvm-svn: 312503
This commit is contained in:
Sanjay Patel 2017-09-04 21:46:05 +00:00
parent 4e10b61d8f
commit 543f3fda83
1 changed files with 21 additions and 7 deletions

View File

@ -1,9 +1,21 @@
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mcpu=x86-64 | FileCheck %s
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s
define void @merge_store(i32* nocapture %a) {
; CHECK-LABEL: merge_store:
; CHECK: movq
; CHECK: movq
; CHECK: # BB#0: # %entry
; CHECK-NEXT: xorl %eax, %eax
; CHECK-NEXT: movabsq $4294967297, %rcx # imm = 0x100000001
; CHECK-NEXT: .p2align 4, 0x90
; CHECK-NEXT: .LBB0_1: # %for.body
; CHECK-NEXT: # =>This Inner Loop Header: Depth=1
; CHECK-NEXT: movq %rcx, (%rdi,%rax,4)
; CHECK-NEXT: movq %rcx, 8(%rdi,%rax,4)
; CHECK-NEXT: addq $4, %rax
; CHECK-NEXT: cmpl $1000, %eax # imm = 0x3E8
; CHECK-NEXT: jl .LBB0_1
; CHECK-NEXT: # BB#2: # %for.end
; CHECK-NEXT: retq
entry:
br label %for.body
@ -29,10 +41,12 @@ entry:
ret void
}
;; CHECK-LABEL: indexed-store-merge
;; CHECK: movl $0, 2(%rsi,%rdi)
;; CHECK: movb $0, (%rsi)
define void @indexed-store-merge(i64 %p, i8* %v) {
define void @indexed_store_merge(i64 %p, i8* %v) {
; CHECK-LABEL: indexed_store_merge:
; CHECK: # BB#0: # %entry
; CHECK-NEXT: movl $0, 2(%rsi,%rdi)
; CHECK-NEXT: movb $0, (%rsi)
; CHECK-NEXT: retq
entry:
%p2 = add nsw i64 %p, 2
%v2 = getelementptr i8, i8* %v, i64 %p2