aboutsummaryrefslogtreecommitdiff
path: root/test/char-sign+x86_64.qbe
diff options
context:
space:
mode:
Diffstat (limited to 'test/char-sign+x86_64.qbe')
-rw-r--r--test/char-sign+x86_64.qbe10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/char-sign+x86_64.qbe b/test/char-sign+x86_64.qbe
new file mode 100644
index 0000000..0e44442
--- /dev/null
+++ b/test/char-sign+x86_64.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 extsb %.1
+ %.3 =w csgtw %.2, 0
+ ret %.3
+}