shithub: riscv

Download patch

ref: 47165e1c2ccc0471349691cc92f64f81984b18c5
parent: 090af6255bebf0129c891116b53b31808fe49dc7
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Mon May 8 22:17:34 EDT 2023

5c, 7c: fix !x compilation when x is a negative float

test case:
void
main(int, char **)
{
	union {
		float f;
		u32int u;
	}x;
	x.u = 1U<<31;
	print("%d %d\n", !x.f, x.f == 0.0f);
	exits(nil);
}