moved the AVX512 ILD getters in to include/private/xed-ild-private.h

* covers the derived conditions for mask=0 and mask!=0.
    xed3_operand_get_mask_not0()
    xed3_operand_get_mask_zero()

  * no need to have them in the datafiles dynamic code any more.

  * guarded code by XED_SUPPORTS_AVX512.

Change-Id: Ibff9348a1409264dd349cd9423e7efdbe5f19ffc
(cherry picked from commit 713b5dc4fa038787bd46a769b729173de26047e7)
This commit is contained in:
Mark Charney 2017-05-01 16:40:05 -04:00 committed by Mark Charney
parent e8737dd0c2
commit 86a96f1beb
4 changed files with 13 additions and 70 deletions

View File

@ -1,21 +0,0 @@
#BEGIN_LEGAL
#
#Copyright (c) 2016 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#END_LEGAL
#Filename #priority, largest wins
#cur_dir is current file's directory #(e.g. 4 wins over 0)
%(cur_dir)s/ild/include/avx512-ild-getters.h 4

View File

@ -50,9 +50,4 @@
conversion-table:avx512-strings.txt
ild-getters: avx512-ild-getters.txt
cpuid : cpuid.xed.txt

View File

@ -1,44 +0,0 @@
/*BEGIN_LEGAL
Copyright (c) 2016 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
END_LEGAL */
/// AVX512 ILD getters
#if !defined(XED_ILD_AVX512_GETTERS_H)
#define XED_ILD_AVX512_GETTERS_H
#include "xed-common-hdrs.h"
#include "xed-common-defs.h"
#include "xed-portability.h"
#include "xed-types.h"
#include "xed-ild.h"
/* ild getters */
static XED_INLINE
xed_uint32_t xed3_operand_get_mask_not0(const xed_decoded_inst_t *d) {
/* aaa != 0 */
return xed3_operand_get_mask(d) != 0;
}
static XED_INLINE
xed_uint32_t xed3_operand_get_mask_zero(const xed_decoded_inst_t *d) {
/* aaa == 0 */
return xed3_operand_get_mask(d) == 0;
}
#endif

View File

@ -155,6 +155,19 @@ xed3_operand_get_vexdest210_7(const xed_decoded_inst_t* ild) {
}
#endif
#if defined(XED_SUPPORTS_AVX512)
static XED_INLINE
xed_uint32_t xed3_operand_get_mask_not0(const xed_decoded_inst_t *d) {
/* aaa != 0 */
return xed3_operand_get_mask(d) != 0;
}
static XED_INLINE
xed_uint32_t xed3_operand_get_mask_zero(const xed_decoded_inst_t *d) {
/* aaa == 0 */
return xed3_operand_get_mask(d) == 0;
}
#endif
void
xed_instruction_length_decode(xed_decoded_inst_t* d);