Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(306)

Unified Diff: tests_lit/llvm2ice_tests/icmp-with-zero.ll

Issue 1407143002: Merge compares and branches (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Rebase Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests_lit/llvm2ice_tests/64bit.pnacl.ll ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests_lit/llvm2ice_tests/icmp-with-zero.ll
diff --git a/tests_lit/llvm2ice_tests/icmp-with-zero.ll b/tests_lit/llvm2ice_tests/icmp-with-zero.ll
index 107c608303d7e5070a1cf84e463cf800e3d82e00..1a1eaa86a96b1692c73aae8fb289162e76f31bfe 100644
--- a/tests_lit/llvm2ice_tests/icmp-with-zero.ll
+++ b/tests_lit/llvm2ice_tests/icmp-with-zero.ll
@@ -3,7 +3,7 @@
; RUN: %p2i --filetype=obj --disassemble -i %s --args -O2 \
; RUN: -allow-externally-defined-symbols | FileCheck %s
; RUN: %p2i --filetype=obj --disassemble -i %s --args -Om1 \
-; RUN: -allow-externally-defined-symbols | FileCheck %s
+; RUN: -allow-externally-defined-symbols | FileCheck --check-prefix=OPTM1 %s
define internal void @icmpEqZero64() {
entry:
@@ -21,7 +21,10 @@ if.end: ; preds = %if.then, %if.end
; lines actually runs the output through the assembler.
; CHECK-LABEL: icmpEqZero64
; CHECK: or
-; CHECK-NEXT: sete
+; CHECK-NOT: set
+; OPTM1-LABEL: icmpEqZero64
+; OPTM1: or
+; OPTM1-NEXT: sete
define internal void @icmpNeZero64() {
entry:
@@ -39,7 +42,10 @@ if.end: ; preds = %if.then, %if.end
; lines actually runs the output through the assembler.
; CHECK-LABEL: icmpNeZero64
; CHECK: or
-; CHECK-NEXT: setne
+; CHECK-NOT: set
+; OPTM1-LABEL: icmpNeZero64
+; OPTM1: or
+; OPTM1-NEXT: setne
define internal void @icmpSgeZero64() {
entry:
@@ -57,7 +63,10 @@ if.end: ; preds = %if.then, %if.end
; lines actually runs the output through the assembler.
; CHECK-LABEL: icmpSgeZero64
; CHECK: test eax,0x80000000
-; CHECK-NEXT: sete
+; CHECK-NOT: sete
+; OPTM1-LABEL: icmpSgeZero64
+; OPTM1: test eax,0x80000000
+; OPTM1-NEXT: sete
define internal void @icmpSltZero64() {
entry:
@@ -75,7 +84,10 @@ if.end: ; preds = %if.then, %if.end
; lines actually runs the output through the assembler.
; CHECK-LABEL: icmpSltZero64
; CHECK: test eax,0x80000000
-; CHECK-NEXT: setne
+; CHECK-NOT: setne
+; OPTM1-LABEL: icmpSltZero64
+; OPTM1: test eax,0x80000000
+; OPTM1-NEXT: setne
define internal void @icmpUltZero64() {
entry:
@@ -94,6 +106,9 @@ if.end: ; preds = %if.then, %if.end
; CHECK-LABEL: icmpUltZero64
; CHECK: mov [[RESULT:.*]],0x0
; CHECK-NEXT: cmp [[RESULT]],0x0
+; OPTM1-LABEL: icmpUltZero64
+; OPTM1: mov [[RESULT:.*]],0x0
+; OPTM1-NEXT: cmp [[RESULT]],0x0
define internal void @icmpUgeZero64() {
entry:
@@ -112,6 +127,9 @@ if.end: ; preds = %if.then, %if.end
; CHECK-LABEL: icmpUgeZero64
; CHECK: mov [[RESULT:.*]],0x1
; CHECK-NEXT: cmp [[RESULT]],0x0
+; OPTM1-LABEL: icmpUgeZero64
+; OPTM1: mov [[RESULT:.*]],0x1
+; OPTM1-NEXT: cmp [[RESULT]],0x0
define internal void @icmpUltZero32() {
entry:
@@ -131,6 +149,9 @@ if.end: ; preds = %if.then, %if.end
; CHECK-LABEL: icmpUltZero32
; CHECK: mov [[RESULT:.*]],0x0
; CHECK-NEXT: cmp [[RESULT]],0x0
+; OPTM1: icmpUltZero32
+; OPTM1 [[RESULT:.*]],0x0
+; OPTM1: cmp [[RESULT]],0x0
define internal void @icmpUgeZero32() {
entry:
@@ -150,6 +171,9 @@ if.end: ; preds = %if.then, %if.end
; CHECK-LABEL: icmpUgeZero32
; CHECK: mov [[RESULT:.*]],0x1
; CHECK-NEXT: cmp [[RESULT]],0x0
+; OPTM1-LABEL: icmpUgeZero32
+; OPTM1: mov [[RESULT:.*]],0x1
+; OPTM1-NEXT: cmp [[RESULT]],0x0
define internal void @icmpUltZero16() {
entry:
@@ -169,6 +193,9 @@ if.end: ; preds = %if.then, %if.end
; CHECK-LABEL: icmpUltZero16
; CHECK: mov [[RESULT:.*]],0x0
; CHECK-NEXT: cmp [[RESULT]],0x0
+; OPTM1-LABEL: icmpUltZero16
+; OPTM1: mov [[RESULT:.*]],0x0
+; OPTM1-NEXT: cmp [[RESULT]],0x0
define internal void @icmpUgeZero16() {
entry:
@@ -188,6 +215,9 @@ if.end: ; preds = %if.then, %if.end
; CHECK-LABEL: icmpUgeZero16
; CHECK: mov [[RESULT:.*]],0x1
; CHECK-NEXT: cmp [[RESULT]],0x0
+; OPTM1-LABEL: icmpUgeZero16
+; OPTM1: mov [[RESULT:.*]],0x1
+; OPTM1-NEXT: cmp [[RESULT]],0x0
define internal void @icmpUltZero8() {
entry:
@@ -207,6 +237,9 @@ if.end: ; preds = %if.then, %if.end
; CHECK-LABEL: icmpUltZero8
; CHECK: mov [[RESULT:.*]],0x0
; CHECK-NEXT: cmp [[RESULT]],0x0
+; OPTM1-LABEL: icmpUltZero8
+; OPTM1: mov [[RESULT:.*]],0x0
+; OPTM1-NEXT: cmp [[RESULT]],0x0
define internal void @icmpUgeZero8() {
entry:
@@ -226,6 +259,9 @@ if.end: ; preds = %if.then, %if.end
; CHECK-LABEL: icmpUgeZero8
; CHECK: mov [[RESULT:.*]],0x1
; CHECK-NEXT: cmp [[RESULT]],0x0
+; OPTM1-LABEL: icmpUgeZero8
+; OPTM1: mov [[RESULT:.*]],0x1
+; OPTM1-NEXT: cmp [[RESULT]],0x0
declare void @func()
declare void @use(i32)
« no previous file with comments | « tests_lit/llvm2ice_tests/64bit.pnacl.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698