aboutsummaryrefslogtreecommitdiff
path: root/test/char-sign+riscv64.qbe
diff options
context:
space:
mode:
Diffstat (limited to 'test/char-sign+riscv64.qbe')
-rw-r--r--test/char-sign+riscv64.qbe2
1 files changed, 1 insertions, 1 deletions
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