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

Unified Diff: tests_lit/llvm2ice_tests/nacl-other-intrinsics.ll

Issue 2364093002: Subzero, MIPS32: Intrinsic calls Ctlz and Cttz for i64 (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Bitcast added 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/nacl-other-intrinsics.ll
diff --git a/tests_lit/llvm2ice_tests/nacl-other-intrinsics.ll b/tests_lit/llvm2ice_tests/nacl-other-intrinsics.ll
index 1aaec28da0038c04329a04e342ce98902c71dbe7..2feb98b8aefade5f53791e78e1c6f0c12d6c8590 100644
--- a/tests_lit/llvm2ice_tests/nacl-other-intrinsics.ll
+++ b/tests_lit/llvm2ice_tests/nacl-other-intrinsics.ll
@@ -418,6 +418,8 @@ entry:
; CHECK: bsr e{{.*}},{{.*}}e{{.*}}
; ARM32-LABEL: test_ctlz_32_const
; ARM32: clz
+; MIPS32-LABEL: test_ctlz_32_const
+; MIPS32: clz
define internal i32 @test_ctlz_32_ignored(i32 %x) {
entry:
@@ -450,6 +452,12 @@ entry:
; ARM32: add {{.*}}, #32
; ARM32: clzne
; ARM32: mov {{.*}}, #0
+; MIPS32-LABEL: test_ctlz_64
+; MIPS32: clz
+; MIPS32: clz
+; MIPS32: addiu
+; MIPS32: movn
+; MIPS32: addiu
define internal i32 @test_ctlz_64_const(i64 %x) {
entry:
@@ -463,6 +471,12 @@ entry:
; ARM32-LABEL: test_ctlz_64
; ARM32: clz
; ARM32: clzne
+; MIPS32-LABEL: test_ctlz_64_const
+; MIPS32: clz
+; MIPS32: clz
+; MIPS32: addiu
+; MIPS32: movn
+; MIPS32: addiu
define internal i32 @test_ctlz_64_ignored(i64 %x) {
entry:
@@ -514,6 +528,19 @@ entry:
; ARM32: add {{.*}}, #32
; ARM32: clzne
; ARM32: mov {{.*}}, #0
+; MIPS32-LABEL: test_cttz_64
+; MIPS32: addiu
+; MIPS32: nor
+; MIPS32: and
+; MIPS32: clz
+; MIPS32: li
+; MIPS32: subu
+; MIPS32: addiu
+; MIPS32: nor
+; MIPS32: and
+; MIPS32: clz
+; MIPS32: li
+; MIPS32: subu
define internal i32 @test_popcount_32(i32 %x) {
entry:

Powered by Google App Engine
This is Rietveld 408576698