summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-05-22 22:02:14 +0000
committerChris Lattner <sabre@nondot.org>2002-05-22 22:02:14 +0000
commit567c1e890a2ed1f83cb57dfb78df091065f617b8 (patch)
tree5353fd14ec96004f7b5ce3d1e66d7b8b206b823f /test
parentf09c74c3859f3c97dfe36d22d9ff1c536fc825ed (diff)
downloadllvm-567c1e890a2ed1f83cb57dfb78df091065f617b8.tar.gz
llvm-567c1e890a2ed1f83cb57dfb78df091065f617b8.tar.bz2
llvm-567c1e890a2ed1f83cb57dfb78df091065f617b8.tar.xz
Test cases for profile paths pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2722 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/ProfilePaths/2002-05-22-CastCrash.ll10
-rw-r--r--test/Transforms/ProfilePaths/Makefile10
2 files changed, 20 insertions, 0 deletions
diff --git a/test/Transforms/ProfilePaths/2002-05-22-CastCrash.ll b/test/Transforms/ProfilePaths/2002-05-22-CastCrash.ll
new file mode 100644
index 0000000000..a674a4d698
--- /dev/null
+++ b/test/Transforms/ProfilePaths/2002-05-22-CastCrash.ll
@@ -0,0 +1,10 @@
+; RUN: as < %s | opt -paths
+;
+%globalCrc = uninitialized global uint ; <uint*> [#uses=1]
+
+void "initialiseCRC"() {
+bb1: ;[#uses=0]
+ store uint 4294967295, uint* %globalCrc
+ ret void
+}
+
diff --git a/test/Transforms/ProfilePaths/Makefile b/test/Transforms/ProfilePaths/Makefile
new file mode 100644
index 0000000000..91acd4d481
--- /dev/null
+++ b/test/Transforms/ProfilePaths/Makefile
@@ -0,0 +1,10 @@
+
+LEVEL = ../../../..
+include $(LEVEL)/test/Makefile.tests
+
+TESTS := $(wildcard *.ll)
+
+all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
+
+Output/%.ll.out: %.ll Output/.dir $(LOPT)
+ -$(TESTRUNR) $<