forked from OSchip/llvm-project
parent
c5903c935c
commit
c133015975
|
@ -1,9 +1,20 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
||||
;RUN: llc < %s -mtriple=i686-- | FileCheck %s
|
||||
|
||||
define void @foo(i32 inreg %dns) minsize {
|
||||
; CHECK-LABEL: foo:
|
||||
; CHECK: # %bb.0: # %entry
|
||||
; CHECK-NEXT: xorl %ecx, %ecx
|
||||
; CHECK-NEXT: decl %ecx
|
||||
; CHECK-NEXT: .LBB0_1: # %for.body
|
||||
; CHECK-NEXT: # =>This Inner Loop Header: Depth=1
|
||||
; CHECK-NEXT: movzwl %cx, %edx
|
||||
; CHECK-NEXT: decl %ecx
|
||||
; CHECK-NEXT: cmpl %eax, %edx
|
||||
; CHECK-NEXT: jl .LBB0_1
|
||||
; CHECK-NEXT: # %bb.2: # %for.end
|
||||
; CHECK-NEXT: retl
|
||||
entry:
|
||||
; CHECK-LABEL: foo
|
||||
; CHECK: dec
|
||||
br label %for.body
|
||||
|
||||
for.body:
|
||||
|
@ -18,9 +29,19 @@ for.end:
|
|||
}
|
||||
|
||||
define void @bar(i32 inreg %dns) minsize {
|
||||
; CHECK-LABEL: bar:
|
||||
; CHECK: # %bb.0: # %entry
|
||||
; CHECK-NEXT: xorl %ecx, %ecx
|
||||
; CHECK-NEXT: incl %ecx
|
||||
; CHECK-NEXT: .LBB1_1: # %for.body
|
||||
; CHECK-NEXT: # =>This Inner Loop Header: Depth=1
|
||||
; CHECK-NEXT: movzwl %cx, %edx
|
||||
; CHECK-NEXT: incl %ecx
|
||||
; CHECK-NEXT: cmpl %eax, %edx
|
||||
; CHECK-NEXT: jl .LBB1_1
|
||||
; CHECK-NEXT: # %bb.2: # %for.end
|
||||
; CHECK-NEXT: retl
|
||||
entry:
|
||||
; CHECK-LABEL: bar
|
||||
; CHECK: inc
|
||||
br label %for.body
|
||||
|
||||
for.body:
|
||||
|
|
Loading…
Reference in New Issue