kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

cg_x64_inline_asm_mov.c (162B)


      1 int test_main(void) {
      2 #if defined(__x86_64__)
      3   long out;
      4   __asm__ volatile("movq %1, %0" : "=r"(out) : "r"(42));
      5   return (int)out;
      6 #else
      7   return 42;
      8 #endif
      9 }