From f57f61b49c05c6705da909c9c29172ea3602bdee Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Thu, 10 Feb 2022 15:41:35 -0800 Subject: qbe: Use new unary negation operator --- test/char-sign+riscv64.qbe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/char-sign+riscv64.qbe') diff --git a/test/char-sign+riscv64.qbe b/test/char-sign+riscv64.qbe index 002f645..aa8d8bc 100644 --- a/test/char-sign+riscv64.qbe +++ b/test/char-sign+riscv64.qbe @@ -3,7 +3,7 @@ export function w $main() { @start.1 @body.2 - %.1 =w sub 0, 1 + %.1 =w neg 1 %.2 =w extub %.1 %.3 =w csltw %.2, 0 ret %.3 -- cgit v1.2.3