From: Maamoun TK Date: Tue, 14 Jul 2020 11:36:14 +0000 (+0300) Subject: "PowerPC64" Add machine.m4 X-Git-Tag: nettle_3.7rc1~76^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95b29fe510cc35cf617e730ed7fa951e982e1532;p=thirdparty%2Fnettle.git "PowerPC64" Add machine.m4 --- diff --git a/powerpc64/machine.m4 b/powerpc64/machine.m4 new file mode 100644 index 00000000..2f91adec --- /dev/null +++ b/powerpc64/machine.m4 @@ -0,0 +1,32 @@ +define(, +<.globl C_NAME($1) +DECLARE_FUNC(C_NAME($1)) +ifelse(WORDS_BIGENDIAN,no, +,<.align FUNC_ALIGN>) +C_NAME($1): +addis 2,12,(.TOC.-C_NAME($1))@ha +addi 2,2,(.TOC.-C_NAME($1))@l +.localentry C_NAME($1), .-C_NAME($1)>, +<.section ".opd","aw" +.align 3 +C_NAME($1): +.quad .C_NAME($1),.TOC.@tocbase,0 +.previous +ifdef(,<.align FUNC_ALIGN>) +.C_NAME($1):>) +undefine()>) + +define(, +, +<.size .C_NAME($1), . - .C_NAME($1) +.size C_NAME($1), . - .C_NAME($1)>)>) + +C Load the quadword in DATA_SRC storage into +C VEC_DST. GPR is general-purpose register +C used to obtain the effective address of +C DATA_SRC storage. +C DATA_LOAD_VEC(VEC_DST, DATA_SRC, GPR) +define(, +)