Skip to content

Commit

Permalink
set avx and evex in test
Browse files Browse the repository at this point in the history
  • Loading branch information
hanklo6 committed Oct 22, 2024
1 parent ad94cc0 commit ed7c10a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hotspot/cpu/x86/vm_version_x86.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -640,8 +640,8 @@ class VM_Version : public Abstract_VM_Version {
LP64_ONLY(static void clear_apx_test_state());

static void clean_cpuFeatures() { _features = 0; }
static void set_avx_cpuFeatures() { _features = (CPU_SSE | CPU_SSE2 | CPU_AVX | CPU_VZEROUPPER ); }
static void set_evex_cpuFeatures() { _features = (CPU_AVX512F | CPU_SSE | CPU_SSE2 | CPU_VZEROUPPER ); }
static void set_avx_cpuFeatures() { _features |= (CPU_SSE | CPU_SSE2 | CPU_AVX | CPU_VZEROUPPER ); }
static void set_evex_cpuFeatures() { _features |= (CPU_AVX512F | CPU_SSE | CPU_SSE2 | CPU_VZEROUPPER ); }
static void set_apx_cpuFeatures() { _features |= CPU_APX_F; }
static void set_bmi1_cpuFeatures() { _features |= CPU_BMI1; }

Expand Down
2 changes: 2 additions & 0 deletions test/hotspot/gtest/x86/test_assemblerx86.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ static void asm_check(const uint8_t *insns, const uint8_t *insns1, const unsigne
TEST_VM(AssemblerX86, validate) {
FlagSetting flag_change_apx(UseAPX, true);
VM_Version::set_bmi1_cpuFeatures();
VM_Version::set_evex_cpuFeatures();
VM_Version::set_avx_cpuFeatures();
VM_Version::set_apx_cpuFeatures();
BufferBlob* b = BufferBlob::create("x64Test", 500000);
CodeBuffer code(b);
Expand Down

0 comments on commit ed7c10a

Please sign in to comment.