Reid Spencer
4142579814
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
2007-04-15 06:47:49 +00:00
Reid Spencer
c92e6a690c
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
2007-04-15 06:25:12 +00:00
Reid Spencer
42f98e54d1
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
2007-04-15 06:22:48 +00:00
Reid Spencer
9df5561a95
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
2007-04-15 06:18:50 +00:00
Zhou Sheng
e9989b9152
This test case is incorrect. Remove it.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36048 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-15 05:59:49 +00:00
Chris Lattner
83ae2fcacc
fix SimplifyLibCalls/IsDigit.ll
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36047 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-15 05:38:40 +00:00
Reid Spencer
894cfffea1
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
2007-04-15 05:16:38 +00:00
Reid Spencer
950c694e94
For PR1319:
...
Conver to new test system.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36045 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-15 05:03:58 +00:00
Reid Spencer
12ca929ca0
Allow replacement of %% with %
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36044 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-15 04:57:03 +00:00
Reid Spencer
6f6b250058
Keep lines a reasonable length.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36043 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-15 04:54:53 +00:00
Jeff Cohen
723de95d1e
Patch supplied by gabor.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36042 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-15 03:09:23 +00:00
Dale Johannesen
a156ee118b
adjust per review comments
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36041 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-15 02:40:12 +00:00
Chris Lattner
31755a024d
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
2007-04-15 01:02:18 +00:00
Chris Lattner
9838939b3a
new testcase
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36039 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-15 01:00:37 +00:00
Dale Johannesen
1c44c4db21
testcases for -fno-builtin
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36038 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-15 00:18:31 +00:00
Chris Lattner
3284d1f18a
refactor some code, no functionality change.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36037 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-15 00:07:55 +00:00
Owen Anderson
ea37270ef2
XFAIL this for now.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36036 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-14 23:57:41 +00:00
Owen Anderson
9a341ff3c1
Fix some unsafe code. Also, tabs -> spaces.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36035 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-14 23:57:00 +00:00
Owen Anderson
690c684fc6
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
2007-04-14 23:49:24 +00:00
Chris Lattner
01015d4a0e
xfail for now
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36033 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-14 23:40:49 +00:00
Chris Lattner
03840ac2e2
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
2007-04-14 23:35:45 +00:00
Chris Lattner
e34e9a29dc
fix long lines
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36031 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-14 23:32:02 +00:00
Reid Spencer
024a126303
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
2007-04-14 23:27:06 +00:00
Reid Spencer
5eace78caa
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
2007-04-14 23:17:58 +00:00
Chris Lattner
7c162645ae
add a note
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36028 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-14 23:06:09 +00:00
Reid Spencer
4953e92ad0
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
2007-04-14 23:04:54 +00:00
Chris Lattner
a52bfcd3f0
fix test for linux hosts.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36026 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-14 23:04:30 +00:00
Chris Lattner
b7300fa8d2
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
2007-04-14 23:02:14 +00:00
Chris Lattner
32b4c12e6b
new testcase
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36024 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-14 23:00:51 +00:00
Reid Spencer
6934f06efe
For PR1319:
...
Convert to new test system.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36023 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-14 22:54:01 +00:00
Reid Spencer
78fb2acea2
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
2007-04-14 22:51:29 +00:00
Reid Spencer
a8d9394914
Fix syntax.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36021 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-14 22:32:58 +00:00
Chris Lattner
6987833651
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
2007-04-14 22:29:23 +00:00
Chris Lattner
2caf0ec7ad
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
2007-04-14 22:27:33 +00:00
Reid Spencer
90882454bd
Try some alternative syntax.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36018 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-14 22:27:05 +00:00
Chris Lattner
d6b7a1648c
avoid copying sets and vectors around.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36017 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-14 22:10:17 +00:00
Jeff Cohen
ac58a16f85
Fix PR1329.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36016 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-14 21:50:21 +00:00
Reid Spencer
bbb2a7a2cf
For PR1319:
...
Rewrite much of the DejaGnu section to bring it in line with the new
facilities in llvm.exp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36015 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-14 21:46:15 +00:00
Reid Spencer
d733ae8f5d
This test should have been updated with llvm 1.7!
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36014 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-14 20:21:37 +00:00
Reid Spencer
2b544beda3
For PR1319:
...
Upgrade tests to work with new llvm.exp version of llvm_runtest.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36013 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-14 20:13:02 +00:00
Reid Spencer
3a693b7933
This test needs to use egrep.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36012 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-14 20:02:51 +00:00
Chris Lattner
1c35968d4d
disable switch lowering using shift/and. It still breaks ppc bootstrap for
...
some reason. :( Will investigate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36011 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-14 19:39:41 +00:00
Reid Spencer
90016c7939
For PR1319:
...
More improvements:
1. Using ::errorInfo wasn't such a hot idea. Go back to just printing the
offending line of code and the stderr output. This is sufficient and
not entangled with Tcl goop.
2. Capture the problem report numbers and report them whether pass or fail.
This helps quickly get some context when a test fails, if it has an
associated PR number.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36010 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-14 19:37:22 +00:00
Reid Spencer
4b3fd6c010
Convert test cases to new llvm.exp version of llvm_runtest and fix tests
...
that it found to be broken.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36009 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-14 19:27:03 +00:00
Reid Spencer
6f254906c5
For PR1319:
...
Convert to use new llvm.exp version of llvm_testrun
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36008 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-14 19:10:21 +00:00
Reid Spencer
9a03bdac51
1. Don't generate redundant copy of stderr
...
2. Only match \ at the *end* of a line.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36007 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-14 18:51:19 +00:00
Reid Spencer
608266b2f5
Fix a test test llvm.exp found.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36006 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-14 18:33:31 +00:00
Reid Spencer
a43b3f2693
bool -> i1 (found by llvm.exp)
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36005 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-14 18:30:06 +00:00
Reid Spencer
3baaed94e2
Fix a syntax error that llvm.exp found.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36004 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-14 18:28:16 +00:00
Reid Spencer
60e9ff8d61
Fix an "already-upgraded" test that llvm.exp found.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36003 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-14 18:26:02 +00:00