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

Unified Diff: tests_lit/llvm2ice_tests/8bit.pnacl.ll

Issue 2478113003: [SubZero] Utilize instructions with immediate operands (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addressed review comments Created 4 years, 1 month 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/assembler/mips32/encoding_test_arith.ll ('k') | tests_lit/llvm2ice_tests/adv-switch-opt.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests_lit/llvm2ice_tests/8bit.pnacl.ll
diff --git a/tests_lit/llvm2ice_tests/8bit.pnacl.ll b/tests_lit/llvm2ice_tests/8bit.pnacl.ll
index d73dc40f11a83275b6bb8c78b8682719553d5952..fcc939f879cc5ad08f40f46ca39f56464ca7fcaf 100644
--- a/tests_lit/llvm2ice_tests/8bit.pnacl.ll
+++ b/tests_lit/llvm2ice_tests/8bit.pnacl.ll
@@ -49,8 +49,7 @@ entry:
; CHECK-LABEL: add8BitConst
; CHECK: add {{[abcd]l}}
; MIPS32-LABEL: add8BitConst
-; MIPS32: li
-; MIPS32: addu
+; MIPS32: addiu
; MIPS32: andi {{.*}},0xff
; MIPS32: move
; MIPS32: jr
@@ -83,8 +82,7 @@ entry:
; CHECK-LABEL: sub8BitConst
; CHECK: sub {{[abcd]l}}
; MIPS32-LABEL: sub8BitConst
-; MIPS32: li
-; MIPS32: subu
+; MIPS32: addiu {{.*}},-123
; MIPS32: andi {{.*}},0xff
; MIPS32: move
; MIPS32: jr
@@ -306,8 +304,7 @@ entry:
; CHECK-LABEL: shl8BitConst
; CHECK: shl {{[abcd]l|BYTE PTR}},0x6
; MIPS32-LABEL: shl8BitConst
-; MIPS32: li
-; MIPS32: sllv
+; MIPS32: sll
; MIPS32: andi {{.*}},0xff
; MIPS32: move
; MIPS32: jr
@@ -340,8 +337,7 @@ entry:
; CHECK-LABEL: lshr8BitConst
; CHECK: shr {{[abcd]l|BYTE PTR}},0x6
; MIPS32-LABEL: lshr8BitConst
-; MIPS32: li
-; MIPS32: srlv
+; MIPS32: srl
; MIPS32: andi {{.*}},0xff
; MIPS32: move
; MIPS32: jr
@@ -374,8 +370,7 @@ entry:
; CHECK-LABEL: ashr8BitConst
; CHECK: sar {{[abcd]l|BYTE PTR}},0x6
; MIPS32-LABEL: ashr8BitConst
-; MIPS32: li
-; MIPS32: srav
+; MIPS32: sra
; MIPS32: andi {{.*}},0xff
; MIPS32: move
; MIPS32: jr
@@ -577,8 +572,7 @@ entry:
; CHECK: mov {{[a-d]l}},BYTE PTR
; MIPS32-LABEL: load_i8
; MIPS32: lb
-; MIPS32: li
-; MIPS32: subu
+; MIPS32: addiu {{.*}},0
; MIPS32: andi {{.*}},0xff
; MIPS32: move
; MIPS32: jr
@@ -598,8 +592,7 @@ entry:
; MIPS32: lui
; MIPS32: addiu
; MIPS32: lb
-; MIPS32: li
-; MIPS32: subu
+; MIPS32: addiu {{.*}},0
; MIPS32: andi {{.*}},0xff
; MIPS32: jr
; MIPS32: nop
« no previous file with comments | « tests_lit/assembler/mips32/encoding_test_arith.ll ('k') | tests_lit/llvm2ice_tests/adv-switch-opt.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698