From 34ae0d48e9669687003c26f94e07fa00d12dd41f Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Mon, 6 Sep 2021 13:38:00 -0700 Subject: Add tests for char/wchar_t signedness --- test/wchar-sign+riscv64.qbe | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/wchar-sign+riscv64.qbe (limited to 'test/wchar-sign+riscv64.qbe') diff --git a/test/wchar-sign+riscv64.qbe b/test/wchar-sign+riscv64.qbe new file mode 100644 index 0000000..8f84971 --- /dev/null +++ b/test/wchar-sign+riscv64.qbe @@ -0,0 +1,9 @@ +export data $x = align 4 { w 0, } +export +function w $main() { +@start.1 +@body.2 + %.1 =w sub 0, 1 + %.2 =w csgtw %.1, 0 + ret %.2 +} -- cgit v1.2.3