summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorAmaury Sechet <deadalnix@gmail.com>2017-05-23 05:42:54 +0000
committerAmaury Sechet <deadalnix@gmail.com>2017-05-23 05:42:54 +0000
commitbeef4d7887474da4f6b864e0ca8b44a4f4b913ec (patch)
tree8aee681ba7f0cd58fa7d53f88b2b570e70e7a175 /llvm
parente4f15a2bf03c3f068113466aa1ed00fbcc572d83 (diff)
downloadbcm5719-llvm-beef4d7887474da4f6b864e0ca8b44a4f4b913ec.tar.gz
bcm5719-llvm-beef4d7887474da4f6b864e0ca8b44a4f4b913ec.zip
Update expected result for or-branch.ll . NFC
llvm-svn: 303606
Diffstat (limited to 'llvm')
-rw-r--r--llvm/test/CodeGen/X86/or-branch.ll66
1 files changed, 53 insertions, 13 deletions
diff --git a/llvm/test/CodeGen/X86/or-branch.ll b/llvm/test/CodeGen/X86/or-branch.ll
index 4899a0fc7e8..71d7746642e 100644
--- a/llvm/test/CodeGen/X86/or-branch.ll
+++ b/llvm/test/CodeGen/X86/or-branch.ll
@@ -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
OpenPOWER on IntegriCloud