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

Side by Side 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 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 unified diff | Download patch
« no previous file with comments | « tests/math/set_rounding_mips.S ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2013 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 #define STORE_MASK $t7
8 #define JUMP_MASK $t6
9
10 .p2align 4 7 .p2align 4
11 .globl try_operations_with_snans 8 .globl try_operations_with_snans
12 try_operations_with_snans: 9 try_operations_with_snans:
13 addiu $sp, $sp, -8 10 addiu $sp, $sp, -8
14 and $sp, $sp, STORE_MASK 11 li $v0, 0x7fc00000
15 li $v0, 0x7fc00000 12 sw $v0, 0($sp)
16 sw $v0, 0($sp) 13 lwc1 $f1, 0($sp)
17 14 lwc1 $f0, 0($sp)
18 lwc1 $f1, 0($sp)
19 lwc1 $f0, 0($sp)
20 add.s $f2, $f1, $f0 15 add.s $f2, $f1, $f0
21 sub.s $f2, $f1, $f0 16 sub.s $f2, $f1, $f0
22
23 mul.s $f2, $f1, $f0 17 mul.s $f2, $f1, $f0
24 div.s $f2, $f1, $f0 18 div.s $f2, $f1, $f0
25 addiu $sp, $sp, 8 19 addiu $sp, $sp, 8
26 and $sp, $sp, STORE_MASK 20 jr $ra
27
28 and $ra, $ra, JUMP_MASK
29 jr $ra
30 nop 21 nop
OLDNEW
« 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