[php-src] jit-arm64: Remove the TODO comments for DOUBLE CMP

From: Date: Mon, 26 Apr 2021 05:57:05 +0000
Subject: [php-src] jit-arm64: Remove the TODO comments for DOUBLE CMP
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-115801@lists.php.net to get a copy of this message
Author: Hao Sun (shqking) Date: 2021-04-26T05:56:33Z Commit: https://github.com/php/php-src/commit/34f6be80e6c6705ac8035871963281b2000deb05 Raw diff: https://github.com/php/php-src/commit/34f6be80e6c6705ac8035871963281b2000deb05.diff Remove the TODO comments for DOUBLE CMP As explained by Dmitry, 'ucomsd' in x86 sets 'p' flag, and it also always sets 'z' and 'c' flags. [1] Besides, remove one duplicate 'break'. [1]. https://mudongliang.github.io/x86/html/file_module_x86_id_316.html Change-Id: I767214c7ab8db31115801a3ae96b20320757899f 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 90d8c6ab06b4..3619453c58e2 100644 --- a/ext/opcache/jit/zend_jit_arm64.dasc +++ b/ext/opcache/jit/zend_jit_arm64.dasc @@ -6050,7 +6050,7 @@ static int zend_jit_cmp_double_common(dasm_State **Dst, const zend_op *opline, z if (exit_addr) { | NIY // tracing } else { - | bvs => target_label // TODO: why the NaN check is missing in x86? + | bvs => target_label | bls => target_label } } else { @@ -6066,7 +6066,7 @@ static int zend_jit_cmp_double_common(dasm_State **Dst, const zend_op *opline, z if (exit_addr) { | NIY // tracing } else { - | bvs => target_label // TODO: why the NaN check is missing in x86? + | bvs => target_label | blo => target_label } } else { @@ -6206,7 +6206,7 @@ static int zend_jit_cmp_double_common(dasm_State **Dst, const zend_op *opline, z case ZEND_IS_SMALLER: if (swap) { | SET_ZVAL_TYPE_INFO res_addr, IS_FALSE, TMP1w, TMP2 - | bvs => target_label // TODO: why the NaN check is missing in x86? + | bvs => target_label | bls => target_label | SET_ZVAL_TYPE_INFO res_addr, IS_TRUE, TMP1w, TMP2 } else { @@ -6218,7 +6218,7 @@ static int zend_jit_cmp_double_common(dasm_State **Dst, const zend_op *opline, z case ZEND_IS_SMALLER_OR_EQUAL: if (swap) { | SET_ZVAL_TYPE_INFO res_addr, IS_FALSE, TMP1w, TMP2 - | bvs => target_label // TODO: why the NaN check is missing in x86? + | bvs => target_label | blo => target_label | SET_ZVAL_TYPE_INFO res_addr, IS_TRUE, TMP1w, TMP2 } else { @@ -6309,12 +6309,11 @@ static int zend_jit_cmp_double_common(dasm_State **Dst, const zend_op *opline, z | mov REG0, #IS_TRUE |2: break; - break; case ZEND_IS_SMALLER: | bvs >1 | mov REG0, #IS_TRUE || if (swap) { - | bhi >2 // TODO: why the NaN check is missing in x86? + | bhi >2 || } else { | blo >2 || } @@ -6326,7 +6325,7 @@ static int zend_jit_cmp_double_common(dasm_State **Dst, const zend_op *opline, z | bvs >1 | mov REG0, #IS_TRUE || if (swap) { - | bhs >2 // TODO: why the NaN check is missing in x86? + | bhs >2 || } else { | bls >2 || }

« previous php.cvs (#115801) next »