2023-03-08 13:33:16 +00:00
|
|
|
include(CheckCSourceCompiles)
|
|
|
|
|
2023-05-12 10:50:18 +01:00
|
|
|
function(check_x86_64_assembly)
|
2023-03-08 13:33:16 +00:00
|
|
|
check_c_source_compiles("
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
uint64_t a = 11, tmp;
|
|
|
|
__asm__ __volatile__(\"movq $0x100000000,%1; mulq %%rsi\" : \"+a\"(a) : \"S\"(tmp) : \"cc\", \"%rdx\");
|
|
|
|
}
|
2023-05-12 10:50:18 +01:00
|
|
|
" HAVE_X86_64_ASM)
|
|
|
|
set(HAVE_X86_64_ASM ${HAVE_X86_64_ASM} PARENT_SCOPE)
|
2023-03-08 13:33:16 +00:00
|
|
|
endfunction()
|