diff options
Diffstat (limited to 'test/char-sign+riscv64.qbe')
-rw-r--r-- | test/char-sign+riscv64.qbe | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/char-sign+riscv64.qbe b/test/char-sign+riscv64.qbe new file mode 100644 index 0000000..002f645 --- /dev/null +++ b/test/char-sign+riscv64.qbe @@ -0,0 +1,10 @@ +export data $x = align 4 { w 0, } +export +function w $main() { +@start.1 +@body.2 + %.1 =w sub 0, 1 + %.2 =w extub %.1 + %.3 =w csltw %.2, 0 + ret %.3 +} |