From 3964574a8325ab802f98856195b8214dcce3124c Mon Sep 17 00:00:00 2001 From: Bor Grošelj Simić Date: Fri, 28 Jan 2022 02:06:18 +0100 Subject: implement float -> unsigned casts amd64 lacks instruction for this so it has to be implemented with float -> signed casts. The approach is borrowed from llvm. --- arm64/emit.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arm64') diff --git a/arm64/emit.c b/arm64/emit.c index 7cebcab..70384c0 100644 --- a/arm64/emit.c +++ b/arm64/emit.c @@ -89,7 +89,9 @@ static struct { { Ocast, Ks, "fmov %=, %W0" }, { Ocast, Kd, "fmov %=, %L0" }, { Ostosi, Ka, "fcvtzs %=, %S0" }, + { Ostoui, Ka, "fcvtzu %=, %S0" }, { Odtosi, Ka, "fcvtzs %=, %D0" }, + { Odtoui, Ka, "fcvtzu %=, %D0" }, { Oswtof, Ka, "scvtf %=, %W0" }, { Ouwtof, Ka, "ucvtf %=, %W0" }, { Osltof, Ka, "scvtf %=, %L0" }, -- cgit 1.4.1