aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2026-03-08 12:12:41 +0100
committerlemon <lsof@mailbox.org>2026-03-08 12:13:31 +0100
commit0a9b4736ca028e1637311a6cc0753bbb9351e951 (patch)
tree624f1124427e9f2ce06726494754584f030b1d39 /test
parent396d39705cd0bdfd6858fc8fe782c13e5328fb8e (diff)
x86_64/isel: cleanup and fix edge cases
Diffstat (limited to 'test')
-rw-r--r--test/17-misc.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/17-misc.c b/test/17-misc.c
new file mode 100644
index 0000000..ecff06c
--- /dev/null
+++ b/test/17-misc.c
@@ -0,0 +1,19 @@
+/* EXPECT:
+-1155497588
+*/
+
+typedef unsigned long long uvlong;
+int fn1(uvlong p_9) {
+/* extract from ldrgen seed=637312671 */
+ uvlong v_73, q;
+ if (p_9) {
+ v_73 = 909910719;
+ }
+ q = (uvlong)p_9 / ((v_73 - 572547313ull) + 445ull);
+ return q;
+}
+
+extern int printf(const char *, ...);
+int main() {
+ printf("%d\n", fn1(-77ull));
+}