CheckX86_64Assembly.cmake (371B)
1 include(CheckCSourceCompiles) 2 3 function(check_x86_64_assembly) 4 check_c_source_compiles(" 5 #include <stdint.h> 6 7 int main() 8 { 9 uint64_t a = 11, tmp; 10 __asm__ __volatile__(\"movq $0x100000000,%1; mulq %%rsi\" : \"+a\"(a) : \"S\"(tmp) : \"cc\", \"%rdx\"); 11 } 12 " HAVE_X86_64_ASM) 13 set(HAVE_X86_64_ASM ${HAVE_X86_64_ASM} PARENT_SCOPE) 14 endfunction()