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

Unified Diff: tests_lit/llvm2ice_tests/callindirect.pnacl.ll

Issue 2448193008: Subzero, MIPS32: Enable MIPS support in lit tests (Closed)
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/llvm2ice_tests/adv-switch-opt.ll ('k') | tests_lit/llvm2ice_tests/commutativity.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests_lit/llvm2ice_tests/callindirect.pnacl.ll
diff --git a/tests_lit/llvm2ice_tests/callindirect.pnacl.ll b/tests_lit/llvm2ice_tests/callindirect.pnacl.ll
index 2329b87ebed379bddc1339ec4f2eb03bf0a6e346..fded7f47083a2bb9fcbaf2f05444106c04a912f8 100644
--- a/tests_lit/llvm2ice_tests/callindirect.pnacl.ll
+++ b/tests_lit/llvm2ice_tests/callindirect.pnacl.ll
@@ -35,6 +35,12 @@
; RUN: | %if --need=target_ARM32_dump \
; RUN: --command FileCheck --check-prefix ARM32 %s
+; RUN: %if --need=target_MIPS32 --need=allow_dump \
+; RUN: --command %p2i --filetype=asm --assemble --disassemble --target \
+; RUN: mips32 -i %s --args -O2 -allow-externally-defined-symbols \
+; RUN: | %if --need=target_MIPS32 --need=allow_dump \
+; RUN: --command FileCheck --check-prefix MIPS32 %s
+
@__init_array_start = internal constant [0 x i8] zeroinitializer, align 4
@__fini_array_start = internal constant [0 x i8] zeroinitializer, align 4
@__tls_template_start = internal constant [0 x i8] zeroinitializer, align 8
@@ -98,6 +104,11 @@ entry:
; ARM32: blx [[REGISTER]]
; ARM32: blx [[REGISTER]]
+; MIPS32-LABEL: CallIndirect
+; MIPS32: jalr [[REGISTER:.*]]
+; MIPS32: jalr [[REGISTER]]
+; MIPS32: jalr [[REGISTER]]
+; MIPS32: jalr [[REGISTER]]
@fp_v = internal global [4 x i8] zeroinitializer, align 4
@@ -150,6 +161,12 @@ entry:
; ARM32: blx [[REGISTER]]
; ARM32: blx [[REGISTER]]
+; MIPS32-LABEL: CallIndirectGlobal
+; MIPS32: jalr [[REGISTER:.*]]
+; MIPS32: jalr [[REGISTER]]
+; MIPS32: jalr [[REGISTER]]
+; MIPS32: jalr [[REGISTER]]
+
; Calling an absolute address is used for non-IRT PNaCl pexes to directly
; access syscall trampolines. This is not really an indirect call, but
; there is a cast from int to pointer first.
« no previous file with comments | « tests_lit/llvm2ice_tests/adv-switch-opt.ll ('k') | tests_lit/llvm2ice_tests/commutativity.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698