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

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

Issue 2368343003: Subzero, MIPS32: Intrinsic call Bswap for i16, i32 and i64 (Closed)
Patch Set: Addressing review comments 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 2feb98b8aefade5f53791e78e1c6f0c12d6c8590..050fc4d5def38cd6d90b3fc665db47daf241d96b 100644
--- a/tests_lit/llvm2ice_tests/nacl-other-intrinsics.ll
+++ b/tests_lit/llvm2ice_tests/nacl-other-intrinsics.ll
@@ -353,6 +353,14 @@ entry:
; ARM32-LABEL: test_bswap_16
; ARM32: rev
; ARM32: lsr {{.*}} #16
+; MIPS32-LABEL: test_bswap_16
+; MIPS32: sll {{.*}},0x8
+; MIPS32: lui {{.*}},0xff
+; MIPS32: and
+; MIPS32: sll {{.*}},0x18
+; MIPS32: or
+; MIPS32: srl {{.*}},0x10
+; MIPS32: andi {{.*}},0xffff
define internal i32 @test_bswap_32(i32 %x) {
entry:
@@ -363,6 +371,17 @@ entry:
; CHECK: bswap e{{.*}}
; ARM32-LABEL: test_bswap_32
; ARM32: rev
+; MIPS32-LABEL: test_bswap_32
+; MIPS32: srl {{.*}},0x18
+; MIPS32: srl {{.*}},0x8
+; MIPS32: andi {{.*}},0xff00
+; MIPS32: or
+; MIPS32: sll {{.*}},0x8
+; MIPS32: lui {{.*}},0xff
+; MIPS32: and
+; MIPS32: sll {{.*}},0x18
+; MIPS32: or
+; MIPS32: or
define internal i64 @test_bswap_64(i64 %x) {
entry:
@@ -375,6 +394,26 @@ entry:
; ARM32-LABEL: test_bswap_64
; ARM32: rev
; ARM32: rev
+; MIPS32-LABEL: test_bswap_64
+; MIPS32: sll {{.*}},0x8
+; MIPS32: srl {{.*}},0x18
+; MIPS32: srl {{.*}},0x8
+; MIPS32: andi {{.*}},0xff00
+; MIPS32: lui {{.*}},0xff
+; MIPS32: or
+; MIPS32: and
+; MIPS32: sll {{.*}},0x18
+; MIPS32: or
+; MIPS32: srl {{.*}},0x18
+; MIPS32: srl {{.*}},0x8
+; MIPS32: andi {{.*}},0xff00
+; MIPS32: or
+; MIPS32: or
+; MIPS32: sll {{.*}},0x8
+; MIPS32: and
+; MIPS32: sll {{.*}},0x18
+; MIPS32: or
+; MIPS32: or
define internal i64 @test_bswap_64_undef() {
entry:
@@ -387,6 +426,26 @@ entry:
; ARM32-LABEL: test_bswap_64
; ARM32: rev
; ARM32: rev
+; MIPS32-LABEL: test_bswap_64_undef
+; MIPS32: sll {{.*}},0x8
+; MIPS32: srl {{.*}},0x18
+; MIPS32: srl {{.*}},0x8
+; MIPS32: andi {{.*}},0xff00
+; MIPS32: lui {{.*}},0xff
+; MIPS32: or
+; MIPS32: and
+; MIPS32: sll {{.*}},0x18
+; MIPS32: or
+; MIPS32: srl {{.*}},0x18
+; MIPS32: srl {{.*}},0x8
+; MIPS32: andi {{.*}},0xff00
+; MIPS32: or
+; MIPS32: or
+; MIPS32: sll {{.*}},0x8
+; MIPS32: and
+; MIPS32: sll {{.*}},0x18
+; MIPS32: or
+; MIPS32: or
define internal i32 @test_ctlz_32(i32 %x) {
entry:
« src/IceTargetLoweringMIPS32.cpp ('K') | « tests_lit/assembler/mips32/encoding_intrinsics.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698