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

Unified Diff: tests/math/test_snan_no_signal_mips.S

Issue 2521263002: [MIPS] Remove explicit masks from assembly code (Closed)
Patch Set: Changes per Mark's 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/math/set_rounding_mips.S ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/math/test_snan_no_signal_mips.S
diff --git a/tests/math/test_snan_no_signal_mips.S b/tests/math/test_snan_no_signal_mips.S
index 51b67eac1de83b65364c6805a7c3a543e4489fee..c7a9d583c04043b4416ab357ff87fb3ee1265f87 100644
--- a/tests/math/test_snan_no_signal_mips.S
+++ b/tests/math/test_snan_no_signal_mips.S
@@ -4,27 +4,18 @@
* found in the LICENSE file.
*/
-#define STORE_MASK $t7
-#define JUMP_MASK $t6
-
.p2align 4
.globl try_operations_with_snans
try_operations_with_snans:
addiu $sp, $sp, -8
- and $sp, $sp, STORE_MASK
- li $v0, 0x7fc00000
- sw $v0, 0($sp)
-
- lwc1 $f1, 0($sp)
- lwc1 $f0, 0($sp)
+ li $v0, 0x7fc00000
+ sw $v0, 0($sp)
+ lwc1 $f1, 0($sp)
+ lwc1 $f0, 0($sp)
add.s $f2, $f1, $f0
sub.s $f2, $f1, $f0
-
mul.s $f2, $f1, $f0
div.s $f2, $f1, $f0
addiu $sp, $sp, 8
- and $sp, $sp, STORE_MASK
-
- and $ra, $ra, JUMP_MASK
- jr $ra
+ jr $ra
nop
« no previous file with comments | « tests/math/set_rounding_mips.S ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698