FREDERICK DOUGLASS, M. R. DELANY, Editors
RIGHT IS OF NO SEX - TRUTH IS OF NO COLOR - GOD IS THE FATHER OF US ALL, AND ALL WE ARE BRETHEREN
WILLIAM C. NEIL, Publisher JOHN DICK, Printer
(module | |
(func $vec_getx (param $a i64) (result f32) | |
(i64.and (get_local $a) (i64.const 0xffffffff)) | |
i32.wrap/i64 | |
f32.reinterpret/i32 | |
) | |
(func $vec_gety (param $a i64) (result f32) | |
(i64.shr_u (get_local $a) (i64.const 32)) | |
i32.wrap/i64 |
Registers | |
Caller-saved Callee-saved | |
RAX RCX RSP RDI RSI RDX R8 R9 R10 R11 RBP RBX R12 R13 R14 R15 | |
Args: RDI, RSI, RDX, RCX, R8, R9, XMM0–7 | |
Return: RAX | |
Simple Compile | |
yasm -f macho64 foo.asm && gcc foo.c foo.o -Wall -Wextra -g -O1 |