aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-08-22 16:14:53 +0000
committerChris Lattner <sabre@nondot.org>2002-08-22 16:14:53 +0000
commit317a47ff09e7be00de4181b779b645c9eda05f4d (patch)
treee7e2251584632df60fd028f15f185c850479db30
parent6458c31c6706edc9ac09de8f5d8c88dc358816cc (diff)
Remove ancient test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3455 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/opttest.ll59
1 files changed, 0 insertions, 59 deletions
diff --git a/test/opttest.ll b/test/opttest.ll
deleted file mode 100644
index 4296b2d427..0000000000
--- a/test/opttest.ll
+++ /dev/null
@@ -1,59 +0,0 @@
- const long 12
-
-implementation
-
-ulong "const removal"()
- const long 12345
- %q = const uint 4000000000 ; Def %q - uint plane
- const ulong 123 ; Def 0 - ulong plane
- const ulong 4000000000000 ; Def 1 - ulong plane
-begin
- ret ulong %1
-end
-
-void "dce #1"()
- const int 0
-begin
- ret void
-
- ret void ; Unreachable label
-end
-
-void "basic block merge #1"(int %a, uint %b, bool %c, ulong %d)
-begin
- add int %0, %0
- br label %TestName ; Can be merged with next block
-TestName:
- add uint %0, %0
- br label %1 ; Can be merged with next block
- add ulong %0, %0
- ret void
-end
-
-void "const prop #1"()
- %x = const int 0 ; Def %x - int plane
- const int 0 ; Def 0 - int plane
- const bool false
-begin
-Startup:
- %x = seteq int %0, %x
- br bool %x, label %0, label %Startup ; Can be eliminated by const prop
-
- ret void
-end
-
-int "const prop #2"()
-begin
- %x = add int 1, 1 ; Instrs can be const prop'd away
- %y = sub int -1, 1
- %z = add int %x, %y
- ret int %z ; Should equal %0
-end
-
-sbyte "const prop #3"() ; Instrs can be const prop'd away
-begin
- %x = add sbyte 127, 127 ; Must wrap around correctly!
- %y = sub sbyte 1, -1
- %z = add sbyte %x, %y
- ret sbyte %z ; Should equal %0!
-end