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

Unified Diff: tests_lit/llvm2ice_tests/phi.ll

Issue 927433002: Convert a few lit tests that use "lc2i | llvm-mc | llvm-objdump" to use p2i. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: xx Created 5 years, 10 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/nacl-atomic-intrinsics.ll ('k') | tests_lit/llvm2ice_tests/struct-arith.pnacl.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests_lit/llvm2ice_tests/phi.ll
diff --git a/tests_lit/llvm2ice_tests/phi.ll b/tests_lit/llvm2ice_tests/phi.ll
index 0099fed742a4eec70426ed7709df758d48deba6f..e25c6271db624b63b515d4b65867554fa2aee95b 100644
--- a/tests_lit/llvm2ice_tests/phi.ll
+++ b/tests_lit/llvm2ice_tests/phi.ll
@@ -2,9 +2,7 @@
; it tests that it does the right thing when it tries to enable
; compare/branch fusing.
-; TODO(kschimpf) Find out why lc2i must be used.
-; REQUIRES: allow_llvm_ir_as_input
-; RUN: %lc2i -i %s --args -O2 --verbose none --phi-edge-split=0 \
+; RUN: %p2i -i %s --args -O2 --verbose none --phi-edge-split=0 \
; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \
; RUN: | llvm-objdump -d -symbolize -x86-asm-syntax=intel - | FileCheck %s
@@ -91,9 +89,10 @@ exit:
; CHECK-LABEL: testPhi3
; CHECK: push [[EBX:.*]]
; CHECK: mov {{.*}}, dword ptr [esp
-; CHECK: mov
-; CHECK: mov {{.*}}[[ADDR:.*1000]]
jvoung (off chromium) 2015/02/13 05:13:14 This used to form a more complex addressing mode [
Jim Stichnoth 2015/02/13 14:16:12 This is probably because p2i removes %__4 and %__6
jvoung (off chromium) 2015/02/13 16:40:08 Ah interesting -- make sense. Done.
+; CHECK: add [[REG1:.*]], 1000
+; CHECK: mov {{.*}}, [[REG1]]
+; CHECK: mov {{.*}}, dword ptr [[ADDR:.*]]
; CHECK: cmp {{.*}}, 0
; CHECK: jne
-; CHECK: mov {{.*}}[[ADDR]]
+; CHECK: mov dword ptr [[ADDR]],
; CHECK: pop [[EBX]]
« no previous file with comments | « tests_lit/llvm2ice_tests/nacl-atomic-intrinsics.ll ('k') | tests_lit/llvm2ice_tests/struct-arith.pnacl.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698