From 71a3dcc3576a7f785ee803881a60909e4ba81e58 Mon Sep 17 00:00:00 2001 From: Jiajie Chen Date: Wed, 3 Jan 2024 19:54:21 +0800 Subject: [PATCH] Add hints to vld/vldx for loading fp vectors, see #7 --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 61592055..1b6825bc 100644 --- a/main.py +++ b/main.py @@ -1636,7 +1636,7 @@ def vld(): return instruction( intrinsic=f"__m128i __lsx_vld (void * addr, imm_n2048_2047 offset)", instr=f"vld vr, r, imm", - desc=f"Read whole vector from memory address `addr + offset`, save the data into `dst`.", + desc=f"Read whole vector from memory address `addr + offset`, save the data into `dst`. Note that you can use this intrinsic to load floating point vectors, even though the return type represents integer vectors.", ) @my_macro(env) @@ -1644,7 +1644,7 @@ def vldx(): return instruction( intrinsic=f"__m128i __lsx_vldx (void * addr, long int offset)", instr=f"vldx vr, r, r", - desc=f"Read whole vector from memory address `addr + offset`, save the data into `dst`.", + desc=f"Read whole vector from memory address `addr + offset`, save the data into `dst`. Note that you can use this intrinsic to load floating point vectors, even though the return type represents integer vectors.", ) @my_macro(env)