Index: tests_lit/llvm2ice_tests/select-opt.ll |
diff --git a/tests_lit/llvm2ice_tests/select-opt.ll b/tests_lit/llvm2ice_tests/select-opt.ll |
index aa2c4d9aa5d9f861ccac2a9fa9bb71e5b78d1659..1c5e68b3d0a6edc1bae87d5e5ed0ea4bcbf13033 100644 |
--- a/tests_lit/llvm2ice_tests/select-opt.ll |
+++ b/tests_lit/llvm2ice_tests/select-opt.ll |
@@ -23,6 +23,13 @@ |
; RUN: | %if --need=target_ARM32 --need=allow_dump \ |
; RUN: --command FileCheck --check-prefix ARM32 --check-prefix ARM32-OM1 %s |
+; RUN: %if --need=target_MIPS32 --need=allow_dump \ |
+; RUN: --command %p2i --filetype=asm --assemble \ |
+; RUN: --disassemble --target mips32 -i %s --args -Om1 \ |
+; RUN: -allow-externally-defined-symbols -skip-unimplemented \ |
+; RUN: | %if --need=target_MIPS32 --need=allow_dump \ |
+; RUN: --command FileCheck --check-prefix MIPS32 %s |
+ |
define internal void @testSelect(i32 %a, i32 %b) { |
entry: |
%cmp = icmp slt i32 %a, %b |
@@ -61,6 +68,10 @@ declare void @useInt(i32 %x) |
; ARM32: bl {{.*}} useInt |
; ARM32: bl {{.*}} useInt |
; ARM32: bx lr |
+; MIPS32-LABEL: testSelect |
+; MIPS32: slt {{.*}} |
+; MIPS32: movn {{.*}} |
+; MIPS32: addiu {{.*}} |
; Check for valid addressing mode in the cmp instruction when the |
; operand is an immediate. |
@@ -73,6 +84,9 @@ entry: |
; CHECK-NOT: cmp 0x{{[0-9a-f]+}}, |
; ARM32-LABEL: testSelectImm32 |
; ARM32-NOT: cmp #{{.*}}, |
+; MIPS32-LABEL: testSelectImm32 |
+; MIPS32: movn {{.*}} |
+; MIPS32: addiu {{.*}} |
; Check for valid addressing mode in the cmp instruction when the |
; operand is an immediate. There is a different x86-32 lowering |
@@ -86,3 +100,4 @@ entry: |
; CHECK-NOT: cmp 0x{{[0-9a-f]+}}, |
; ARM32-LABEL: testSelectImm64 |
; ARM32-NOT: cmp #{{.*}}, |
+; MIPS32-LABEL: testSelectImm64 |