Reid Spencer
5374aeae70
For PR1319:
...
Conver to new test system.
llvm-svn: 36045
2007-04-15 05:03:58 +00:00
Reid Spencer
9a2319b85e
Allow replacement of %% with %
...
llvm-svn: 36044
2007-04-15 04:57:03 +00:00
Reid Spencer
d025c07cce
Keep lines a reasonable length.
...
llvm-svn: 36043
2007-04-15 04:54:53 +00:00
Jeff Cohen
610e1240ed
Patch supplied by gabor.
...
llvm-svn: 36042
2007-04-15 03:09:23 +00:00
Dale Johannesen
23da023a58
adjust per review comments
...
llvm-svn: 36041
2007-04-15 02:40:12 +00:00
Chris Lattner
4a6e0cbd41
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
llvm-svn: 36040
2007-04-15 01:02:18 +00:00
Chris Lattner
efcb4f6ed4
new testcase
...
llvm-svn: 36039
2007-04-15 01:00:37 +00:00
Dale Johannesen
20746d84c2
testcases for -fno-builtin
...
llvm-svn: 36038
2007-04-15 00:18:31 +00:00
Chris Lattner
14a251b937
refactor some code, no functionality change.
...
llvm-svn: 36037
2007-04-15 00:07:55 +00:00
Owen Anderson
0f6ccef96c
XFAIL this for now.
...
llvm-svn: 36036
2007-04-14 23:57:41 +00:00
Owen Anderson
e59b36defa
Fix some unsafe code. Also, tabs -> spaces.
...
llvm-svn: 36035
2007-04-14 23:57:00 +00:00
Owen Anderson
78cecc817f
Make ETForest depend on DomTree rather than IDom. This is the first step
...
in the long process that will be fixing PR 217.
llvm-svn: 36034
2007-04-14 23:49:24 +00:00
Chris Lattner
9f2865ac14
xfail for now
...
llvm-svn: 36033
2007-04-14 23:40:49 +00:00
Chris Lattner
f8adf7af88
add a target to print out 80-column violations.
...
llvm-svn: 36032
2007-04-14 23:35:45 +00:00
Chris Lattner
28d921d04f
fix long lines
...
llvm-svn: 36031
2007-04-14 23:32:02 +00:00
Reid Spencer
530eef660f
Add some info about the pipelines and redirection.
...
llvm-svn: 36030
2007-04-14 23:27:06 +00:00
Reid Spencer
f70b8e5d79
Oops. A little aggressive on the name changes there.
...
llvm-svn: 36029
2007-04-14 23:17:58 +00:00
Chris Lattner
e275463e2f
add a note
...
llvm-svn: 36028
2007-04-14 23:06:09 +00:00
Reid Spencer
bc7533c140
For PR1913:
...
Convert to new test system. This exposes test/Transforms/ConstProp/calls.ll
llvm-svn: 36027
2007-04-14 23:04:54 +00:00
Chris Lattner
c8ff09ffaa
fix test for linux hosts.
...
llvm-svn: 36026
2007-04-14 23:04:30 +00:00
Chris Lattner
7bfdd0abe1
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
llvm-svn: 36025
2007-04-14 23:02:14 +00:00
Chris Lattner
45ab14d084
new testcase
...
llvm-svn: 36024
2007-04-14 23:00:51 +00:00
Reid Spencer
cfe6e77e7b
For PR1319:
...
Convert to new test system.
llvm-svn: 36023
2007-04-14 22:54:01 +00:00
Reid Spencer
3fc53d6c53
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.
llvm-svn: 36022
2007-04-14 22:51:29 +00:00
Reid Spencer
c9e2e13d0a
Fix syntax.
...
llvm-svn: 36021
2007-04-14 22:32:58 +00:00
Chris Lattner
b37fb6a0da
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
llvm-svn: 36020
2007-04-14 22:29:23 +00:00
Chris Lattner
8a08819105
manually upgrade test. Add a new test2. I have no way to see if this works
...
because of the tclification. :(
llvm-svn: 36019
2007-04-14 22:27:33 +00:00
Reid Spencer
71d3ab5e62
Try some alternative syntax.
...
llvm-svn: 36018
2007-04-14 22:27:05 +00:00
Chris Lattner
a6b5660209
avoid copying sets and vectors around.
...
llvm-svn: 36017
2007-04-14 22:10:17 +00:00
Jeff Cohen
e7ce8f23f6
Fix PR1329.
...
llvm-svn: 36016
2007-04-14 21:50:21 +00:00
Reid Spencer
9dcf4c2337
For PR1319:
...
Rewrite much of the DejaGnu section to bring it in line with the new
facilities in llvm.exp.
llvm-svn: 36015
2007-04-14 21:46:15 +00:00
Reid Spencer
af1a99f3a7
This test should have been updated with llvm 1.7!
...
llvm-svn: 36014
2007-04-14 20:21:37 +00:00
Reid Spencer
91948d4cad
For PR1319:
...
Upgrade tests to work with new llvm.exp version of llvm_runtest.
llvm-svn: 36013
2007-04-14 20:13:02 +00:00
Reid Spencer
be88bc4cb4
This test needs to use egrep.
...
llvm-svn: 36012
2007-04-14 20:02:51 +00:00
Chris Lattner
6bd7b7b30b
disable switch lowering using shift/and. It still breaks ppc bootstrap for
...
some reason. :( Will investigate.
llvm-svn: 36011
2007-04-14 19:39:41 +00:00
Reid Spencer
63338746dd
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.
llvm-svn: 36010
2007-04-14 19:37:22 +00:00
Reid Spencer
399026b1a5
Convert test cases to new llvm.exp version of llvm_runtest and fix tests
...
that it found to be broken.
llvm-svn: 36009
2007-04-14 19:27:03 +00:00
Reid Spencer
ef9065c742
For PR1319:
...
Convert to use new llvm.exp version of llvm_testrun
llvm-svn: 36008
2007-04-14 19:10:21 +00:00
Reid Spencer
b7c5957e7c
1. Don't generate redundant copy of stderr
...
2. Only match \ at the *end* of a line.
llvm-svn: 36007
2007-04-14 18:51:19 +00:00
Reid Spencer
2441c0ae3e
Fix a test test llvm.exp found.
...
llvm-svn: 36006
2007-04-14 18:33:31 +00:00
Reid Spencer
7e4bde71c5
bool -> i1 (found by llvm.exp)
...
llvm-svn: 36005
2007-04-14 18:30:06 +00:00
Reid Spencer
26f762270f
Fix a syntax error that llvm.exp found.
...
llvm-svn: 36004
2007-04-14 18:28:16 +00:00
Reid Spencer
0c0fe0afa7
Fix an "already-upgraded" test that llvm.exp found.
...
llvm-svn: 36003
2007-04-14 18:26:02 +00:00
Chris Lattner
6f58839b20
avoid iterator invalidation.
...
llvm-svn: 36002
2007-04-14 18:06:52 +00:00
Reid Spencer
64f7a5ea86
Simplify this test and correct redirection for Tcl exec.
...
llvm-svn: 36001
2007-04-14 17:49:06 +00:00
Reid Spencer
5c59cf718d
Don't try to interpret a fictitious file.
...
llvm-svn: 36000
2007-04-14 17:41:12 +00:00
Reid Spencer
6e0ffa8c43
Print full errorInfo when a failure occurs.
...
llvm-svn: 35999
2007-04-14 17:36:20 +00:00
Jeff Cohen
4bd0fd367a
An even better fix.
...
llvm-svn: 35998
2007-04-14 17:18:29 +00:00
Reid Spencer
a9aad5685b
No need to quote things, shell isn't interpreting any more.
...
llvm-svn: 35997
2007-04-14 17:12:21 +00:00
Jeff Cohen
7233aa9369
Fix recent regression that broke several llvm-tests.
...
llvm-svn: 35996
2007-04-14 16:55:19 +00:00