1 // Make sure rustdoc accepts asm! for a foreign architecture.
5 // @has asm_foreign/fn.aarch64.html
6 pub unsafe fn aarch64(a: f64, b: f64) -> f64 {
8 asm!("add {:d}, {:d}, d0", out(vreg) c, in(vreg) a, in("d0") {
15 // @has asm_foreign/fn.x86.html
16 pub unsafe fn x86(a: f64, b: f64) -> f64 {
18 asm!("addsd {}, {}, xmm0", out(xmm_reg) c, in(xmm_reg) a, in("xmm0") b);