forked from OSchip/llvm-project
Update expected result for or-branch.ll . NFC
llvm-svn: 303606
This commit is contained in:
parent
e4f15a2bf0
commit
beef4d7887
|
@ -1,16 +1,34 @@
|
|||
; RUN: llc < %s -mtriple=i386-unknown-unknown -jump-is-expensive=0 | FileCheck %s --check-prefix=JUMP2 --check-prefix=CHECK
|
||||
; RUN: llc < %s -mtriple=i386-unknown-unknown -jump-is-expensive=1 | FileCheck %s --check-prefix=JUMP1 --check-prefix=CHECK
|
||||
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
||||
; RUN: llc < %s -mtriple=i386-unknown-unknown -jump-is-expensive=0 | FileCheck %s --check-prefix=JUMP2
|
||||
; RUN: llc < %s -mtriple=i386-unknown-unknown -jump-is-expensive=1 | FileCheck %s --check-prefix=JUMP1
|
||||
|
||||
define void @foo(i32 %X, i32 %Y, i32 %Z) nounwind {
|
||||
; JUMP2-LABEL: foo:
|
||||
; JUMP2-DAG: jl
|
||||
; JUMP2-DAG: je
|
||||
; JUMP2: # BB#0: # %entry
|
||||
; JUMP2-NEXT: cmpl $5, {{[0-9]+}}(%esp)
|
||||
; JUMP2-NEXT: jl .LBB0_3
|
||||
; JUMP2-NEXT: # BB#1: # %entry
|
||||
; JUMP2-NEXT: movl {{[0-9]+}}(%esp), %eax
|
||||
; JUMP2-NEXT: testl %eax, %eax
|
||||
; JUMP2-NEXT: je .LBB0_3
|
||||
; JUMP2-NEXT: # BB#2: # %UnifiedReturnBlock
|
||||
; JUMP2-NEXT: retl
|
||||
; JUMP2-NEXT: .LBB0_3: # %cond_true
|
||||
; JUMP2-NEXT: jmp bar # TAILCALL
|
||||
;
|
||||
; JUMP1-LABEL: foo:
|
||||
; JUMP1-DAG: sete
|
||||
; JUMP1-DAG: setl
|
||||
; JUMP1: orb
|
||||
; JUMP1: jne
|
||||
; JUMP1: # BB#0: # %entry
|
||||
; JUMP1-NEXT: cmpl $0, {{[0-9]+}}(%esp)
|
||||
; JUMP1-NEXT: sete %al
|
||||
; JUMP1-NEXT: cmpl $5, {{[0-9]+}}(%esp)
|
||||
; JUMP1-NEXT: setl %cl
|
||||
; JUMP1-NEXT: orb %al, %cl
|
||||
; JUMP1-NEXT: cmpb $1, %cl
|
||||
; JUMP1-NEXT: jne .LBB0_1
|
||||
; JUMP1-NEXT: # BB#2: # %cond_true
|
||||
; JUMP1-NEXT: jmp bar # TAILCALL
|
||||
; JUMP1-NEXT: .LBB0_1: # %UnifiedReturnBlock
|
||||
; JUMP1-NEXT: retl
|
||||
entry:
|
||||
%tmp1 = icmp eq i32 %X, 0
|
||||
%tmp3 = icmp slt i32 %Y, 5
|
||||
|
@ -29,11 +47,33 @@ UnifiedReturnBlock:
|
|||
; regardless of whether they are expensive or not.
|
||||
|
||||
define void @unpredictable(i32 %X, i32 %Y, i32 %Z) nounwind {
|
||||
; CHECK-LABEL: unpredictable:
|
||||
; CHECK-DAG: sete
|
||||
; CHECK-DAG: setl
|
||||
; CHECK: orb
|
||||
; CHECK: jne
|
||||
; JUMP2-LABEL: unpredictable:
|
||||
; JUMP2: # BB#0: # %entry
|
||||
; JUMP2-NEXT: cmpl $0, {{[0-9]+}}(%esp)
|
||||
; JUMP2-NEXT: sete %al
|
||||
; JUMP2-NEXT: cmpl $5, {{[0-9]+}}(%esp)
|
||||
; JUMP2-NEXT: setl %cl
|
||||
; JUMP2-NEXT: orb %al, %cl
|
||||
; JUMP2-NEXT: cmpb $1, %cl
|
||||
; JUMP2-NEXT: jne .LBB1_1
|
||||
; JUMP2-NEXT: # BB#2: # %cond_true
|
||||
; JUMP2-NEXT: jmp bar # TAILCALL
|
||||
; JUMP2-NEXT: .LBB1_1: # %UnifiedReturnBlock
|
||||
; JUMP2-NEXT: retl
|
||||
;
|
||||
; JUMP1-LABEL: unpredictable:
|
||||
; JUMP1: # BB#0: # %entry
|
||||
; JUMP1-NEXT: cmpl $0, {{[0-9]+}}(%esp)
|
||||
; JUMP1-NEXT: sete %al
|
||||
; JUMP1-NEXT: cmpl $5, {{[0-9]+}}(%esp)
|
||||
; JUMP1-NEXT: setl %cl
|
||||
; JUMP1-NEXT: orb %al, %cl
|
||||
; JUMP1-NEXT: cmpb $1, %cl
|
||||
; JUMP1-NEXT: jne .LBB1_1
|
||||
; JUMP1-NEXT: # BB#2: # %cond_true
|
||||
; JUMP1-NEXT: jmp bar # TAILCALL
|
||||
; JUMP1-NEXT: .LBB1_1: # %UnifiedReturnBlock
|
||||
; JUMP1-NEXT: retl
|
||||
entry:
|
||||
%tmp1 = icmp eq i32 %X, 0
|
||||
%tmp3 = icmp slt i32 %Y, 5
|
||||
|
|
Loading…
Reference in New Issue