OLD | NEW |
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 |
OLD | NEW |