Reid Spencer
1db9157b4e
Fix an intrinsic name.
...
llvm-svn: 36110
2007-04-16 03:20:22 +00:00
Reid Spencer
c7c991f4f8
For PR1336:
...
Rename the intrinsic so this can be upgraded properly. It still fails with
an llc warning
llvm-svn: 36109
2007-04-16 03:18:25 +00:00
Reid Spencer
4b4055a1ab
For PR1336:
...
Upgrade the intrinsic to its new form.
llvm-svn: 36108
2007-04-16 03:10:56 +00:00
Reid Spencer
c940d0761c
For PR1336:
...
Un-XFAIL this test now that llvm-ugprade knows how to create functions with
empty names.
llvm-svn: 36107
2007-04-16 03:06:39 +00:00
Reid Spencer
52e4e91284
Regenerate.
...
llvm-svn: 36106
2007-04-16 03:05:01 +00:00
Reid Spencer
78dffdc5d1
For PR1336:
...
Functions without names deserve to be created too. This fixes:
test/CodeGen/Generic/vector-constantexpr.ll
llvm-svn: 36105
2007-04-16 03:04:13 +00:00
Reid Spencer
caaf8a1597
For PR1336:
...
Un-XFAIL this since it now passes with fix to llvm-upgrade.
llvm-svn: 36104
2007-04-16 02:57:47 +00:00
Reid Spencer
3da4004c34
For PR1336:
...
When upgrading global vars, look for conflicts with functions as well. This
fixes test/Transforms/GlobalDCE/2002-08-17-FunctionDGE.ll
llvm-svn: 36103
2007-04-16 02:56:33 +00:00
Reid Spencer
a3cfb8a683
Revert last patch. It was already fixed.
...
llvm-svn: 36102
2007-04-16 02:24:41 +00:00
Reid Spencer
2875d2eadc
For PR1336:
...
Correct this test case. It was passing a uint where a ubyte was expected.
llvm-svn: 36101
2007-04-16 02:09:24 +00:00
Reid Spencer
f0cb944fd3
For PR1336:
...
Un-XFAIL this now that its working.
llvm-svn: 36100
2007-04-16 01:49:16 +00:00
Reid Spencer
8be22e4e04
For PR1336:
...
Fix a div-by-zero bug noticed by APInt. This fixes:
test/Transforms/IndVarsSimplify/exit_value_tests.llx
llvm-svn: 36099
2007-04-16 01:48:37 +00:00
Reid Spencer
59d3ca99b6
For PR1336:
...
This test was failing because of signlessness and a difference in the
way the AsmWriter prints arguments.
llvm-svn: 36098
2007-04-16 01:31:11 +00:00
Reid Spencer
e3dbe62579
For PR1336:
...
De-XFAIL tests now passing.
llvm-svn: 36097
2007-04-16 00:41:11 +00:00
Reid Spencer
4f7e511a8e
Regenerate.
...
llvm-svn: 36096
2007-04-16 00:40:57 +00:00
Reid Spencer
19a0ff01f9
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
llvm-svn: 36095
2007-04-16 00:39:39 +00:00
Owen Anderson
f064c92298
Tabs -> Spaces
...
llvm-svn: 36094
2007-04-15 23:14:18 +00:00
Reid Spencer
6584cf60f2
For PR1336:
...
XFAIL tests covered by the PR. These will be un-XFAILed as they are fixed.
llvm-svn: 36093
2007-04-15 23:00:46 +00:00
Reid Spencer
b964f00d6a
For PR1319: Upgrade to new test harness.
...
llvm-svn: 36092
2007-04-15 22:37:04 +00:00
Reid Spencer
1c75ef2ce2
For PR1319: Upgrade to new test harness.
...
llvm-svn: 36091
2007-04-15 22:20:47 +00:00
Chris Lattner
343c88cdb9
Fix PR1335 and Transforms/Inline/2007-04-15-InlineEH.ll
...
llvm-svn: 36090
2007-04-15 21:38:06 +00:00
Chris Lattner
d3fd9ecb2d
testcase for PR1335
...
llvm-svn: 36089
2007-04-15 21:37:53 +00:00
Chris Lattner
a9ce1c0130
this test isn't testing what it thought it was
...
llvm-svn: 36088
2007-04-15 21:33:36 +00:00
Reid Spencer
297657d6e6
For PR1319: Upgrade to new test harness.
...
llvm-svn: 36087
2007-04-15 21:17:45 +00:00
Reid Spencer
ff8169f5cb
For PR1319: Upgrade to new test harness.
...
llvm-svn: 36086
2007-04-15 20:48:50 +00:00
Reid Spencer
25cdea0579
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
llvm-svn: 36085
2007-04-15 20:43:36 +00:00
Reid Spencer
cf94fb9d7b
For PR1319: Upgrade to new test harness.
...
llvm-svn: 36084
2007-04-15 20:41:31 +00:00
Reid Spencer
d033c77ea3
Some tests have really long RUN line sets. Read the first 4096 bytes instead
...
of 1024.
llvm-svn: 36083
2007-04-15 20:31:42 +00:00
Reid Spencer
2baeaae8f4
For PR1319: Upgrade to new test harness.
...
llvm-svn: 36082
2007-04-15 20:08:37 +00:00
Chris Lattner
cad61e81c1
Fix a nasty bug introduced when apint'ified. This fixes
...
Transforms/IndVarsSimplify/exit_value_tests.llx
llvm-svn: 36081
2007-04-15 19:52:49 +00:00
Reid Spencer
0318670cf3
For PR1319: Upgrade to new test harness.
...
llvm-svn: 36080
2007-04-15 19:35:51 +00:00
Reid Spencer
a5626e787f
Make this test work.
...
llvm-svn: 36079
2007-04-15 19:28:23 +00:00
Reid Spencer
8f4cf19075
We don't need the path to be set for llvmgcc/llvmgxx any more.
...
llvm-svn: 36078
2007-04-15 19:27:27 +00:00
Reid Spencer
41dc9beb80
For PR1319: Upgrade to use new test harness
...
llvm-svn: 36077
2007-04-15 19:21:54 +00:00
Reid Spencer
b5dc70c270
For PR1319: Upgrade to use new test harness
...
llvm-svn: 36076
2007-04-15 19:11:47 +00:00
Reid Spencer
d1f8369090
For PR1319: Upgrade to use new test harness
...
llvm-svn: 36075
2007-04-15 18:40:57 +00:00
Reid Spencer
3d18d852d2
Allow lines that have \ and end in \ to be recognized as ending in \
...
llvm-svn: 36074
2007-04-15 18:38:42 +00:00
Reid Spencer
6c38d94201
For PR1319: Upgrade to new test harness
...
llvm-svn: 36073
2007-04-15 18:11:57 +00:00
Nick Lewycky
5dff5ed7f7
Fix this test to test what it was intended to test.
...
llvm-svn: 36072
2007-04-15 13:14:33 +00:00
Reid Spencer
4faa954403
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.
llvm-svn: 36071
2007-04-15 10:27:54 +00:00
Reid Spencer
c943f8ff34
For PR1319: Upgrade to new test harness
...
llvm-svn: 36070
2007-04-15 10:26:05 +00:00
Reid Spencer
892c86fbad
For PR1319: Upgrade to new test harness
...
llvm-svn: 36069
2007-04-15 10:11:13 +00:00
Reid Spencer
7f346b4362
For PR1319:
...
Update to new Tcl exec based test harness.
llvm-svn: 36068
2007-04-15 10:09:30 +00:00
Reid Spencer
c6b30b107b
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
llvm-svn: 36067
2007-04-15 10:07:55 +00:00
Reid Spencer
5a77babd81
For PR1319:
...
Upgrade to use new Tcl exec based test harness.
llvm-svn: 36066
2007-04-15 09:31:07 +00:00
Reid Spencer
a551c041f9
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
llvm-svn: 36065
2007-04-15 09:21:47 +00:00
Owen Anderson
5a576160bc
Update tests for the disappearance of -idom.
...
llvm-svn: 36064
2007-04-15 08:54:57 +00:00
Owen Anderson
f35a1dbc7a
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.
llvm-svn: 36063
2007-04-15 08:47:27 +00:00
Reid Spencer
951d8dc29f
For PR1319:
...
Upgrade to use new Tcl exec based test harness.
llvm-svn: 36062
2007-04-15 08:30:33 +00:00
Reid Spencer
8eba4c3d12
For PR1319:
...
Convert to use the new Tcl expr based test harness.
llvm-svn: 36061
2007-04-15 08:01:33 +00:00
Reid Spencer
e296548ba6
Describe quoting rules.
...
llvm-svn: 36060
2007-04-15 08:01:04 +00:00
Reid Spencer
ede8c3b92c
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.
llvm-svn: 36059
2007-04-15 07:38:21 +00:00
Reid Spencer
1114b48736
Fix this test in a slightly more obvious way.
...
llvm-svn: 36058
2007-04-15 07:37:04 +00:00
Reid Spencer
72d6b398e7
No, don't cancel all remaining tests, just the one that failed!
...
llvm-svn: 36057
2007-04-15 07:34:58 +00:00
Reid Spencer
9de817a471
Abandone the entire test case on the first error.
...
llvm-svn: 36056
2007-04-15 07:21:26 +00:00
Reid Spencer
8d9056c56c
For PR1319:
...
Upgrade to use new Tcl exec based test harness
llvm-svn: 36055
2007-04-15 06:53:51 +00:00
Reid Spencer
7b78d371a6
Use %prcontext, $prcontext is not resolving for some reason.
...
llvm-svn: 36054
2007-04-15 06:52:45 +00:00
Reid Spencer
63fc5df7ba
PR1319:
...
Upgrade tests to new Tcl exec based test harness requirements.
llvm-svn: 36053
2007-04-15 06:51:14 +00:00
Reid Spencer
b9dbd5b5b5
Make it possible to run this from within subdirectories of llvm/test
...
llvm-svn: 36052
2007-04-15 06:47:49 +00:00
Reid Spencer
d1d6798ee4
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.
llvm-svn: 36051
2007-04-15 06:25:12 +00:00
Reid Spencer
6d4a417df9
Echo command lines only if the user wants them.
...
llvm-svn: 36050
2007-04-15 06:22:48 +00:00
Reid Spencer
a9482c8916
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.
llvm-svn: 36049
2007-04-15 06:18:50 +00:00
Zhou Sheng
8e58ad31ae
This test case is incorrect. Remove it.
...
llvm-svn: 36048
2007-04-15 05:59:49 +00:00
Chris Lattner
f8a7bf317e
fix SimplifyLibCalls/IsDigit.ll
...
llvm-svn: 36047
2007-04-15 05:38:40 +00:00
Reid Spencer
ae81c8880a
For PR1319:
...
Convert to new test system. This exposes IsDigit.ll as failing.
llvm-svn: 36046
2007-04-15 05:16:38 +00:00
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
Reid Spencer
c516c723b1
For PR1319:
...
Changes necessary to run this with the "llvm.exp" version of llvm_runtest.
llvm-svn: 35995
2007-04-14 16:48:55 +00:00
Reid Spencer
89956dc90f
Add the line number where the script failed to the error output.
...
llvm-svn: 35994
2007-04-14 16:41:39 +00:00
Reid Spencer
437520719e
For PR1319:
...
Changes necessary for conversion of this directory to run the tests
under the llvm.exp version of llvm_runtest
llvm-svn: 35993
2007-04-14 16:40:08 +00:00
Reid Spencer
d30ad3f9b2
FIx this test, thanks to llvm.exp
...
llvm-svn: 35992
2007-04-14 16:19:26 +00:00
Reid Spencer
e33f02f0bb
Add a script to run a command but ignore its return code. This script
...
always returns 0. This is useful with the llvm.exp based dejagnu testing
when a test wants to check the error output of tool invocation that
returns non-zero. Since every command is checked with llvm.exp, there needs
to be a way to prevent that checking and this script is it.
llvm-svn: 35991
2007-04-14 16:14:08 +00:00
Anton Korobeynikov
8a1a84f96e
Fix PR1325: Case range optimization was performed in the case it
...
shouldn't. Also fix some "latent" bug on 64-bit platforms
llvm-svn: 35990
2007-04-14 13:25:55 +00:00
Duncan Sands
b4a7326c20
Correct typo.
...
llvm-svn: 35989
2007-04-14 12:30:27 +00:00
Reid Spencer
e105f3f4c4
Fix a missing -f that the new llvm.exp found.
...
llvm-svn: 35988
2007-04-14 09:45:16 +00:00
Reid Spencer
f7396d1c11
Fix a missing -f caught by the new llvm.exp script.
...
llvm-svn: 35987
2007-04-14 09:43:30 +00:00
Reid Spencer
155171c566
Initial version of a re-write of llvm-runtest that doesn't write the
...
tests to a script file but executes each line individually and catches
errors on each line too.
llvm-svn: 35986
2007-04-14 09:39:28 +00:00
Chris Lattner
7196f09edc
disable shift/and lowering to work around PR1325 for now.
...
llvm-svn: 35985
2007-04-14 02:26:56 +00:00
Chris Lattner
49fa8d2bff
Implement a few missing xforms: printf("foo\n") -> puts. printf("x") -> putchar
...
printf("") -> noop. Still need to do the xforms for fprintf.
This implements Transforms/SimplifyLibCalls/Printf.ll
llvm-svn: 35984
2007-04-14 01:17:48 +00:00
Chris Lattner
ebf3cfccdb
new testcase
...
llvm-svn: 35983
2007-04-14 01:17:38 +00:00
Chris Lattner
02137eec8f
in addition to merging, constantmerge should also delete trivially dead globals,
...
in order to clean up after simplifylibcalls.
llvm-svn: 35982
2007-04-14 01:11:54 +00:00
Chris Lattner
efb33d28c6
Implement PR1201 and test/Transforms/InstCombine/malloc-free-delete.ll
...
llvm-svn: 35981
2007-04-14 00:20:02 +00:00
Chris Lattner
a930c3d4e4
testcase for PR1201
...
llvm-svn: 35980
2007-04-14 00:19:36 +00:00
Chris Lattner
164b76565b
use an accessor to simplify code.
...
llvm-svn: 35979
2007-04-14 00:17:39 +00:00
Chris Lattner
45f15572f7
add GetElementPtrInst::hasAllZeroIndices, a long-overdue helper method.
...
Writing it twice in the same day was too much for me.
llvm-svn: 35978
2007-04-14 00:12:57 +00:00
Reid Spencer
67378b22bb
We want the number of bits needed, not the power of 2.
...
llvm-svn: 35977
2007-04-14 00:00:10 +00:00
Dale Johannesen
036cd14ecb
tests for struct/union as input operands to asm.
...
llvm-svn: 35976
2007-04-13 22:54:11 +00:00
Jeff Cohen
b4c610fb89
Silence VC++ warning.
...
llvm-svn: 35975
2007-04-13 22:52:03 +00:00
Reid Spencer
9f9fe70b11
Add the SCCP regression tests for APInt expressions. These test cases
...
turned up some regressions that have since been fixed. We don't want to
loose the regression tests.
Test cases by Guoling Han.
llvm-svn: 35974
2007-04-13 22:33:10 +00:00
Chris Lattner
d0b3e7b0b4
xfail this for now
...
llvm-svn: 35973
2007-04-13 22:20:27 +00:00
Chris Lattner
efd3051d60
Now that codegen prepare isn't defeating me, I can finally fix what I set
...
out to do! :)
This fixes a problem where LSR would insert a bunch of code into each MBB
that uses a particular subexpression (e.g. IV+base+C). The problem is that
this code cannot be CSE'd back together if inserted into different blocks.
This patch changes LSR to attempt to insert a single copy of this code and
share it, allowing codegenprepare to duplicate the code if it can be sunk
into various addressing modes. On CodeGen/ARM/lsr-code-insertion.ll,
for example, this gives us code like:
add r8, r0, r5
str r6, [r8, #+4]
..
ble LBB1_4 @cond_next
LBB1_3: @cond_true
str r10, [r8, #+4]
LBB1_4: @cond_next
...
LBB1_5: @cond_true55
ldr r6, LCPI1_1
str r6, [r8, #+4]
instead of:
add r10, r0, r6
str r8, [r10, #+4]
...
ble LBB1_4 @cond_next
LBB1_3: @cond_true
add r8, r0, r6
str r10, [r8, #+4]
LBB1_4: @cond_next
...
LBB1_5: @cond_true55
add r8, r0, r6
ldr r10, LCPI1_1
str r10, [r8, #+4]
Besides being smaller and more efficient, this makes it immediately
obvious that it is profitable to predicate LBB1_3 now :)
llvm-svn: 35972
2007-04-13 20:42:26 +00:00
Chris Lattner
03bf40e70e
new lsr testcase
...
llvm-svn: 35971
2007-04-13 20:38:14 +00:00
Chris Lattner
feee64e997
Completely rewrite addressing-mode related sinking of code. In particular,
...
this fixes problems where codegenprepare would sink expressions into load/stores
that are not valid, and fixes cases where it would miss important valid ones.
This fixes several serious codesize and perf issues, particularly on targets
with complex addressing modes like arm and x86. For example, now we compile
CodeGen/X86/isel-sink.ll to:
_test:
movl 8(%esp), %eax
movl 4(%esp), %ecx
cmpl $1233, %eax
ja LBB1_2 #F
LBB1_1: #T
movl $4, (%ecx,%eax,4)
movl $141, %eax
ret
LBB1_2: #F
movl (%ecx,%eax,4), %eax
ret
instead of:
_test:
movl 8(%esp), %eax
leal (,%eax,4), %ecx
addl 4(%esp), %ecx
cmpl $1233, %eax
ja LBB1_2 #F
LBB1_1: #T
movl $4, (%ecx)
movl $141, %eax
ret
LBB1_2: #F
movl (%ecx), %eax
ret
llvm-svn: 35970
2007-04-13 20:30:56 +00:00
Chris Lattner
26d9e9c452
New testcase
...
llvm-svn: 35969
2007-04-13 20:28:08 +00:00
Reid Spencer
9329e7b626
Implement a getBitsNeeded method to determine how many bits are needed to
...
represent a string in binary form by an APInt.
llvm-svn: 35968
2007-04-13 19:19:07 +00:00
Devang Patel
38705d5494
Remove use of SlowOperationInformer.
...
llvm-svn: 35967
2007-04-13 18:58:18 +00:00
Devang Patel
b730fe57bf
Undo previous check-in.
...
llvm-svn: 35966
2007-04-13 18:35:15 +00:00
Devang Patel
f929b86140
Hello uses LLVMSupport.a (SlowerOperationInformer)
...
llvm-svn: 35965
2007-04-13 18:28:23 +00:00
Dan Gohman
a789d31517
Rename Value::getValueType to getValueID, to avoid confusion with
...
other things named getValueType.
llvm-svn: 35964
2007-04-13 18:12:09 +00:00
Anton Korobeynikov
e288040abf
Fix PR1323 : we haven't updated phi nodes in good manner :)
...
llvm-svn: 35963
2007-04-13 06:53:51 +00:00
Chris Lattner
502c3f48d9
arm has r+r*s and r+i addr modes, but no r+i+r*s addr modes.
...
llvm-svn: 35962
2007-04-13 06:50:55 +00:00
Zhou Sheng
01c175ec52
Make the apint construction more effective.
...
llvm-svn: 35960
2007-04-13 05:57:32 +00:00
Chris Lattner
e71f1447f7
CSE simple binary expressions when they are inserted. This makes LSR produce
...
less huge code that needs to be cleaned up by sdisel.
llvm-svn: 35959
2007-04-13 05:04:18 +00:00
Tanya Lattner
c821a9ac44
Adding target triplet to be passed to database.
...
llvm-svn: 35958
2007-04-13 04:36:48 +00:00
Reid Spencer
9945235b55
Implement review feedback .. don't double search a set.
...
llvm-svn: 35957
2007-04-12 21:57:15 +00:00
Reid Spencer
1b9213730f
Make sure intrinsics that are lowered to functions make the function weak
...
linkage so we only end up with one of them in a program. These are, after
all overloaded and templatish in nature.
llvm-svn: 35956
2007-04-12 21:53:38 +00:00
Dale Johannesen
5c87869622
testcases for function linkage
...
llvm-svn: 35955
2007-04-12 21:01:53 +00:00
Reid Spencer
0ef2ca8da7
Provide support for intrinsics that lower themselves to a function body.
...
This can happen for intrinsics that are overloaded. In such cases it is
necessary to emit a function prototype before the body of the function
that calls the intrinsic and to ensure we don't emit it multiple times.
llvm-svn: 35954
2007-04-12 21:00:45 +00:00
Lauro Ramos Venancio
c451ec635f
update documentation
...
llvm-svn: 35953
2007-04-12 20:34:36 +00:00
Lauro Ramos Venancio
0ab204bb36
update documentation
...
llvm-svn: 35952
2007-04-12 19:52:46 +00:00
Lauro Ramos Venancio
e6818b2549
Implement Thread Local Storage (TLS) in CBackend.
...
llvm-svn: 35951
2007-04-12 18:42:08 +00:00
Lauro Ramos Venancio
749e4668e7
Implement the "thread_local" keyword.
...
llvm-svn: 35950
2007-04-12 18:32:50 +00:00
Chris Lattner
ce10cd22c8
vector compares aren't allowed. It doesn't make sense to have an xfailed
...
test to remind us of this.
llvm-svn: 35949
2007-04-12 18:21:52 +00:00
Chris Lattner
4c964c3aed
make this really work on linux :)
...
llvm-svn: 35948
2007-04-12 18:10:16 +00:00
Chris Lattner
028974508b
make this happier on linux hosts
...
llvm-svn: 35947
2007-04-12 18:09:06 +00:00
Reid Spencer
0f2f65f723
Fix bugs in generated code for part_select and part_set so that llc doesn't
...
barf when CBE is run with a program that contains these intrinsics.
llvm-svn: 35946
2007-04-12 13:30:14 +00:00
Reid Spencer
83faeb7611
Fix a bug in PartSet. The replacement value needs to be zext or trunc to
...
the size of the value, not just zext. Also, give better names to two BBs.
llvm-svn: 35945
2007-04-12 12:46:33 +00:00
Chris Lattner
5111499136
the result of an inline asm copy can be an arbitrary VT that the register
...
class supports. In the case of vectors, this means we often get the wrong
type (e.g. we get v4f32 instead of v8i16). Make sure to convert the vector
result to the right type. This fixes CodeGen/X86/2007-04-11-InlineAsmVectorResult.ll
llvm-svn: 35944
2007-04-12 06:00:20 +00:00
Chris Lattner
a77cb3ce68
fold noop vbitconvert instructions
...
llvm-svn: 35943
2007-04-12 05:58:43 +00:00
Chris Lattner
9bab80543a
new testcase
...
llvm-svn: 35942
2007-04-12 05:58:21 +00:00
Chris Lattner
784a68a702
Fix weirdness handling single element vectors.
...
llvm-svn: 35941
2007-04-12 04:44:28 +00:00
Chris Lattner
2805bce656
Fix mmx paddq, add support for the 'y' register class, though it isn't tested.
...
llvm-svn: 35940
2007-04-12 04:14:49 +00:00
Reid Spencer
09f5000873
Make the shlibext and llvmlibsdir variables accessible.
...
llvm-svn: 35939
2007-04-12 02:49:30 +00:00
Reid Spencer
c6251a7dfd
For PR1284:
...
Implement the "part_set" intrinsic.
llvm-svn: 35938
2007-04-12 02:48:46 +00:00
Reid Spencer
b817ba74f1
The hello pass actually requires a function to chew on!
...
llvm-svn: 35937
2007-04-12 01:12:54 +00:00
Reid Spencer
c70afc3818
Fix extra argument in part_set examples. Thanks Zhiru.
...
llvm-svn: 35936
2007-04-12 01:03:03 +00:00
Chris Lattner
af039c53c0
improve the patch for PR1318 to also support grouped options with custom
...
handlers (like the pass list). My previous fix only supported *new* command
line options, not additions to old ones.
This fixes test/Feature/load_module.ll
llvm-svn: 35935
2007-04-12 00:36:29 +00:00
Devang Patel
180ff253ed
New test case for PR 1321.
...
llvm-svn: 35934
2007-04-12 00:32:43 +00:00
Reid Spencer
7972c4758c
Fix validation errors.
...
llvm-svn: 35933
2007-04-11 23:49:50 +00:00
Reid Spencer
14194dc054
Missing end tag. Thanks, Nick.
...
llvm-svn: 35932
2007-04-11 23:46:06 +00:00
Chris Lattner
8aa5b4545f
new testcase.
...
llvm-svn: 35931
2007-04-11 23:45:16 +00:00
Reid Spencer
3b5856151b
Put period inside the paragraph!
...
llvm-svn: 35930
2007-04-11 23:26:07 +00:00
Reid Spencer
5bf54c868b
Document the part_set intrinsic.
...
llvm-svn: 35929
2007-04-11 23:23:49 +00:00
Reid Spencer
d646073027
Fix a guard that is supposed to guard against mistakes like this patch fixes!
...
We *really* need to be running these with tcl's "exec" to catch the errors.
llvm-svn: 35928
2007-04-11 22:40:46 +00:00
Chris Lattner
6d87faf14f
new testcase
...
llvm-svn: 35927
2007-04-11 22:36:10 +00:00
Chris Lattner
a5fcd24746
Fix CodeGen/X86/2007-03-24-InlineAsmPModifier.ll
...
llvm-svn: 35926
2007-04-11 22:29:46 +00:00
Reid Spencer
45fc9400ad
The "Hello" message is written on stderr so make sure it is duplicated to
...
stdout so the grep can match it.
llvm-svn: 35925
2007-04-11 21:30:05 +00:00
Reid Spencer
a28d662816
Add Scott's note about GCC 4.1.2 on OpenSUSE.
...
llvm-svn: 35924
2007-04-11 21:28:31 +00:00
Reid Spencer
5f89562811
Add a test case for PR1318.
...
llvm-svn: 35923
2007-04-11 21:14:53 +00:00
Reid Spencer
c78d122a6a
Build Hello by default so it can be used in test cases.
...
llvm-svn: 35922
2007-04-11 21:03:37 +00:00
Reid Spencer
645d5a9f4f
Use the new %link variable to make this test portable.
...
llvm-svn: 35921
2007-04-11 21:00:00 +00:00
Reid Spencer
641527f3e2
Make new variables available: compile_c, compile_cxx, link to handle tests
...
that want to use LLVM's notion of compiling and linking programs. This
includes all the -I -L and optimization switches that LLVM would using to
compile or link any of this files.
llvm-svn: 35920
2007-04-11 20:57:39 +00:00
Reid Spencer
8e25101211
The "implementation" keyword is no more!
...
llvm-svn: 35919
2007-04-11 20:06:03 +00:00
Reid Spencer
d029c7e666
Make the llvm-runtest function much more amenable by eliminating all the
...
global variables that needed to be passed in. This makes it possible to
add new global variables with only a couple changes (Makefile and llvm-dg.exp)
instead of touching every single dg.exp file.
llvm-svn: 35918
2007-04-11 19:56:59 +00:00
Reid Spencer
f29754c7b9
Add a test case for testing basic IR features via llvm2cpp. This helps find
...
bit rot in llvm2cpp and also tests the LLVM C++ IR in ways that llvm-as
doesn't.
llvm-svn: 35917
2007-04-11 19:54:37 +00:00
Reid Spencer
669c7e58b0
Make sure upgrade doesn't fail on this.
...
llvm-svn: 35916
2007-04-11 19:36:27 +00:00
Reid Spencer
60012ded54
Update the way llvm2cpp tests are done:
...
1. Make sure bytecode/assembly inputs are always redirected stdin so that
the module name is <stdin>. This helps not get false negatives when the
diff is done.
2. Scan the test file to determine if llvm-upgrade needs to be run.
3. Avoid running testings that are XFAIL'd because they'll cause a failure
when run for llvm2cpp.
4. Get some better error message output.
llvm-svn: 35914
2007-04-11 17:56:23 +00:00
Reid Spencer
7a311b86e1
Upgrade this file completely instead of downgrading it. Make sure that
...
false positives aren't made.
llvm-svn: 35913
2007-04-11 17:51:03 +00:00
Chris Lattner
18e4ac4107
fix an infinite loop compiling ldecod, notice by JeffC.
...
llvm-svn: 35910
2007-04-11 16:51:53 +00:00
Chris Lattner
fe926e2960
Fix incorrect fall-throughs in addr mode code. This fixes CodeGen/ARM/arm-negative-stride.ll
...
llvm-svn: 35909
2007-04-11 16:17:12 +00:00
Chris Lattner
2feb7abbd5
this got better
...
llvm-svn: 35908
2007-04-11 16:12:27 +00:00
Chris Lattner
45ae13bb41
adjust test
...
llvm-svn: 35907
2007-04-11 16:04:04 +00:00
Chris Lattner
5ee4d0726a
Fix Transforms/ScalarRepl/union-pointer.ll
...
llvm-svn: 35906
2007-04-11 15:45:25 +00:00
Chris Lattner
83b53a5964
Fix PR1318 by reacting appropriately to a mutating option list.
...
llvm-svn: 35905
2007-04-11 15:35:18 +00:00
Chris Lattner
7345e56885
change test name.
...
llvm-svn: 35904
2007-04-11 15:24:04 +00:00
Reid Spencer
871a9ea4ef
Fix a bug where ICmpInst objects instantiated directly with a name would
...
not retain that name. Not noticed because AsmParser always sets name after
construction. However, llvm2cpp noticed.
llvm-svn: 35903
2007-04-11 13:04:48 +00:00
Reid Spencer
5899dd1dc3
Make the generated code for ConstantInt nicer.
...
llvm-svn: 35902
2007-04-11 13:02:56 +00:00
Reid Spencer
c49f2ef236
Fix an approximate calculation in an assertion not to give false negatives.
...
llvm-svn: 35901
2007-04-11 13:00:04 +00:00
Reid Spencer
f4fd92907e
Make sure this test uses llvm-upgrade.
...
Don't allow false positives.
llvm-svn: 35900
2007-04-11 12:46:06 +00:00
Reid Spencer
56ea4e8ad3
Teach llvm2cpp about packed structure types.
...
llvm-svn: 35899
2007-04-11 12:41:49 +00:00
Reid Spencer
ff6e0eda94
Fix several bugs relating to changes in the LLVM IR API or just outright
...
typos in the output. This is sufficient to get most of the llvm2cpp tests
working again.
llvm-svn: 35898
2007-04-11 12:28:56 +00:00
Reid Spencer
d73f84ed7b
Regenerate.
...
llvm-svn: 35897
2007-04-11 12:10:58 +00:00
Reid Spencer
2844b0a225
Fix a crash-by-unknown-exception caused by attempting to use a null pointer
...
as the key for a map insertion.
llvm-svn: 35896
2007-04-11 12:10:08 +00:00
Reid Spencer
e165d7c3d7
Fix to not give false positives.
...
llvm-svn: 35895
2007-04-11 12:04:33 +00:00
Reid Spencer
77df76a3f5
Fix some issues with param attrs.
...
llvm-svn: 35894
2007-04-11 10:01:32 +00:00
Reid Spencer
3318579108
Add support for parameter attributes.
...
llvm-svn: 35893
2007-04-11 09:54:08 +00:00
Chris Lattner
81f14c63da
sext of compares.
...
llvm-svn: 35892
2007-04-11 06:57:54 +00:00
Chris Lattner
74ff60ff84
Turn stuff like:
...
icmp slt i32 %X, 0 ; <i1>:0 [#uses=1]
sext i1 %0 to i32 ; <i32>:1 [#uses=1]
into:
%X.lobit = ashr i32 %X, 31 ; <i32> [#uses=1]
This implements InstCombine/icmp.ll:test[34]
llvm-svn: 35891
2007-04-11 06:57:46 +00:00
Chris Lattner
d0f7942e23
Simplify some comparisons to arithmetic, this implements:
...
Transforms/InstCombine/icmp.ll
llvm-svn: 35890
2007-04-11 06:53:04 +00:00
Chris Lattner
764ec15b3f
new testcase
...
llvm-svn: 35889
2007-04-11 06:52:24 +00:00
Chris Lattner
a083ffcad7
Fix this harder.
...
llvm-svn: 35888
2007-04-11 06:50:51 +00:00
Chris Lattner
c5f85d3738
don't create shifts by zero, fix some problems with my previous patch
...
llvm-svn: 35887
2007-04-11 06:43:25 +00:00
Chris Lattner
20f2372a7c
canonicalize (x <u 2147483648) -> (x >s -1) and (x >u 2147483647) -> (x <s 0)
...
llvm-svn: 35886
2007-04-11 06:12:58 +00:00
Chris Lattner
7ddbff090a
fix a miscompilation of:
...
define i32 @test(i32 %X) {
entry:
%Y = and i32 %X, 4 ; <i32> [#uses=1]
icmp eq i32 %Y, 0 ; <i1>:0 [#uses=1]
sext i1 %0 to i32 ; <i32>:1 [#uses=1]
ret i32 %1
}
by moving code out of commonIntCastTransforms into visitZExt. Simplify the
APInt gymnastics in it etc.
llvm-svn: 35885
2007-04-11 05:45:39 +00:00
Chris Lattner
a6aa0319f1
done
...
llvm-svn: 35884
2007-04-11 05:34:00 +00:00
Chris Lattner
65786b078c
Teach the codegen to turn [aez]ext (setcc) -> selectcc of 1/0, which often
...
allows other simplifications. For example, this compiles:
int isnegative(unsigned int X) {
return !(X < 2147483648U);
}
Into this code:
x86:
movl 4(%esp), %eax
shrl $31, %eax
ret
arm:
mov r0, r0, lsr #31
bx lr
thumb:
lsr r0, r0, #31
bx lr
instead of:
x86:
cmpl $0, 4(%esp)
sets %al
movzbl %al, %eax
ret
arm:
mov r3, #0
cmp r0, #0
movlt r3, #1
mov r0, r3
bx lr
thumb:
mov r2, #1
mov r1, #0
cmp r0, #0
blt LBB1_2 @entry
LBB1_1: @entry
cpy r2, r1
LBB1_2: @entry
cpy r0, r2
bx lr
Testcase here: test/CodeGen/Generic/ispositive.ll
llvm-svn: 35883
2007-04-11 05:32:27 +00:00
Chris Lattner
05362ffdce
new testcase
...
llvm-svn: 35882
2007-04-11 05:32:13 +00:00
Chris Lattner
41189c63cc
Codegen integer abs more efficiently using the trick from the PPC CWG. This
...
improves codegen on many architectures. Tests committed as CodeGen/*/iabs.ll
X86 Old: X86 New:
_test: _test:
movl 4(%esp), %ecx movl 4(%esp), %eax
movl %ecx, %eax movl %eax, %ecx
negl %eax sarl $31, %ecx
testl %ecx, %ecx addl %ecx, %eax
cmovns %ecx, %eax xorl %ecx, %eax
ret ret
PPC Old: PPC New:
_test: _test:
cmpwi cr0, r3, -1 srawi r2, r3, 31
neg r2, r3 add r3, r3, r2
bgt cr0, LBB1_2 ; xor r3, r3, r2
LBB1_1: ; blr
mr r3, r2
LBB1_2: ;
blr
ARM Old: ARM New:
_test: _test:
rsb r3, r0, #0 add r3, r0, r0, asr #31
cmp r0, #0 eor r0, r3, r0, asr #31
movge r3, r0 bx lr
mov r0, r3
bx lr
Thumb Old: Thumb New:
_test: _test:
neg r2, r0 asr r2, r0, #31
cmp r0, #0 add r0, r0, r2
bge LBB1_2 eor r0, r2
LBB1_1: @ bx lr
cpy r0, r2
LBB1_2: @
bx lr
Sparc Old: Sparc New:
test: test:
save -96, %o6, %o6 save -96, %o6, %o6
sethi 0, %l0 sra %i0, 31, %l0
sub %l0, %i0, %l0 add %i0, %l0, %l1
subcc %i0, -1, %l1 xor %l1, %l0, %i0
bg .BB1_2 restore %g0, %g0, %g0
nop retl
.BB1_1: nop
or %g0, %l0, %i0
.BB1_2:
restore %g0, %g0, %g0
retl
nop
It also helps alpha/ia64 :)
llvm-svn: 35881
2007-04-11 05:11:38 +00:00
Chris Lattner
9f780e339e
new testcases for integer abs function
...
llvm-svn: 35880
2007-04-11 05:02:57 +00:00
Chris Lattner
32104034f8
fix a regression introduced by my last patch.
...
llvm-svn: 35879
2007-04-11 03:27:24 +00:00
Chris Lattner
098ea183b8
Hack to get sys::Path to recognize macho dylibs.
...
llvm-svn: 35878
2007-04-11 03:15:35 +00:00
Reid Spencer
a472f66dd0
For PR1146:
...
Put the parameter attributes in their own ParamAttr name space. Adjust the
rest of llvm as a result.
llvm-svn: 35877
2007-04-11 02:44:20 +00:00
Reid Spencer
d3f622e0d5
Teach sys::Path how to recognize different kinds of object files for ELF
...
and Mach-O systems. Additionally, correct the Mach-O logic code to look at
byte 12 not byte 15. Hopefully this fixes the llvm-ld warning on Darwin.
llvm-svn: 35876
2007-04-11 02:02:09 +00:00
Chris Lattner
daa012d1fb
Simplify SROA conversion to integer in some ways, make it more general in others.
...
We now tolerate small amounts of undefined behavior, better emulating what
would happen if the transaction actually occurred in memory. This fixes
SingleSource/UnitTests/2007-04-10-BitfieldTest.c on PPC, at least until
Devang gets a chance to fix the CFE from doing undefined things with bitfields :)
llvm-svn: 35875
2007-04-11 00:57:54 +00:00
Reid Spencer
ccd4d2c8e4
Make isDynamicLibrary detect more than just an ELF file.
...
llvm-svn: 35874
2007-04-11 00:49:39 +00:00
Reid Spencer
5f6ee131b1
Hack the shared library extension for dylib. The existing code just looks
...
plain wrong since $module was never defined so we always get .so which is
broken on Darwin. Just force it to .dylib.
llvm-svn: 35873
2007-04-11 00:33:43 +00:00
Reid Spencer
28d3e72a07
Hopefully fix LTDL_SHLIB_EXT on Darwin
...
llvm-svn: 35872
2007-04-11 00:27:39 +00:00
Bill Wendling
f099841573
Add support for our first SSSE3 instruction "pmulhrsw".
...
llvm-svn: 35869
2007-04-10 22:10:25 +00:00
Devang Patel
6d474cd37c
New test case.
...
llvm-svn: 35868
2007-04-10 21:43:01 +00:00
Chris Lattner
d4a9b92a13
new micro optzn
...
llvm-svn: 35867
2007-04-10 21:14:01 +00:00
Jeff Cohen
ba1c0cd4e9
Correctly report version of GCC used.
...
llvm-svn: 35866
2007-04-10 19:13:43 +00:00
Devang Patel
d284fd1145
Add test case for PR 1154.
...
llvm-svn: 35865
2007-04-10 16:57:08 +00:00
Chris Lattner
b05e1727ef
fix a comment bug Reid noticed
...
llvm-svn: 35864
2007-04-10 16:33:06 +00:00
Devang Patel
ada3ca2234
Enable loop rotate pass.
...
llvm-svn: 35863
2007-04-10 15:43:36 +00:00
Chris Lattner
2cc9c488e8
add missing methods, mark stuff const
...
llvm-svn: 35862
2007-04-10 07:06:21 +00:00
Chris Lattner
338bd30f19
getLimitedValue now just forward to APInt's getLimitedValue. Mark it const.
...
llvm-svn: 35861
2007-04-10 06:44:12 +00:00
Chris Lattner
c43883c8a9
add a method
...
llvm-svn: 35860
2007-04-10 06:43:18 +00:00
Chris Lattner
9b6d69e0c2
restore support for negative strides
...
llvm-svn: 35859
2007-04-10 03:48:29 +00:00
Chris Lattner
f269d84ca0
apparently some people commit without building the tree, or they forget to
...
commit a LOT of files.
llvm-svn: 35858
2007-04-10 03:20:39 +00:00
Chris Lattner
0e772b7726
unbreak the build :(
...
llvm-svn: 35857
2007-04-10 03:18:19 +00:00
Jeff Cohen
a8644a6534
Fix build problem.
...
llvm-svn: 35856
2007-04-10 03:10:46 +00:00
Reid Spencer
782ae66e41
Drop the "bit" prefix for the part.select intrinsic.
...
llvm-svn: 35854
2007-04-10 02:52:46 +00:00