1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
Commit Graph

2926 Commits

Author SHA1 Message Date
Chris Lattner
2d711ecbc2 new testcase
llvm-svn: 30516
2006-09-20 06:40:37 +00:00
Andrew Lenharth
17889b837e Inspired by the linux kernel, the more we keep adds in the pointer realm, the better pointer analysis works.
llvm-svn: 30495
2006-09-19 18:23:39 +00:00
Rafael Espindola
6c7627e002 Implement a MachineFunctionPass to fix the mul instruction
llvm-svn: 30485
2006-09-19 15:49:25 +00:00
Chris Lattner
30d772fbb1 number test right
llvm-svn: 30484
2006-09-19 06:19:19 +00:00
Chris Lattner
96ca5b26b0 make this harder
llvm-svn: 30481
2006-09-19 06:17:55 +00:00
Chris Lattner
7656fc26d8 new testcases
llvm-svn: 30480
2006-09-19 06:16:46 +00:00
Nick Lewycky
d17ad3593b Enable dejagnu tests for predicate simplifier.
llvm-svn: 30475
2006-09-19 00:31:54 +00:00
Chris Lattner
d3b2f9e7cc new testcase
llvm-svn: 30471
2006-09-18 22:28:07 +00:00
Chris Lattner
6392e78191 new testcase
llvm-svn: 30464
2006-09-18 18:07:51 +00:00
Chris Lattner
896e94a925 new testcase
llvm-svn: 30458
2006-09-18 07:01:39 +00:00
Chris Lattner
2450b96e39 new testcase
llvm-svn: 30455
2006-09-18 05:25:10 +00:00
Chris Lattner
51d09aab4d New testcase, can be an srl instead of sra
llvm-svn: 30449
2006-09-18 04:31:18 +00:00
Chris Lattner
4655bf8ecc Testcase for PR913
llvm-svn: 30404
2006-09-16 03:13:22 +00:00
Chris Lattner
d9db0f3820 xfail this for now
llvm-svn: 30398
2006-09-15 17:25:22 +00:00
Chris Lattner
8e82bf5a4a The inliner strips dead allocas now. Add a use to allow this test to
test the right thing.

llvm-svn: 30393
2006-09-15 16:53:11 +00:00
Chris Lattner
6f105ed622 New testcase
llvm-svn: 30378
2006-09-14 21:10:06 +00:00
Chris Lattner
abbd902669 new testcase
llvm-svn: 30302
2006-09-13 19:23:43 +00:00
Chris Lattner
367d6e340e The sense of this branch was backwards
llvm-svn: 30296
2006-09-13 17:58:57 +00:00
Chris Lattner
d76c6beb06 new testcase
llvm-svn: 30289
2006-09-13 05:59:25 +00:00
Chris Lattner
d250848118 New testcase
llvm-svn: 30287
2006-09-13 04:43:26 +00:00
Chris Lattner
f37df66e09 new testcase
llvm-svn: 30282
2006-09-13 03:21:27 +00:00
Chris Lattner
a27077bd0a testcase for PR908
llvm-svn: 30274
2006-09-12 19:16:04 +00:00
Chris Lattner
d648f06b3e Testcase that crashes the C++ FE.
llvm-svn: 30273
2006-09-12 16:28:14 +00:00
Chris Lattner
0208f77fb0 new testcase for PR906
llvm-svn: 30267
2006-09-11 22:48:23 +00:00
Chris Lattner
881d803f01 new testcase for PR905
llvm-svn: 30265
2006-09-11 21:41:56 +00:00
Evan Cheng
c55e151e45 Rename a test-not-cmp.ll to cmp-test.ll; add a test.
llvm-svn: 30243
2006-09-11 02:33:29 +00:00
Chris Lattner
02d50a2254 add a testcase for this commit: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20050606/026673.html
llvm-svn: 30238
2006-09-10 18:52:25 +00:00
Nick Lewycky
3bfe103166 Replace EquivalenceClasses with a custom-built data structure. Many common
operations (like findProperties) should be faster, at the expense of
unionSets being slower in cases that are rare in practise.

Don't erase a dead Instruction. This fixes a memory corruption issue.

llvm-svn: 30235
2006-09-10 02:27:07 +00:00
Chris Lattner
2343a5c79f new testcase
llvm-svn: 30233
2006-09-09 22:02:25 +00:00
Chris Lattner
053797e5c7 new testcase
llvm-svn: 30229
2006-09-09 20:26:04 +00:00
Chris Lattner
00b84b6eab (indirect) test for the __builtin_powi builtin which we now support.
llvm-svn: 30224
2006-09-09 06:02:16 +00:00
Rafael Espindola
20146be5e8 implement shl and sra
llvm-svn: 30191
2006-09-08 17:36:23 +00:00
Rafael Espindola
faf67d2718 fix select.ll to always test a select node
llvm-svn: 30187
2006-09-08 12:52:50 +00:00
Rafael Espindola
af1689d5a5 implement unconditional branches
fix select.ll

llvm-svn: 30186
2006-09-08 12:47:03 +00:00
Evan Cheng
384c254470 New test case.
llvm-svn: 30179
2006-09-08 07:24:20 +00:00
Evan Cheng
f56e6f2861 Add a new test case for 'undef' shuffles.
llvm-svn: 30172
2006-09-08 01:54:32 +00:00
Chris Lattner
4d22e7fac4 new testcase
llvm-svn: 30157
2006-09-07 21:29:32 +00:00
Chris Lattner
02b42279f5 This fails
llvm-svn: 30148
2006-09-07 17:43:59 +00:00
Chris Lattner
d394bd49a8 New testcase for a switch lowering bug.
llvm-svn: 30141
2006-09-07 01:59:05 +00:00
Chris Lattner
6fbd159a5f testcase, ensure this never breaks.
llvm-svn: 30137
2006-09-06 21:54:59 +00:00
Chris Lattner
6236981486 make this harder
llvm-svn: 30120
2006-09-05 20:27:06 +00:00
Rafael Espindola
de18749e1f add support for returning 64bit values
llvm-svn: 30103
2006-09-04 19:05:01 +00:00
Rafael Espindola
65007fc49c add the SETULT condition code
llvm-svn: 30067
2006-09-03 13:19:16 +00:00
Chris Lattner
a82712d3bf Testcase (distilled from crafty) that crashed the local RA on X86.
llvm-svn: 30063
2006-09-03 07:14:47 +00:00
Owen Anderson
4bbb544645 Make this testcase actually recursive. I accidentally committed the wrong copy last time.
llvm-svn: 30059
2006-09-02 22:46:58 +00:00
Owen Anderson
0ea394ab0a Make ArgumentPromotion handle recursive functions that pass pointers in their recursive calls.
llvm-svn: 30057
2006-09-02 21:19:44 +00:00
Rafael Espindola
5c0443c41e add more condition codes
llvm-svn: 30056
2006-09-02 20:24:25 +00:00
Nick Lewycky
26f5df3031 Improve handling of SelectInst.
Reorder operations to remove duplicated work.
Fix to leave floating-point types out of the optimization.
Add tests to predsimplify.ll for SwitchInst and SelectInst handling.

llvm-svn: 30055
2006-09-02 19:40:38 +00:00
Evan Cheng
cdf49f8b10 Another "cyclic DAG" test case.
llvm-svn: 30043
2006-09-01 23:50:17 +00:00
Chris Lattner
dc8b45e90e Make this harder
llvm-svn: 30036
2006-09-01 22:07:00 +00:00
Chris Lattner
1e5cf5e60f simple multiclass example
llvm-svn: 30028
2006-09-01 21:14:37 +00:00
Nick Lewycky
56d79475b7 This program crashes the PredicateSimplifier. Not marked XFAIL because
the PredicateSimplifier is skipped in make check anyways.

llvm-svn: 29992
2006-08-31 03:13:05 +00:00
Chris Lattner
51ea6dd990 Bugfix for recent coallescer crash
llvm-svn: 29990
2006-08-30 23:03:35 +00:00
Chris Lattner
e3875d952f new testcase for pr687
llvm-svn: 29967
2006-08-29 23:09:59 +00:00
Evan Cheng
3b2d02f5cc This is also a 32-bit only test. x86-64 would pass fp parameters through XMM registers.
llvm-svn: 29964
2006-08-29 22:01:39 +00:00
Evan Cheng
00436b4bcb Fix test case so it passes on x86-64.
llvm-svn: 29963
2006-08-29 21:49:58 +00:00
Evan Cheng
46cb8d0649 Undo xfail.
llvm-svn: 29958
2006-08-29 18:49:41 +00:00
Nick Lewycky
9535a84c33 Add PredicateSimplifier pass. Collapses equal variables into one form
and simplifies expressions. This implements the optimization described
in PR807.

llvm-svn: 29947
2006-08-28 22:44:55 +00:00
Chris Lattner
f4df63d60f Update tests now that opt no longer reads .ll files
llvm-svn: 29927
2006-08-27 22:47:14 +00:00
Chris Lattner
7d72768564 Adjust tests now that opt doesn't read .ll files.
llvm-svn: 29926
2006-08-27 22:44:20 +00:00
Chris Lattner
3547c114ac opt no longer reads .ll files. Run llvm-as explicitly.
llvm-svn: 29924
2006-08-27 22:41:58 +00:00
Chris Lattner
ffc831f01a Move this test from Codegen/PowerPC to CodeGen/Generic. It fails on ia64,
but that's not the ppc backend's fault.

llvm-svn: 29914
2006-08-27 20:52:00 +00:00
Evan Cheng
791a1e1787 Improved codegen due to Chris' live interval joining changes.
llvm-svn: 29899
2006-08-26 07:38:36 +00:00
Rafael Espindola
39c3b906cb test case for varargs functions
llvm-svn: 29877
2006-08-25 17:57:36 +00:00
Owen Anderson
0aa48d0522 Implement unrolling of multiblock loops. This significantly improves the
utility of the LoopUnroll pass.

Also, add a testcase for multiblock-loop unrolling.

llvm-svn: 29859
2006-08-24 21:28:19 +00:00
Rafael Espindola
9e2a2dfb2d initial support for branches
llvm-svn: 29854
2006-08-24 13:45:55 +00:00
Rafael Espindola
4b2cedb933 run llc with -march=arm in select.ll
llvm-svn: 29821
2006-08-22 16:19:54 +00:00
Chris Lattner
b49a46cc66 This passes.
llvm-svn: 29813
2006-08-22 06:43:24 +00:00
Reid Spencer
b2b6c561f6 Use the correct syntax.
Note to self: test before committing things!

llvm-svn: 29810
2006-08-22 05:40:51 +00:00
Reid Spencer
1e2be093a5 Add a simple RUN line so this doesn't always fail. XFAIL this until
Rafael can get a chance to fix it.

llvm-svn: 29809
2006-08-22 05:37:43 +00:00
Bill Wendling
eaa5886483 Modified the RUN line from "analyze ..." to "opt -analyze ..." because
Reid removed the analyze tool and incorporated it into the opt tool.

llvm-svn: 29807
2006-08-22 04:37:51 +00:00
Rafael Espindola
474f6c5bf1 initial support for select
llvm-svn: 29802
2006-08-21 22:00:32 +00:00
Bill Wendling
33d04dd115 Added a check so that if we have two machine instructions in this form
MOV R0, R1
    MOV R1, R0

the second machine instruction is removed. Added a regression test.

llvm-svn: 29792
2006-08-21 07:33:33 +00:00
Reid Spencer
8245e5bde1 For PR872:
Shrinkify LLVM's footprint by removing the analyze tool and moving its
functionality into the opt tool. THis eliminates one of the largest tools
from LLVM and doesn't make opt much bigger because it already included
most of the analysis passes.  To get the old analyze functionality pass
the -analyze option to opt. Note that the integeration here is dead
simple. The "main" of analyze was just copied to opt and invoked if the
-analyze option was given. There may be opportunities for further
integration such as removing the distinction between transform passes
and analysis passes.

To use the analysis functionality, if you previously did this:
  analyze $FNAME -domset -disable-verify
you would now do this:
  opt -analyze $FNAME -domset -disable-verify
Pretty simple.

llvm-svn: 29762
2006-08-18 06:34:30 +00:00
Chris Lattner
9c89e09297 Temporarily xfail this test, evan will look at it in a week or so.
llvm-svn: 29760
2006-08-18 00:18:38 +00:00
Rafael Espindola
ff879761c1 add a "load effective address"
llvm-svn: 29748
2006-08-17 17:09:40 +00:00
Evan Cheng
474e530383 Another cyclic dag test case.
llvm-svn: 29742
2006-08-17 00:00:46 +00:00
Chris Lattner
3630dfc3c4 New testcase
llvm-svn: 29714
2006-08-15 23:45:28 +00:00
Chris Lattner
fde089b9ff new testcase from PR877
llvm-svn: 29672
2006-08-14 21:37:32 +00:00
Rafael Espindola
48bed9023d select code like
ldr rx, [ry, #offset]

llvm-svn: 29664
2006-08-14 19:01:24 +00:00
Chris Lattner
a227388ba0 New testcase, this used to take hours to loopsimplify.
llvm-svn: 29646
2006-08-12 05:23:27 +00:00
Chris Lattner
c18c59e272 New testcase
llvm-svn: 29606
2006-08-11 16:46:38 +00:00
Rafael Espindola
f0b265b48b fix the spill code
llvm-svn: 29583
2006-08-09 16:41:12 +00:00
Rafael Espindola
7bfbb91f75 initial support for variable number of arguments
llvm-svn: 29567
2006-08-08 13:02:29 +00:00
Evan Cheng
443ccaa0b3 New test case.
llvm-svn: 29558
2006-08-07 23:58:47 +00:00
Chris Lattner
af5d449730 converge on the right number of %'s :)
llvm-svn: 29527
2006-08-04 18:09:27 +00:00
Reid Spencer
f7a2abc102 Use the %llvm-gcc% variable to find llvm-gcc for those of us that don't
have it in our path and to ensure it uses the configured llvm-gcc not just
any one randomly placed in the path.

llvm-svn: 29522
2006-08-04 17:35:18 +00:00
Rafael Espindola
bd29d36be4 use a 'register pressure reducing' scheduler
make sure only one move is used in a hello world

llvm-svn: 29520
2006-08-04 12:48:42 +00:00
Chris Lattner
0b3b64730c new testcase for pr867
llvm-svn: 29514
2006-08-03 21:39:41 +00:00
Jim Laskey
b58da4d2f8 Applying for all.
llvm-svn: 29512
2006-08-03 20:56:35 +00:00
Jim Laskey
2a449667b4 Make all the schedulers continue to work.
llvm-svn: 29510
2006-08-03 20:49:29 +00:00
Chris Lattner
665fa52aba If dejagnu is not found, tell the user instead of bombing out with an
obscure error.

llvm-svn: 29421
2006-08-01 00:07:58 +00:00
Chris Lattner
f23f398729 New testcase for PR850.
llvm-svn: 29419
2006-07-31 23:25:17 +00:00
Chris Lattner
db30b8ea63 testcase for PR854.
llvm-svn: 29412
2006-07-31 17:31:48 +00:00
Chris Lattner
0cccbbaf5b Testcase for GCC bug28417, ensuring that we don't start getting it wrong
somehow.

llvm-svn: 29410
2006-07-30 17:46:37 +00:00
Chris Lattner
a7ee908421 New testcase for PR853
llvm-svn: 29407
2006-07-29 01:50:53 +00:00
Chris Lattner
8e317716ee allow this to pass on non-x86 machines
llvm-svn: 29303
2006-07-26 20:44:24 +00:00
Chris Lattner
34ff5a1684 Don't test an example
llvm-svn: 29301
2006-07-26 20:33:20 +00:00
Rafael Espindola
2919d4ce24 implement function calling of functions with up to 4 arguments
llvm-svn: 29274
2006-07-25 20:17:20 +00:00
Evan Cheng
f47b0d7853 XFAIL for now.
llvm-svn: 29272
2006-07-24 07:37:33 +00:00
Evan Cheng
5e2472d223 New vector shuffle test case.
llvm-svn: 29237
2006-07-20 23:51:01 +00:00
Evan Cheng
a57cdfb9a0 Fix a broken test.
llvm-svn: 29236
2006-07-20 23:50:13 +00:00
Chris Lattner
c4a5448546 New testcase for PR833
llvm-svn: 29225
2006-07-20 19:04:36 +00:00
Chris Lattner
052180076e new testcase
llvm-svn: 29207
2006-07-19 17:14:23 +00:00
Jim Laskey
2eaf83b69c Regression test for PR834.
llvm-svn: 29206
2006-07-19 16:37:15 +00:00
Chris Lattner
41c673c27a testcase for PR827
llvm-svn: 29119
2006-07-12 18:27:13 +00:00
Chris Lattner
6c1cbeb9bc Testcase for PR828.
llvm-svn: 29117
2006-07-12 16:59:09 +00:00
Evan Cheng
fd45f3f421 Fix test failure on non-Apple systems.
llvm-svn: 29116
2006-07-12 06:48:47 +00:00
Chris Lattner
729199a9c0 Testcase for PR826
llvm-svn: 29111
2006-07-11 20:29:21 +00:00
Chris Lattner
817d067973 New testcase for PR825.
llvm-svn: 29100
2006-07-11 02:52:37 +00:00
Chris Lattner
0c69615340 This is fixed
llvm-svn: 29098
2006-07-11 01:39:30 +00:00
Evan Cheng
52cc456236 Update.
llvm-svn: 29092
2006-07-10 21:49:09 +00:00
Chris Lattner
22f3e54a15 New testcase for folding bswaps into i16/i32 loads and stores.
llvm-svn: 29088
2006-07-10 20:53:53 +00:00
Chris Lattner
96b010ecb2 Add tests for 16-bit byteswaps.
llvm-svn: 29086
2006-07-10 20:25:01 +00:00
Owen Anderson
fed248a933 Add a test for the LCSSA issue I just fixed.
llvm-svn: 29077
2006-07-09 08:17:30 +00:00
Chris Lattner
e5d864fadc Testcase for PR820
llvm-svn: 29070
2006-07-07 21:36:42 +00:00
Evan Cheng
e5204df53a Add a 64-bit test case.
llvm-svn: 29069
2006-07-07 21:36:24 +00:00
Evan Cheng
a75e709ece New vector shuffle test case.
llvm-svn: 29060
2006-07-07 17:54:24 +00:00
Evan Cheng
d9412a6ba7 Update
llvm-svn: 29059
2006-07-07 17:54:10 +00:00
Chris Lattner
3a03a7b965 Xfail this
llvm-svn: 29040
2006-07-07 04:43:24 +00:00
Evan Cheng
b67d25bb2f Update test case.
llvm-svn: 28994
2006-07-05 20:46:27 +00:00
Andrew Lenharth
22bd57c1fe Legalize does not handle this correctly
llvm-svn: 28991
2006-07-03 22:46:02 +00:00
Andrew Lenharth
17cd7df3ac not really XFailing these, as only incompleteness is wrong in the graph
llvm-svn: 28967
2006-06-28 20:14:30 +00:00
Andrew Lenharth
81620fdf19 change I flag on test
llvm-svn: 28966
2006-06-28 20:07:36 +00:00
Chris Lattner
9c4d1db50d Testcase that crashes the ppc backend.
llvm-svn: 28964
2006-06-28 18:29:33 +00:00
Chris Lattner
a7feb94eda Infinite loop in instcombine that nate hit.
llvm-svn: 28960
2006-06-28 17:34:28 +00:00
Chris Lattner
3ec808d0a9 New testcase, reduced by nate, which crashes DSE
llvm-svn: 28949
2006-06-27 23:47:39 +00:00
Owen Anderson
c954a12d6c Testcase that Nate found where LoopUnswitch chokes on eliminating a dead case
from a switch instruction.

llvm-svn: 28946
2006-06-27 22:24:59 +00:00
Chris Lattner
7104d3b8a7 testcase that crashes dead arg elim.
llvm-svn: 28942
2006-06-27 20:58:41 +00:00
Rafael Espindola
14a59f5b6e initial implementation of ARMRegisterInfo::eliminateFrameIndex
fixes test/Regression/CodeGen/ARM/ret_arg5.ll

llvm-svn: 28854
2006-06-18 00:08:07 +00:00
Chris Lattner
9d6d1e0236 Just a minor tweak so you can run things like:
TestRunner.sh Foo/Bar/test.ll

instead of just

TestRunner.sh test.ll

which is convenient in conjunction with find.

llvm-svn: 28852
2006-06-17 08:06:33 +00:00
Chris Lattner
9e284be377 new testcase that crashes indvars
llvm-svn: 28849
2006-06-17 01:01:30 +00:00
Jim Laskey
a5e841799d PR# not associated with XFAIL
llvm-svn: 28822
2006-06-16 16:57:43 +00:00
Jim Laskey
86cc6fd882 debug info is alive again
llvm-svn: 28821
2006-06-16 16:50:24 +00:00
Chris Lattner
d64f3aac5e This test isn't implemented yet
llvm-svn: 28820
2006-06-16 16:36:50 +00:00
Chris Lattner
89e4eb7805 New testcase, the linker is not merging alignments right.
llvm-svn: 28811
2006-06-16 01:20:58 +00:00
Jim Laskey
7b72f6e4f0 Make sure global doubles and vectors are aligned properly.
llvm-svn: 28805
2006-06-15 19:35:07 +00:00
Chris Lattner
756231f26f new testcase, instcombine should turn these into llvm.bswap intrinsics.
llvm-svn: 28802
2006-06-15 19:06:42 +00:00
Chris Lattner
cf6b3bb376 new testcase, not currently working.
llvm-svn: 28786
2006-06-14 21:24:57 +00:00
Chris Lattner
49a37a58ac new testcase, distilled from povray
llvm-svn: 28778
2006-06-14 04:45:45 +00:00
Jim Laskey
422c9a610a My original test case was bogus. Reverting to crasher case.
llvm-svn: 28767
2006-06-13 15:22:49 +00:00
Jim Laskey
7d9997132e Tests to make sure that ComputeMaskedBits discards bits for shifts.
llvm-svn: 28766
2006-06-13 13:10:44 +00:00
Chris Lattner
8e718346df TEstcase that makes simplifycfg infloop.
llvm-svn: 28757
2006-06-12 20:17:44 +00:00
Chris Lattner
317d8c2ae3 New testcase that crashes llc
llvm-svn: 28754
2006-06-12 18:24:32 +00:00
Owen Anderson
4796bc9bda Make sure that LCSSA works properly when it encounters an exit block that has
more than one predecessor inside the loop.

llvm-svn: 28749
2006-06-12 07:05:47 +00:00
Chris Lattner
864081185f Add new testcase
llvm-svn: 28732
2006-06-08 18:26:48 +00:00
Chris Lattner
3f67ad5d1d New testcase, using "AX" as i32.
llvm-svn: 28730
2006-06-08 18:20:13 +00:00
Owen Anderson
a7969cf3bc Update the regression tests, and add a new one encountered while compiling crtend.
llvm-svn: 28681
2006-06-04 00:56:30 +00:00
Rafael Espindola
592953affb added some tests for argument passing
llvm-svn: 28644
2006-06-01 22:01:25 +00:00
Chris Lattner
a3888ec9bb testcase for the recent inliner improvement.
llvm-svn: 28643
2006-06-01 21:54:58 +00:00