aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/mem2reg/loop00.c
diff options
Diffstat (limited to 'validation/mem2reg/loop00.c')
-rw-r--r--validation/mem2reg/loop00.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/validation/mem2reg/loop00.c b/validation/mem2reg/loop00.c
new file mode 100644
index 00000000..de33d9f6
--- /dev/null
+++ b/validation/mem2reg/loop00.c
@@ -0,0 +1,16 @@
+int loop00(int n)
+{
+ int i, r = 0;
+
+ for (i = 1; i <= n; ++i)
+ r += i;
+ return r;
+}
+
+/*
+ * check-name: loop00
+ * check-command: test-linearize -Wno-decl -fdump-ir=mem2reg $file
+ * check-output-ignore
+ * check-output-excludes: store\\.
+ * check-output-excludes: load\\.
+ */