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

Unified Diff: tests_lit/llvm2ice_tests/load.ll

Issue 2301303003: [SubZero] Implement load and store for MIPS (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 3 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
Index: tests_lit/llvm2ice_tests/load.ll
diff --git a/tests_lit/llvm2ice_tests/load.ll b/tests_lit/llvm2ice_tests/load.ll
index 33520ab3679adc1f3fefc6887e99768c488d60c4..21d2c87a4ba749dce1867a8f23f5200514038010 100644
--- a/tests_lit/llvm2ice_tests/load.ll
+++ b/tests_lit/llvm2ice_tests/load.ll
@@ -4,6 +4,13 @@
; RUN: %p2i -i %s --args --verbose inst -threads=0 | FileCheck %s
+; RUN: %if --need=target_MIPS32 --need=allow_dump \
+; RUN: --command %p2i --filetype=asm --assemble \
+; RUN: --disassemble --target mips32 -i %s --args -Om1 --skip-unimplemented \
+; RUN: -allow-externally-defined-symbols \
+; RUN: | %if --need=target_MIPS32 --need=allow_dump \
+; RUN: --command FileCheck --check-prefix MIPS32 %s
+
define internal void @load_i64(i32 %addr_arg) {
entry:
%__1 = inttoptr i32 %addr_arg to i64*
@@ -16,6 +23,10 @@ entry:
; CHECK-NEXT: ret void
}
+; MIPS32-LABEL: load_i64
+; MIPS32: lw {{.*}},0({{.*}})
+; MIPS32-NEXT: lw {{.*}},4({{.*}})
+
define internal void @load_i32(i32 %addr_arg) {
entry:
%__1 = inttoptr i32 %addr_arg to i32*
@@ -28,6 +39,9 @@ entry:
; CHECK-NEXT: ret void
}
+; MIPS32-LABEL: load_i32
+; MIPS32: lw {{.*}},0({{.*}})
+
define internal void @load_i16(i32 %addr_arg) {
entry:
%__1 = inttoptr i32 %addr_arg to i16*
@@ -40,6 +54,9 @@ entry:
; CHECK-NEXT: ret void
}
+; MIPS32-LABEL: load_i16
+; MIPS32: lh {{.*}},0({{.*}})
+
define internal void @load_i8(i32 %addr_arg) {
entry:
%__1 = inttoptr i32 %addr_arg to i8*
@@ -51,3 +68,6 @@ entry:
; CHECK-NEXT: %iv = load i8, i8* %addr_arg, align 1
; CHECK-NEXT: ret void
}
+
+; MIPS32-LABEL: load_i8
+; MIPS32: lb {{.*}},0({{.*}})

Powered by Google App Engine
This is Rietveld 408576698