oota-llvm.git
17 years agoupdate test
Chris Lattner [Mon, 16 Apr 2007 06:04:03 +0000 (06:04 +0000)]
update test

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36115 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agofix incorrectly upgraded test, add PR#
Chris Lattner [Mon, 16 Apr 2007 05:58:47 +0000 (05:58 +0000)]
fix incorrectly upgraded test, add PR#

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36114 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoThis needs to stay in the old bytecode format.
Reid Spencer [Mon, 16 Apr 2007 03:35:24 +0000 (03:35 +0000)]
This needs to stay in the old bytecode format.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36113 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoThis tests aren't particularly interesting. They are redundant with the
Reid Spencer [Mon, 16 Apr 2007 03:34:01 +0000 (03:34 +0000)]
This tests aren't particularly interesting. They are redundant with the
extract_* tests. They are also perniciously difficult to maintain because
they depend on the bytecode format.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36112 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoUpdate for 2.0 bytecode format.
Reid Spencer [Mon, 16 Apr 2007 03:28:07 +0000 (03:28 +0000)]
Update for 2.0 bytecode format.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36111 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix an intrinsic name.
Reid Spencer [Mon, 16 Apr 2007 03:20:22 +0000 (03:20 +0000)]
Fix an intrinsic name.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36110 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1336:
Reid Spencer [Mon, 16 Apr 2007 03:18:25 +0000 (03:18 +0000)]
For PR1336:
Rename the intrinsic so this can be upgraded properly. It still fails with
an llc warning

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36109 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1336:
Reid Spencer [Mon, 16 Apr 2007 03:10:56 +0000 (03:10 +0000)]
For PR1336:
Upgrade the intrinsic to its new form.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36108 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1336:
Reid Spencer [Mon, 16 Apr 2007 03:06:39 +0000 (03:06 +0000)]
For PR1336:
Un-XFAIL this test now that llvm-ugprade knows how to create functions with
empty names.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36107 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRegenerate.
Reid Spencer [Mon, 16 Apr 2007 03:05:01 +0000 (03:05 +0000)]
Regenerate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36106 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1336:
Reid Spencer [Mon, 16 Apr 2007 03:04:13 +0000 (03:04 +0000)]
For PR1336:
Functions without names deserve to be created too. This fixes:
test/CodeGen/Generic/vector-constantexpr.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36105 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1336:
Reid Spencer [Mon, 16 Apr 2007 02:57:47 +0000 (02:57 +0000)]
For PR1336:
Un-XFAIL this since it now passes with fix to llvm-upgrade.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36104 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1336:
Reid Spencer [Mon, 16 Apr 2007 02:56:33 +0000 (02:56 +0000)]
For PR1336:
When upgrading global vars, look for conflicts with functions as well. This
fixes test/Transforms/GlobalDCE/2002-08-17-FunctionDGE.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36103 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRevert last patch. It was already fixed.
Reid Spencer [Mon, 16 Apr 2007 02:24:41 +0000 (02:24 +0000)]
Revert last patch. It was already fixed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36102 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1336:
Reid Spencer [Mon, 16 Apr 2007 02:09:24 +0000 (02:09 +0000)]
For PR1336:
Correct this test case. It was passing a uint where a ubyte was expected.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36101 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1336:
Reid Spencer [Mon, 16 Apr 2007 01:49:16 +0000 (01:49 +0000)]
For PR1336:
Un-XFAIL this now that its working.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36100 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1336:
Reid Spencer [Mon, 16 Apr 2007 01:48:37 +0000 (01:48 +0000)]
For PR1336:
Fix a div-by-zero bug noticed by APInt. This fixes:
test/Transforms/IndVarsSimplify/exit_value_tests.llx

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36099 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1336:
Reid Spencer [Mon, 16 Apr 2007 01:31:11 +0000 (01:31 +0000)]
For PR1336:
This test was failing because of signlessness and a difference in the
way the AsmWriter prints arguments.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36098 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1336:
Reid Spencer [Mon, 16 Apr 2007 00:41:11 +0000 (00:41 +0000)]
For PR1336:
De-XFAIL tests now passing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36097 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRegenerate.
Reid Spencer [Mon, 16 Apr 2007 00:40:57 +0000 (00:40 +0000)]
Regenerate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36096 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1336:
Reid Spencer [Mon, 16 Apr 2007 00:39:39 +0000 (00:39 +0000)]
For PR1336:
Rewrite the upgrade of GEP indices to be a little less obtuse. This fixes
test/Assembler/2002-08-19-BytecodeReader.llx
test/Assembler/2003-08-21-ConstantExprCast-Fold.llx
test/Assembler/2004-01-11-getelementptrfolding.llx

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36095 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoTabs -> Spaces
Owen Anderson [Sun, 15 Apr 2007 23:14:18 +0000 (23:14 +0000)]
Tabs -> Spaces

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36094 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1336:
Reid Spencer [Sun, 15 Apr 2007 23:00:46 +0000 (23:00 +0000)]
For PR1336:
XFAIL tests covered by the PR. These will be un-XFAILed as they are fixed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36093 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1319: Upgrade to new test harness.
Reid Spencer [Sun, 15 Apr 2007 22:37:04 +0000 (22:37 +0000)]
For PR1319: Upgrade to new test harness.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36092 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1319: Upgrade to new test harness.
Reid Spencer [Sun, 15 Apr 2007 22:20:47 +0000 (22:20 +0000)]
For PR1319: Upgrade to new test harness.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36091 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix PR1335 and Transforms/Inline/2007-04-15-InlineEH.ll
Chris Lattner [Sun, 15 Apr 2007 21:38:06 +0000 (21:38 +0000)]
Fix PR1335 and Transforms/Inline/2007-04-15-InlineEH.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36090 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agotestcase for PR1335
Chris Lattner [Sun, 15 Apr 2007 21:37:53 +0000 (21:37 +0000)]
testcase for PR1335

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36089 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agothis test isn't testing what it thought it was
Chris Lattner [Sun, 15 Apr 2007 21:33:36 +0000 (21:33 +0000)]
this test isn't testing what it thought it was

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36088 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1319: Upgrade to new test harness.
Reid Spencer [Sun, 15 Apr 2007 21:17:45 +0000 (21:17 +0000)]
For PR1319: Upgrade to new test harness.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36087 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1319: Upgrade to new test harness.
Reid Spencer [Sun, 15 Apr 2007 20:48:50 +0000 (20:48 +0000)]
For PR1319: Upgrade to new test harness.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36086 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoTwo changes:
Reid Spencer [Sun, 15 Apr 2007 20:43:36 +0000 (20:43 +0000)]
Two changes:
1. Don't bother truncating reading of the file. It doesn't save that much
   time and we should support putting RUN lines anywhere in the file. For
   example, someone might want to put the grep match before each function
   in the test file which would sprinkle the RUN: lines throughout the file.
2. Fix a bug with llvmgcc version match .. global var wasn't declared as such

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36085 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1319: Upgrade to new test harness.
Reid Spencer [Sun, 15 Apr 2007 20:41:31 +0000 (20:41 +0000)]
For PR1319: Upgrade to new test harness.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36084 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoSome tests have really long RUN line sets. Read the first 4096 bytes instead
Reid Spencer [Sun, 15 Apr 2007 20:31:42 +0000 (20:31 +0000)]
Some tests have really long RUN line sets. Read the first 4096 bytes instead
of 1024.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36083 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1319: Upgrade to new test harness.
Reid Spencer [Sun, 15 Apr 2007 20:08:37 +0000 (20:08 +0000)]
For PR1319: Upgrade to new test harness.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36082 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix a nasty bug introduced when apint'ified. This fixes
Chris Lattner [Sun, 15 Apr 2007 19:52:49 +0000 (19:52 +0000)]
Fix a nasty bug introduced when apint'ified.  This fixes
Transforms/IndVarsSimplify/exit_value_tests.llx

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36081 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1319: Upgrade to new test harness.
Reid Spencer [Sun, 15 Apr 2007 19:35:51 +0000 (19:35 +0000)]
For PR1319: Upgrade to new test harness.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36080 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoMake this test work.
Reid Spencer [Sun, 15 Apr 2007 19:28:23 +0000 (19:28 +0000)]
Make this test work.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36079 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoWe don't need the path to be set for llvmgcc/llvmgxx any more.
Reid Spencer [Sun, 15 Apr 2007 19:27:27 +0000 (19:27 +0000)]
We don't need the path to be set for llvmgcc/llvmgxx any more.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36078 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1319: Upgrade to use new test harness
Reid Spencer [Sun, 15 Apr 2007 19:21:54 +0000 (19:21 +0000)]
For PR1319: Upgrade to use new test harness

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36077 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1319: Upgrade to use new test harness
Reid Spencer [Sun, 15 Apr 2007 19:11:47 +0000 (19:11 +0000)]
For PR1319: Upgrade to use new test harness

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36076 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1319: Upgrade to use new test harness
Reid Spencer [Sun, 15 Apr 2007 18:40:57 +0000 (18:40 +0000)]
For PR1319: Upgrade to use new test harness

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36075 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoAllow lines that have \ and end in \ to be recognized as ending in \
Reid Spencer [Sun, 15 Apr 2007 18:38:42 +0000 (18:38 +0000)]
Allow lines that have \ and end in \ to be recognized as ending in \

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36074 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1319: Upgrade to new test harness
Reid Spencer [Sun, 15 Apr 2007 18:11:57 +0000 (18:11 +0000)]
For PR1319: Upgrade to new test harness

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36073 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix this test to test what it was intended to test.
Nick Lewycky [Sun, 15 Apr 2007 13:14:33 +0000 (13:14 +0000)]
Fix this test to test what it was intended to test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36072 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoTwo improvements:
Reid Spencer [Sun, 15 Apr 2007 10:27:54 +0000 (10:27 +0000)]
Two improvements:

1. Only read the first 1024 bytes of the file. The RUN: lines should all be
   within that amount of space.  This keeps I/O costs down when reading
   very large files.
2. Print PR numbers with a PR prefix so it is clear what they are.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36071 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1319: Upgrade to new test harness
Reid Spencer [Sun, 15 Apr 2007 10:26:05 +0000 (10:26 +0000)]
For PR1319: Upgrade to new test harness

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36070 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1319: Upgrade to new test harness
Reid Spencer [Sun, 15 Apr 2007 10:11:13 +0000 (10:11 +0000)]
For PR1319: Upgrade to new test harness

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36069 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1319:
Reid Spencer [Sun, 15 Apr 2007 10:09:30 +0000 (10:09 +0000)]
For PR1319:
Update to new Tcl exec based test harness.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36068 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1319:
Reid Spencer [Sun, 15 Apr 2007 10:07:55 +0000 (10:07 +0000)]
For PR1319:
Upgrade to new Tcl exec based test framework. This exposes three regressions
in llvm-upgrade:
test/Assembler/2002-08-19-BytecodeReader.llx
test/Assembler/2003-08-21-ConstantExprCast-Fold.llx
test/Assembler/2004-01-11-getelementptrfolding.llx

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36067 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1319:
Reid Spencer [Sun, 15 Apr 2007 09:31:07 +0000 (09:31 +0000)]
For PR1319:
Upgrade to use new Tcl exec based test harness.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36066 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1319:
Reid Spencer [Sun, 15 Apr 2007 09:21:47 +0000 (09:21 +0000)]
For PR1319:
Upgrade to use new Tcl exec based test harness. This exposes 3 bugs that
were previously not being reported:
test/Transforms/GlobalDCE/2002-08-17-FunctionDGE.ll
test/Transforms/GlobalOpt/memset.ll
test/Transforms/IndVarsSimplify/exit_value_tests.llx

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36065 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoUpdate tests for the disappearance of -idom.
Owen Anderson [Sun, 15 Apr 2007 08:54:57 +0000 (08:54 +0000)]
Update tests for the disappearance of -idom.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36064 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRemove ImmediateDominator analysis. The same information can be obtained from DomTre...
Owen Anderson [Sun, 15 Apr 2007 08:47:27 +0000 (08:47 +0000)]
Remove ImmediateDominator analysis.  The same information can be obtained from DomTree.  A lot of code for
constructing ImmediateDominator is now folded into DomTree construction.

This is part of the ongoing work for PR217.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36063 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1319:
Reid Spencer [Sun, 15 Apr 2007 08:30:33 +0000 (08:30 +0000)]
For PR1319:
Upgrade to use new Tcl exec based test harness.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36062 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1319:
Reid Spencer [Sun, 15 Apr 2007 08:01:33 +0000 (08:01 +0000)]
For PR1319:
Convert to use the new Tcl expr based test harness.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36061 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoDescribe quoting rules.
Reid Spencer [Sun, 15 Apr 2007 08:01:04 +0000 (08:01 +0000)]
Describe quoting rules.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36060 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1319:
Reid Spencer [Sun, 15 Apr 2007 07:38:21 +0000 (07:38 +0000)]
For PR1319:
Make use of the END. facility on all files > 1K so that we aren't wasting CPU
cycles searching for RUN: lines that we'll never find.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36059 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix this test in a slightly more obvious way.
Reid Spencer [Sun, 15 Apr 2007 07:37:04 +0000 (07:37 +0000)]
Fix this test in a slightly more obvious way.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36058 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoNo, don't cancel all remaining tests, just the one that failed!
Reid Spencer [Sun, 15 Apr 2007 07:34:58 +0000 (07:34 +0000)]
No, don't cancel all remaining tests, just the one that failed!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36057 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoAbandone the entire test case on the first error.
Reid Spencer [Sun, 15 Apr 2007 07:21:26 +0000 (07:21 +0000)]
Abandone the entire test case on the first error.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36056 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1319:
Reid Spencer [Sun, 15 Apr 2007 06:53:51 +0000 (06:53 +0000)]
For PR1319:
Upgrade to use new Tcl exec based test harness

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36055 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoUse %prcontext, $prcontext is not resolving for some reason.
Reid Spencer [Sun, 15 Apr 2007 06:52:45 +0000 (06:52 +0000)]
Use %prcontext, $prcontext is not resolving for some reason.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36054 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoPR1319:
Reid Spencer [Sun, 15 Apr 2007 06:51:14 +0000 (06:51 +0000)]
PR1319:
Upgrade tests to new Tcl exec based test harness requirements.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36053 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoMake it possible to run this from within subdirectories of llvm/test
Reid Spencer [Sun, 15 Apr 2007 06:47:49 +0000 (06:47 +0000)]
Make it possible to run this from within subdirectories of llvm/test

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36052 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoReimplement in terms of the support for this feature in the makefiles with
Reid Spencer [Sun, 15 Apr 2007 06:25:12 +0000 (06:25 +0000)]
Reimplement in terms of the support for this feature in the makefiles with
the "check-one" target. This was necessitated by the change in the test
harness to fully use Tcl's "exec" function and avoid shell scripts
altogether. Consequently, to be accurate, TestRunner.sh needs to invoke the
same environment as dejagnu would, but for just a single test. That's what
the make target "check-one" does so we just invoke it here.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36051 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoEcho command lines only if the user wants them.
Reid Spencer [Sun, 15 Apr 2007 06:22:48 +0000 (06:22 +0000)]
Echo command lines only if the user wants them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36050 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoAdd a new testing target: check-one. It is used like this:
Reid Spencer [Sun, 15 Apr 2007 06:18:50 +0000 (06:18 +0000)]
Add a new testing target: check-one. It is used like this:

make check-one TESTONE=test/path/to/test.ll

This runs a single check in exactly the same way that dejagnu runs it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36049 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoThis test case is incorrect. Remove it.
Zhou Sheng [Sun, 15 Apr 2007 05:59:49 +0000 (05:59 +0000)]
This test case is incorrect. Remove it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36048 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agofix SimplifyLibCalls/IsDigit.ll
Chris Lattner [Sun, 15 Apr 2007 05:38:40 +0000 (05:38 +0000)]
fix SimplifyLibCalls/IsDigit.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36047 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1319:
Reid Spencer [Sun, 15 Apr 2007 05:16:38 +0000 (05:16 +0000)]
For PR1319:
Convert to new test system. This exposes IsDigit.ll as failing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36046 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1319:
Reid Spencer [Sun, 15 Apr 2007 05:03:58 +0000 (05:03 +0000)]
For PR1319:
Conver to new test system.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36045 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoAllow replacement of %% with %
Reid Spencer [Sun, 15 Apr 2007 04:57:03 +0000 (04:57 +0000)]
Allow replacement of %% with %

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36044 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoKeep lines a reasonable length.
Reid Spencer [Sun, 15 Apr 2007 04:54:53 +0000 (04:54 +0000)]
Keep lines a reasonable length.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36043 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoPatch supplied by gabor.
Jeff Cohen [Sun, 15 Apr 2007 03:09:23 +0000 (03:09 +0000)]
Patch supplied by gabor.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36042 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoadjust per review comments
Dale Johannesen [Sun, 15 Apr 2007 02:40:12 +0000 (02:40 +0000)]
adjust per review comments

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36041 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoExtend store merging to support the 'if/then' version in addition to if/then/else.
Chris Lattner [Sun, 15 Apr 2007 01:02:18 +0000 (01:02 +0000)]
Extend store merging to support the 'if/then' version in addition to if/then/else.

This sinks the two stores in this example into a single store in cond_next.  In this
case, it allows elimination of the load as well:

        store double 0.000000e+00, double* @s.3060
        %tmp3 = fcmp ogt double %tmp1, 5.000000e-01             ; <i1> [#uses=1]
        br i1 %tmp3, label %cond_true, label %cond_next
cond_true:              ; preds = %entry
        store double 1.000000e+00, double* @s.3060
        br label %cond_next
cond_next:              ; preds = %entry, %cond_true
        %tmp6 = load double* @s.3060            ; <double> [#uses=1]

This implements Transforms/InstCombine/store-merge.ll:test2

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36040 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agonew testcase
Chris Lattner [Sun, 15 Apr 2007 01:00:37 +0000 (01:00 +0000)]
new testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36039 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agotestcases for -fno-builtin
Dale Johannesen [Sun, 15 Apr 2007 00:18:31 +0000 (00:18 +0000)]
testcases for -fno-builtin

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36038 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agorefactor some code, no functionality change.
Chris Lattner [Sun, 15 Apr 2007 00:07:55 +0000 (00:07 +0000)]
refactor some code, no functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36037 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoXFAIL this for now.
Owen Anderson [Sat, 14 Apr 2007 23:57:41 +0000 (23:57 +0000)]
XFAIL this for now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36036 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix some unsafe code. Also, tabs -> spaces.
Owen Anderson [Sat, 14 Apr 2007 23:57:00 +0000 (23:57 +0000)]
Fix some unsafe code.  Also, tabs -> spaces.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36035 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoMake ETForest depend on DomTree rather than IDom. This is the first step
Owen Anderson [Sat, 14 Apr 2007 23:49:24 +0000 (23:49 +0000)]
Make ETForest depend on DomTree rather than IDom.  This is the first step
in the long process that will be fixing PR 217.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36034 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoxfail for now
Chris Lattner [Sat, 14 Apr 2007 23:40:49 +0000 (23:40 +0000)]
xfail for now

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36033 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoadd a target to print out 80-column violations.
Chris Lattner [Sat, 14 Apr 2007 23:35:45 +0000 (23:35 +0000)]
add a target to print out 80-column violations.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36032 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agofix long lines
Chris Lattner [Sat, 14 Apr 2007 23:32:02 +0000 (23:32 +0000)]
fix long lines

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36031 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoAdd some info about the pipelines and redirection.
Reid Spencer [Sat, 14 Apr 2007 23:27:06 +0000 (23:27 +0000)]
Add some info about the pipelines and redirection.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36030 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoOops. A little aggressive on the name changes there.
Reid Spencer [Sat, 14 Apr 2007 23:17:58 +0000 (23:17 +0000)]
Oops. A little aggressive on the name changes there.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36029 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoadd a note
Chris Lattner [Sat, 14 Apr 2007 23:06:09 +0000 (23:06 +0000)]
add a note

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36028 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1913:
Reid Spencer [Sat, 14 Apr 2007 23:04:54 +0000 (23:04 +0000)]
For PR1913:
Convert to new test system. This exposes test/Transforms/ConstProp/calls.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36027 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agofix test for linux hosts.
Chris Lattner [Sat, 14 Apr 2007 23:04:30 +0000 (23:04 +0000)]
fix test for linux hosts.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36026 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoImplement Transforms/InstCombine/vec_extract_elt.ll, transforming:
Chris Lattner [Sat, 14 Apr 2007 23:02:14 +0000 (23:02 +0000)]
Implement Transforms/InstCombine/vec_extract_elt.ll, transforming:

define i32 @test(float %f) {
        %tmp7 = insertelement <4 x float> undef, float %f, i32 0
        %tmp17 = bitcast <4 x float> %tmp7 to <4 x i32>
        %tmp19 = extractelement <4 x i32> %tmp17, i32 0
        ret i32 %tmp19
}

into:

define i32 @test(float %f) {
        %tmp19 = bitcast float %f to i32                ; <i32> [#uses=1]
        ret i32 %tmp19
}

On PPC, this is the difference between:

_test:
        mfspr r2, 256
        oris r3, r2, 8192
        mtspr 256, r3
        stfs f1, -16(r1)
        addi r3, r1, -16
        addi r4, r1, -32
        lvx v2, 0, r3
        stvx v2, 0, r4
        lwz r3, -32(r1)
        mtspr 256, r2
        blr

and:

_test:
        stfs f1, -4(r1)
        nop
        nop
        nop
        lwz r3, -4(r1)
        blr

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36025 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agonew testcase
Chris Lattner [Sat, 14 Apr 2007 23:00:51 +0000 (23:00 +0000)]
new testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36024 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1319:
Reid Spencer [Sat, 14 Apr 2007 22:54:01 +0000 (22:54 +0000)]
For PR1319:
Convert to new test system.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36023 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoChanges to fix problems with "make check". Apparently you can redefine
Reid Spencer [Sat, 14 Apr 2007 22:51:29 +0000 (22:51 +0000)]
Changes to fix problems with "make check". Apparently you can redefine
functions and Tcl's just tickled with that. The fix is to give the "new"
test system a different interface function name.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36022 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix syntax.
Reid Spencer [Sat, 14 Apr 2007 22:32:58 +0000 (22:32 +0000)]
Fix syntax.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36021 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoImplement InstCombine/vec_demanded_elts.ll:test2. This allows us to turn
Chris Lattner [Sat, 14 Apr 2007 22:29:23 +0000 (22:29 +0000)]
Implement InstCombine/vec_demanded_elts.ll:test2.  This allows us to turn

unsigned test(float f) {
 return _mm_cvtsi128_si32( (__m128i) _mm_set_ss( f*f ));
}

into:

_test:
        movss 4(%esp), %xmm0
        mulss %xmm0, %xmm0
        movd %xmm0, %eax
        ret

instead of:

_test:
        movss 4(%esp), %xmm0
        mulss %xmm0, %xmm0
        xorps %xmm1, %xmm1
        movss %xmm0, %xmm1
        movd %xmm1, %eax
        ret

GCC gets:

_test:
        subl    $28, %esp
        movss   32(%esp), %xmm0
        mulss   %xmm0, %xmm0
        xorps   %xmm1, %xmm1
        movss   %xmm0, %xmm1
        movaps  %xmm1, %xmm0
        movd    %xmm0, 12(%esp)
        movl    12(%esp), %eax
        addl    $28, %esp
        ret

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36020 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agomanually upgrade test. Add a new test2. I have no way to see if this works
Chris Lattner [Sat, 14 Apr 2007 22:27:33 +0000 (22:27 +0000)]
manually upgrade test.  Add a new test2.  I have no way to see if this works
because of the tclification.  :(

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36019 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoTry some alternative syntax.
Reid Spencer [Sat, 14 Apr 2007 22:27:05 +0000 (22:27 +0000)]
Try some alternative syntax.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36018 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoavoid copying sets and vectors around.
Chris Lattner [Sat, 14 Apr 2007 22:10:17 +0000 (22:10 +0000)]
avoid copying sets and vectors around.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36017 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix PR1329.
Jeff Cohen [Sat, 14 Apr 2007 21:50:21 +0000 (21:50 +0000)]
Fix PR1329.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36016 91177308-0d34-0410-b5e6-96231b3b80d8