From 81f6ee80709651708d806d1d9c0691c04f41a28c Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Wed, 11 Aug 2004 14:16:34 +0000 Subject: Simple hand-coded tests to aid in early development of backends, along with a Makefile to run ad-hoc tests easily. llvm-svn: 15664 --- llvm/test/Regression/CodeGen/Generic/branch.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 llvm/test/Regression/CodeGen/Generic/branch.c (limited to 'llvm/test/Regression/CodeGen/Generic/branch.c') diff --git a/llvm/test/Regression/CodeGen/Generic/branch.c b/llvm/test/Regression/CodeGen/Generic/branch.c new file mode 100644 index 00000000000..d54a771da40 --- /dev/null +++ b/llvm/test/Regression/CodeGen/Generic/branch.c @@ -0,0 +1,15 @@ +#include +int a = 1, b = 2; + +int main() { + int i,j; + for (i=15; i>=0; --i) { + if (a < i) printf("%d < %d\n", a, i); + else printf("%d >= %d\n", a, i); + for (j=2; j <= 25; j++) { + printf("%d, ", j); + } + printf("\n"); + } + return 0; +} -- cgit v1.2.3