From 3277b69d734b9c90b44ebde4ede005717e2c3b2e Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 2 Jun 2009 17:52:33 +0000 Subject: Import LLVM, at r72732. --- test/Other/2002-01-31-CallGraph.ll | 13 + test/Other/2002-02-24-InlineBrokePHINodes.ll | 23 ++ test/Other/2002-03-11-ConstPropCrash.ll | 24 ++ test/Other/2003-02-19-LoopInfoNestingBug.ll | 29 ++ test/Other/2004-08-16-PackedConstantInlineStore.ll | 8 + test/Other/2004-08-16-PackedGlobalConstant.ll | 11 + test/Other/2004-08-16-PackedSelect.ll | 13 + test/Other/2004-08-16-PackedSimple.ll | 13 + test/Other/2004-08-20-PackedControlFlow.ll | 22 ++ test/Other/2006-02-05-PassManager.ll | 5 + .../2007-04-24-eliminate-mostly-empty-blocks.ll | 309 +++++++++++++++++++++ test/Other/2007-06-05-PassID.ll | 11 + test/Other/2007-06-28-PassManager.ll | 7 + test/Other/2007-09-10-PassManager.ll | 32 +++ test/Other/2008-02-14-PassManager.ll | 5 + test/Other/2008-03-19-PassManager.ll | 58 ++++ test/Other/2008-06-04-FieldSizeInPacked.ll | 14 + test/Other/2008-08-14-PassManager.ll | 5 + test/Other/2008-10-06-RemoveDeadPass.ll | 11 + test/Other/2008-10-15-MissingSpace.ll | 7 + test/Other/2009-03-31-CallGraph.ll | 31 +++ test/Other/dg.exp | 3 + test/Other/invalid-commandline-option.ll | 3 + 23 files changed, 657 insertions(+) create mode 100644 test/Other/2002-01-31-CallGraph.ll create mode 100644 test/Other/2002-02-24-InlineBrokePHINodes.ll create mode 100644 test/Other/2002-03-11-ConstPropCrash.ll create mode 100644 test/Other/2003-02-19-LoopInfoNestingBug.ll create mode 100644 test/Other/2004-08-16-PackedConstantInlineStore.ll create mode 100644 test/Other/2004-08-16-PackedGlobalConstant.ll create mode 100644 test/Other/2004-08-16-PackedSelect.ll create mode 100644 test/Other/2004-08-16-PackedSimple.ll create mode 100644 test/Other/2004-08-20-PackedControlFlow.ll create mode 100644 test/Other/2006-02-05-PassManager.ll create mode 100644 test/Other/2007-04-24-eliminate-mostly-empty-blocks.ll create mode 100644 test/Other/2007-06-05-PassID.ll create mode 100644 test/Other/2007-06-28-PassManager.ll create mode 100644 test/Other/2007-09-10-PassManager.ll create mode 100644 test/Other/2008-02-14-PassManager.ll create mode 100644 test/Other/2008-03-19-PassManager.ll create mode 100644 test/Other/2008-06-04-FieldSizeInPacked.ll create mode 100644 test/Other/2008-08-14-PassManager.ll create mode 100644 test/Other/2008-10-06-RemoveDeadPass.ll create mode 100644 test/Other/2008-10-15-MissingSpace.ll create mode 100644 test/Other/2009-03-31-CallGraph.ll create mode 100644 test/Other/dg.exp create mode 100644 test/Other/invalid-commandline-option.ll (limited to 'test/Other') diff --git a/test/Other/2002-01-31-CallGraph.ll b/test/Other/2002-01-31-CallGraph.ll new file mode 100644 index 0000000..bb4c23e --- /dev/null +++ b/test/Other/2002-01-31-CallGraph.ll @@ -0,0 +1,13 @@ +; Call graph construction crash: Not handling indirect calls right +; +; RUN: llvm-as < %s | opt -analyze -print-callgraph >& /dev/null +; + + %FunTy = type i32 (i32) + +define void @invoke(%FunTy* %x) { + %foo = call i32 %x( i32 123 ) ; [#uses=0] + ret void +} + + diff --git a/test/Other/2002-02-24-InlineBrokePHINodes.ll b/test/Other/2002-02-24-InlineBrokePHINodes.ll new file mode 100644 index 0000000..cbb1a89 --- /dev/null +++ b/test/Other/2002-02-24-InlineBrokePHINodes.ll @@ -0,0 +1,23 @@ +; Inlining used to break PHI nodes. This tests that they are correctly updated +; when a node is split around the call instruction. The verifier caught the error. +; +; RUN: llvm-as < %s | opt -inline +; + +define i64 @test(i64 %X) { + ret i64 %X +} + +define i64 @fib(i64 %n) { +;