Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/asmjit/asmjit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkobalicek <kobalicek.petr@gmail.com>2015-06-17 22:19:29 +0300
committerkobalicek <kobalicek.petr@gmail.com>2015-06-17 22:19:29 +0300
commit3c477177d2bcbbde25f405e30c2ca22393211d3e (patch)
treee44950c4e08c7995662915f5954d8881fe0c2ba7 /CMakeLists.txt
parentec8eb0dd4756267ae5eff5f072d6160b2e254253 (diff)
Fixed AVX/XOP bugs when encoding instruction that uses register(s) with index greater than 7.
Refactored a bit testing code and added ability to asmjit_test_opcode to use registers having indexes greater than 7.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt18
1 files changed, 9 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8ee62f7..77c2726 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -320,31 +320,31 @@ EndIf()
# =============================================================================
# AsmJit library is always embedded into the tests executable. This way it's
-# much easier to test private functions compared to just linking to AsmJit.
+# much easier to test private functions than just linking to `libasmjit.so`.
If(ASMJIT_BUILD_TEST)
- AsmJit_AddSource(ASMJIT_TEST_SRC asmjit/test broken.cpp broken.h main.cpp)
+ AsmJit_AddSource(ASMJIT_TEST_SRC test asmjit_test_unit.cpp broken.cpp broken.h)
Set(ASMJIT_TEST_CFLAGS
${ASMJIT_CFLAGS}
${ASMJIT_DEFINE}ASMJIT_STATIC
${ASMJIT_DEFINE}ASMJIT_TEST)
- Add_Executable(asmjit_test ${ASMJIT_SRC} ${ASMJIT_TEST_SRC})
- Target_Link_Libraries(asmjit_test ${ASMJIT_DEPS})
+ Add_Executable(asmjit_test_unit ${ASMJIT_SRC} ${ASMJIT_TEST_SRC})
+ Target_Link_Libraries(asmjit_test_unit ${ASMJIT_DEPS})
If(${CMAKE_BUILD_TYPE})
If(${CMAKE_BUILD_TYPE} MATCHES "Debug")
- Set_Target_Properties(asmjit_test PROPERTIES COMPILE_FLAGS ${ASMJIT_TEST_CFLAGS} ${ASMJIT_CFLAGS_DBG})
+ Set_Target_Properties(asmjit_test_unit PROPERTIES COMPILE_FLAGS ${ASMJIT_TEST_CFLAGS} ${ASMJIT_CFLAGS_DBG})
Else()
- Set_Target_Properties(asmjit_test PROPERTIES COMPILE_FLAGS ${ASMJIT_TEST_CFLAGS} ${ASMJIT_CFLAGS_REL})
+ Set_Target_Properties(asmjit_test_unit PROPERTIES COMPILE_FLAGS ${ASMJIT_TEST_CFLAGS} ${ASMJIT_CFLAGS_REL})
EndIf()
Else()
- Target_Compile_Options(asmjit_test PUBLIC ${ASMJIT_TEST_CFLAGS}
+ Target_Compile_Options(asmjit_test_unit PUBLIC ${ASMJIT_TEST_CFLAGS}
$<$<CONFIG:Debug>:${ASMJIT_CFLAGS_DBG}>
$<$<NOT:$<CONFIG:Debug>>:${ASMJIT_CFLAGS_REL}>)
EndIf()
- Set_Target_Properties(asmjit_test PROPERTIES LINK_FLAGS "${ASMJIT_LFLAGS}")
+ Set_Target_Properties(asmjit_test_unit PROPERTIES LINK_FLAGS "${ASMJIT_LFLAGS}")
EndIf()
# =============================================================================
@@ -359,7 +359,7 @@ If(ASMJIT_BUILD_SAMPLES)
)
ForEach(file ${ASMJIT_SRC_SAMPLES})
- Add_Executable(${file} src/app/test/${file}.cpp)
+ Add_Executable(${file} src/test/${file}.cpp)
Target_Link_Libraries(${file} asmjit ${ASMJIT_DEPS})
EndForEach(file)
EndIf()