[php-src] jit-arm64: Remove the unnecessary 'bvs' check for IS_NOT_IDENTICAL case
| From: | Hao Sun | Date: | Tue, 27 Apr 2021 09:39:32 +0000 |
| Subject: | [php-src] jit-arm64: Remove the unnecessary 'bvs' check for IS_NOT_IDENTICAL case | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-115867@lists.php.net to get a copy of this message | ||
Author: Hao Sun (shqking)
Date: 2021-04-27T09:39:04Z
Commit: https://github.com/php/php-src/commit/cb1e961a22b3bd2ac8b22f700944adb3fdb52ea1
Raw diff: https://github.com/php/php-src/commit/cb1e961a22b3bd2ac8b22f700944adb3fdb52ea1.diff
Remove the unnecessary 'bvs' check for IS_NOT_IDENTICAL case
This 'bvs' can be removed since the follow-up 'bne' also checks NaN.[1]
[1]
https://community.arm.com/developer/ip-products/processors/b/processors-ip-blog/posts/condition-codes-4-floating-point-comparisons-using-vfp
Change-Id: Ie67db499c6be39ae4b339db533f51dacaeab4e4c
Changed paths:
M ext/opcache/jit/zend_jit_arm64.dasc
Diff:
diff --git a/ext/opcache/jit/zend_jit_arm64.dasc b/ext/opcache/jit/zend_jit_arm64.dasc
index 572972b2ec1f..deb0fac77094 100644
--- a/ext/opcache/jit/zend_jit_arm64.dasc
+++ b/ext/opcache/jit/zend_jit_arm64.dasc
@@ -6178,8 +6178,7 @@ static int zend_jit_cmp_double_common(dasm_State **Dst, const zend_op *opline,
z
| NIY // beq &exit_addr
|1:
} else {
- | bvs => target_label
- | bne => target_label
+ | bne => target_label
}
break;
case ZEND_IS_SMALLER: