Commit Graph

1555 Commits

Author SHA1 Message Date
Chris Lattner
65a88e83e3 New testcases to test LICM of call instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12414 91177308-0d34-0410-b5e6-96231b3b80d8
2004-03-15 04:10:08 +00:00
Chris Lattner
e94fd1963d New testcase that causes the code extractor to generate bogus code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12404 91177308-0d34-0410-b5e6-96231b3b80d8
2004-03-15 00:08:49 +00:00
Chris Lattner
3b04a7a131 New testcase that crashes the loop extractor
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12399 91177308-0d34-0410-b5e6-96231b3b80d8
2004-03-14 22:16:52 +00:00
Chris Lattner
6cc83750b8 New testcase that crashes the -lowerswitch pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12383 91177308-0d34-0410-b5e6-96231b3b80d8
2004-03-14 04:13:57 +00:00
Chris Lattner
fc44806194 New testcase that crashes the loop extractor
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12376 91177308-0d34-0410-b5e6-96231b3b80d8
2004-03-14 03:03:59 +00:00
Chris Lattner
ffd072af91 New testcase, distilled from povray I think.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12364 91177308-0d34-0410-b5e6-96231b3b80d8
2004-03-13 23:53:04 +00:00
Chris Lattner
eb416e85bc Oh right, casts can interfere. Test this too
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12354 91177308-0d34-0410-b5e6-96231b3b80d8
2004-03-13 00:11:38 +00:00
Chris Lattner
99780ce874 new testcases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12352 91177308-0d34-0410-b5e6-96231b3b80d8
2004-03-12 23:52:51 +00:00
Chris Lattner
1306089055 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12348 91177308-0d34-0410-b5e6-96231b3b80d8
2004-03-12 22:38:31 +00:00
Misha Brukman
a24653cdfc Test the mod/ref analysis in DSA.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12333 91177308-0d34-0410-b5e6-96231b3b80d8
2004-03-12 06:17:22 +00:00
Chris Lattner
f820e3b4b8 test instruction combiner opts for select instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12328 91177308-0d34-0410-b5e6-96231b3b80d8
2004-03-12 06:01:00 +00:00
Chris Lattner
6551ea98b2 New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12306 91177308-0d34-0410-b5e6-96231b3b80d8
2004-03-12 05:50:02 +00:00
Chris Lattner
a22ef48fee New testcase for PR284: [indvars] Induction variable analysis violates LLVM invariants
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12274 91177308-0d34-0410-b5e6-96231b3b80d8
2004-03-10 21:41:47 +00:00
Chris Lattner
0b67f04a1c New testcase for PR275
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12266 91177308-0d34-0410-b5e6-96231b3b80d8
2004-03-10 03:07:45 +00:00
Chris Lattner
c1a5bacea8 New testcase for PR276: llvm-g++ does not mangle method names that match stdlib function names
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12265 91177308-0d34-0410-b5e6-96231b3b80d8
2004-03-09 22:51:03 +00:00
Chris Lattner
313b84b662 Checkin testcase for PR261
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12249 91177308-0d34-0410-b5e6-96231b3b80d8
2004-03-09 00:55:58 +00:00
Chris Lattner
3c6d4b4f81 New testcase for folding in some important situations. The first two
come up a lot in the code generated by the C++ front-end for pointers
to member functions.  See PR166.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12217 91177308-0d34-0410-b5e6-96231b3b80d8
2004-03-08 06:17:15 +00:00
Chris Lattner
4cfeac8f57 New testcase for PR269
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12211 91177308-0d34-0410-b5e6-96231b3b80d8
2004-03-08 05:35:12 +00:00
Chris Lattner
342c9185af Testcase that crashes the C front-end.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12209 91177308-0d34-0410-b5e6-96231b3b80d8
2004-03-08 04:41:32 +00:00
Chris Lattner
e0fa368f22 New code-quality testcase.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12205 91177308-0d34-0410-b5e6-96231b3b80d8
2004-03-08 02:12:36 +00:00
Chris Lattner
95481b1d06 New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12201 91177308-0d34-0410-b5e6-96231b3b80d8
2004-03-08 00:58:19 +00:00
Chris Lattner
afa38575aa New testcase for missed case
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12199 91177308-0d34-0410-b5e6-96231b3b80d8
2004-03-07 22:52:41 +00:00
Chris Lattner
b9f266a609 New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12192 91177308-0d34-0410-b5e6-96231b3b80d8
2004-03-07 21:28:54 +00:00
Chris Lattner
2b39c91a40 Testcase for a bug that caused a whole bunch of testcases to die in the nightly
tester last night.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12011 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-29 22:15:51 +00:00
Chris Lattner
39bd69aa55 Add a testcase for switch instruction induction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11965 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-28 21:30:39 +00:00
Chris Lattner
eb7d6d016e fix a bug in the testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11949 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-28 17:33:21 +00:00
Chris Lattner
7b6ee7d8f1 new testcase for a tblgen bug that alkis ran into
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11947 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-28 16:43:44 +00:00
Chris Lattner
43c4361178 new testcase for intrinsic folding
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11943 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-28 05:28:42 +00:00
Chris Lattner
efd74a0159 The instruction combining pass removes dead instructions, there is no need
to run the die pass after it.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11942 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-28 05:26:06 +00:00
Misha Brukman
870e587d5d Two testcases for loops: one with outputs, one without.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11934 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-28 03:20:41 +00:00
Chris Lattner
1aed1c7b3b Fix a verifier bug that was preventing us from ripping povray+libpng to pieces.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11912 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-27 17:26:08 +00:00
Chris Lattner
f7b0041fb5 The instcombiner should canonicalize comparisons.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11899 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-27 06:27:07 +00:00
John Criswell
fad5c3a646 Fixed test case to actually check for the static declaration.
Oops.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11886 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-26 22:56:13 +00:00
John Criswell
726f0b8d36 Regression tests for PR258 and PR259.
2004-02-26-FPNotPrintableConstants.llx ensures that constants used in an
LLVM program are declared static if they are assigned to global variables.
2004-02-26-LinkOnceFunctions.llx ensures that linkonce functions get the
weak attribute.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11885 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-26 22:55:11 +00:00
Chris Lattner
26b6dac640 New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11851 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-25 23:34:04 +00:00
Brian Gaeke
f44f72715d Note that this test is currently expected to fail.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11831 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-25 20:34:02 +00:00
Chris Lattner
2189a76024 New testcase. Switch instructions that go to switch instructions should be
merged.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11796 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-24 07:21:09 +00:00
Chris Lattner
d1eaebef49 The simplifycfg pass should be able to turn stuff like:
if (X == 4 || X == 7)
and
  if (X != 4 && X != 7)

into switch instructions.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11791 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-24 05:34:44 +00:00
Chris Lattner
86171b9203 Test for the other way also
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11767 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-23 20:24:16 +00:00
Chris Lattner
cedfd2c78d New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11766 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-23 20:19:51 +00:00
Chris Lattner
3c4de7fbe0 Add tests for casts that should be eliminated
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11741 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-23 07:16:03 +00:00
Chris Lattner
19e40ade3d Handle the unsigned form as well
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11739 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-23 06:37:33 +00:00
Chris Lattner
f4821745df Add a slight variant of test10
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11736 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-23 05:59:52 +00:00
Chris Lattner
1dda055e55 This multiply can be eliminated
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11733 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-23 05:38:47 +00:00
Chris Lattner
16865af5d5 Add testcase for the casts that are missing in PR249
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11727 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-23 03:21:09 +00:00
Chris Lattner
0ca4418b95 Test that the instruction combiner can fold away a cast in a GEP instruction.
This occurs in 164.gzip, as a result of it declaring arrays extern.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11701 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-22 05:24:09 +00:00
Chris Lattner
01533ff652 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11682 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-20 23:05:43 +00:00
Chris Lattner
54e4e20286 New testcase, do not emit a call to __builtin_sqrt, emit a call to sqrt instead!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11668 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-20 19:08:12 +00:00
Chris Lattner
9d7c585982 PR244: [llvm-gcc] miscompilation when a function is re-declared as static
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11661 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-20 17:32:24 +00:00
Chris Lattner
bf6fd9d832 New testcase for PR245
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11566 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-17 21:58:29 +00:00
Chris Lattner
5ea27d820a New testcase, details in the comments
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11495 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-16 06:35:19 +00:00
Chris Lattner
d8bed768ab A new testcase for a situation that occurs in 181.mcf
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11493 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-16 05:06:36 +00:00
Chris Lattner
72695f7bb7 Add a test for the "swap idiom", which LLVM should be able to unravel.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11491 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-16 03:53:44 +00:00
Chris Lattner
a783c02749 Test for xor chains
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11489 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-16 01:19:52 +00:00
Chris Lattner
3a0628a29a Moving CBE tests to test/Regression/CodeGen/CBackend
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11486 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-15 22:56:30 +00:00
Chris Lattner
b83530f956 New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11480 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-15 22:14:46 +00:00
Chris Lattner
07b976bb9e Testcase for PR205: [llvmgcc] C front-end does not emit 'zeroinitializer' when possible
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11461 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-15 02:19:08 +00:00
Chris Lattner
8710da3c58 Test for actual support, not just for lack of crashage
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11460 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-15 01:21:39 +00:00
Chris Lattner
d31dd3278f New testcase for PR237: [x86] wierd stack/frame pointer manipulation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11456 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-15 00:21:04 +00:00
Chris Lattner
e488d64eb2 new testcase for llvm.memset generation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11440 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-14 04:26:15 +00:00
Chris Lattner
208d080444 Testcase for builtin frame/return address
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11436 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-14 04:06:48 +00:00
Chris Lattner
90cf614aa5 Test that the CFE compiles memset and bzero to llvm.memset
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11435 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-14 03:46:37 +00:00
Chris Lattner
d64e0df32b Add a testcase for the frameaddress and returnaddress intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11434 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-14 02:55:47 +00:00
Chris Lattner
4a6f9a40b7 Test that the code generator supports these intrinsics
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11432 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-14 02:51:40 +00:00
Chris Lattner
aa82943a1d Update tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11418 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-13 23:33:17 +00:00
Chris Lattner
6f3ff3e34d New testcase. The CFE should not generate illegal LLVM intrinsics, even if
the input program is horribly broken (like 126.gcc).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11401 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-13 22:04:41 +00:00
Chris Lattner
c201a7a911 Right, memcpy READS memory too :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11373 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-13 16:09:37 +00:00
Chris Lattner
7f007250e1 New testcase for support for memcpy/memmove
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11372 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-13 16:04:51 +00:00
Chris Lattner
7266f41e56 New testcase for PR233: [llvmgcc] Structure copies result in a LOT of code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11359 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-12 21:06:52 +00:00
Chris Lattner
cb7cb71bc8 Test that we get rep movs when calling memcpy
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11352 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-12 17:53:43 +00:00
Chris Lattner
115e5e6abb Basic functionality testing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11312 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-11 05:00:27 +00:00
Chris Lattner
54636af39d New feature testcase for simplifycfg.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11306 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-11 03:35:04 +00:00
Chris Lattner
f629496776 Right, define the LPROF variable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11273 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-10 19:46:14 +00:00
Chris Lattner
79caafeefe Move this testcase out of /home/vadve/lattner/cvs/llvm/test/Programs/LLVMSource,
as it fails.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11250 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-09 22:52:25 +00:00
Chris Lattner
8b391fb430 New testcase, code generators should support invoke/unwind
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11192 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-08 19:40:58 +00:00
Chris Lattner
7f5dd4a4e0 New testcase for PR223: Loopsimplify incorrectly updates dominator information
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11136 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-05 21:11:38 +00:00
Chris Lattner
18b34e8b1b Add another test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11062 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-01 22:47:16 +00:00
Chris Lattner
e5ec955fa4 New testcase for PR218
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11059 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-01 18:16:06 +00:00
Chris Lattner
7f430a5049 New testcase for better mod/ref information that basicaa can provide
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11023 91177308-0d34-0410-b5e6-96231b3b80d8
2004-01-30 22:18:47 +00:00
Chris Lattner
6e1f3ec6cd New testcase for problem brian ran into
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10966 91177308-0d34-0410-b5e6-96231b3b80d8
2004-01-23 00:54:26 +00:00
Chris Lattner
78c146ffc5 New testcase for incorrect bytecode reading of MAXLONG. The reader is getting
it as zero.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10927 91177308-0d34-0410-b5e6-96231b3b80d8
2004-01-20 19:00:12 +00:00
John Criswell
1119d7d394 Remove the use of LLVMGCCARCH. Instead, query the compiler for the
location of libgcc.a; that will tell us the name of the directory to find
the libraries that we're looking for.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10903 91177308-0d34-0410-b5e6-96231b3b80d8
2004-01-16 21:53:23 +00:00
Chris Lattner
f6e180324e new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10843 91177308-0d34-0410-b5e6-96231b3b80d8
2004-01-14 05:53:11 +00:00
Brian Gaeke
048a1d8db7 You know you like Makefiles with fewer variables. Next up on the victim list
is TOOLS, which is how you say LLVMTOOLCURRENT in Oldspeak.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10832 91177308-0d34-0410-b5e6-96231b3b80d8
2004-01-13 22:22:19 +00:00
Brian Gaeke
a5b567516f Get rid of dead defns of LCC, LCXX, LAS, as per FIXME.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10829 91177308-0d34-0410-b5e6-96231b3b80d8
2004-01-13 22:10:06 +00:00
Brian Gaeke
844c546acf Fix overzealous fixme fixing
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10827 91177308-0d34-0410-b5e6-96231b3b80d8
2004-01-13 21:59:51 +00:00
Brian Gaeke
5c59be9552 Remove dead definitions of NATGCC and CP, and dead .tll, .tbc rules.
Make should continue even if compilation cmds fail, for the sake of
the nightly tester, so use minuses on them.

Use LLVMAS, LLVMGCC, LLVMGXX instead of LAS, LCC, LCXX (as per FIXME).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10825 91177308-0d34-0410-b5e6-96231b3b80d8
2004-01-13 21:56:30 +00:00
Chris Lattner
75d1412cc2 New testcase for symbolic constant folding opportunities that LLVM should get.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10811 91177308-0d34-0410-b5e6-96231b3b80d8
2004-01-13 05:32:27 +00:00
Chris Lattner
20cd43b2f6 Testcase for PR204
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10769 91177308-0d34-0410-b5e6-96231b3b80d8
2004-01-12 05:01:48 +00:00
Chris Lattner
e845b1aa79 Add support for %llvmgcc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10768 91177308-0d34-0410-b5e6-96231b3b80d8
2004-01-12 05:01:13 +00:00
Chris Lattner
debcbd0a46 Test to make sure we can SCCP load instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10766 91177308-0d34-0410-b5e6-96231b3b80d8
2004-01-12 04:28:32 +00:00
Chris Lattner
ff2ab4db20 New testcase, allow folding of binary operators that use PHI nodes, as long
as the result of the binary operator is always constant.  This does not require
the PHI itself to be constant though.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10762 91177308-0d34-0410-b5e6-96231b3b80d8
2004-01-12 03:57:00 +00:00
Chris Lattner
33a79d73bd New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10760 91177308-0d34-0410-b5e6-96231b3b80d8
2004-01-12 01:17:42 +00:00
Chris Lattner
c9f75b5700 This isn't really an assembler test. This tests to make sure the
ConstantExpr::getGetElementPtr method folds two getelementptr instructions
when possible.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10758 91177308-0d34-0410-b5e6-96231b3b80d8
2004-01-11 23:56:03 +00:00
Chris Lattner
e6b72a2518 Testcase for PR202
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10715 91177308-0d34-0410-b5e6-96231b3b80d8
2004-01-08 17:15:09 +00:00
Chris Lattner
019314cdc7 restore comments to this file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10704 91177308-0d34-0410-b5e6-96231b3b80d8
2004-01-06 05:37:45 +00:00
Chris Lattner
94276b6f93 An example testcase for use in the debugger. Currently you can do stuff like
stepping, next'ing, finish'ing, stacktraces, source listings, etc.  You can't
print program variables yet though.

Oh, and I lost my nice commented version of funccall.ll  :(

Test with:
llvm-as funccall.ll
llvm-db funccall.bc
<arguments>

This is not automatically testable yet, and the C front-end doesn't support
debug information yet.  That said, it's a start.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10689 91177308-0d34-0410-b5e6-96231b3b80d8
2004-01-05 05:32:40 +00:00
John Criswell
a29b94dd5a Regression test for initializers with members of unknown size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10678 91177308-0d34-0410-b5e6-96231b3b80d8
2004-01-01 23:58:07 +00:00
Chris Lattner
579155ef75 testcase for PR198
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10660 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-31 03:24:14 +00:00
Chris Lattner
14e1726b2e new testcase for cananonicalization of subtracts
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10581 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-22 05:24:45 +00:00
Chris Lattner
7610a287c6 New testcase to see if -indvars can promote pointer arithmetic to array accesses
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10577 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-22 05:00:13 +00:00
Chris Lattner
595bb97fc7 New testcase for PR194
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10568 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-21 19:06:15 +00:00
Chris Lattner
7fe178681b New testcase for missed optimization
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10538 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-19 09:08:15 +00:00
Chris Lattner
bb8d661b27 New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10533 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-19 06:54:37 +00:00
Chris Lattner
215da0c040 New testcase, for PR185
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10471 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-15 17:33:41 +00:00
Chris Lattner
d598561318 New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10468 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-15 00:03:53 +00:00
Chris Lattner
2040d6ecbd new test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10466 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-14 23:39:34 +00:00
Chris Lattner
15beaf7d65 Testcase for PR179
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10455 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-14 04:46:07 +00:00
Chris Lattner
de454ffb5b Rename variable to avoid confusing it with the global G
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10411 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-11 22:49:32 +00:00
Chris Lattner
0ac4d9247b New testcase that LICM is breaking crafty on
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10408 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-11 22:15:11 +00:00
Chris Lattner
258f49cb84 Fix test that was failing because we were optimizing the program better than expected :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10404 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-11 21:06:43 +00:00
Chris Lattner
5211296580 New testcase for PR86
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10403 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-11 19:16:30 +00:00
Brian Gaeke
f19ae4c9db Separate out target for cleaning up qmtest garbage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10395 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-11 04:48:38 +00:00
Chris Lattner
da7d0693b5 A new testcase, reduced by bugpoint
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10384 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-10 20:39:53 +00:00
Chris Lattner
7d104178aa new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10381 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-10 20:18:09 +00:00
Chris Lattner
7277826d7e New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10374 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-10 17:57:38 +00:00
Chris Lattner
baf9d2ea62 New testcase which caused a bunch of tests to break last night with more
aggressive LICM


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10372 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-10 17:09:35 +00:00
Chris Lattner
94046b2cc9 new testcase, checking to ensure we handle yet-another spiffy case correctly
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10357 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-10 05:42:23 +00:00
Brian Gaeke
47c1b6d740 Don't assume that system headers define 'uint' or 'ulong' as types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10356 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-10 05:06:38 +00:00
Chris Lattner
a8d9c83ebe Yet another hard testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10349 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-09 23:29:25 +00:00
Chris Lattner
d0069a08b9 Add a new testcase which breaks the sinker because the loop canonnicalization
pass does not do a canonnicalization that the sinker wants.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10346 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-09 22:05:08 +00:00
Chris Lattner
caef3cccf5 Fix buggy test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10345 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-09 21:45:23 +00:00
Chris Lattner
87d9e69995 New testcase for sinking operations from loops with multiple exits
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10344 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-09 21:40:36 +00:00
Chris Lattner
8f25f46843 Make the test a bit harder so that we test to ensure that _both_ instructions
are sunk


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10343 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-09 20:50:20 +00:00
Chris Lattner
2faaddab60 New testcases for LICM improvement: code sinking.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10339 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-09 16:56:51 +00:00
Chris Lattner
612ac2dfaa Improve portability with Mac OS/X
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10338 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-09 16:49:12 +00:00
Chris Lattner
16442cba7c Improve testcase portability on OS/X
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10337 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-09 16:48:24 +00:00
Chris Lattner
bb9fc2c461 New testcase that is not actually handled yet, but should be in the future.
This is here to remind me to get back to this after a while.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10336 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-09 16:26:42 +00:00
Chris Lattner
6c3a21a368 Whoops, forgot to check this in. :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10334 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-08 23:41:09 +00:00
Chris Lattner
62d0f73300 New testcase for automatic insertion of accumulator variables to eliminate
tail recursion


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10331 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-08 23:16:25 +00:00
Chris Lattner
e11700b541 New testcase for PR165
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10314 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-08 06:18:37 +00:00
Chris Lattner
63c08be5e7 New testcase, this should be -tailcallelim'inated
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10311 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-08 05:32:48 +00:00
Chris Lattner
120fb19e1b New testcase that the raiseallocations pass should be able to handle.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10304 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-07 01:25:36 +00:00
Chris Lattner
f6968f3886 Move rule to top-level makefile
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10255 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-29 09:49:14 +00:00
Chris Lattner
b895fb06ec Testcase for duplicated cleanup work (PR11). Note that this testcase is not actually
tested automatically, so it is practically useless.  However, it seemed silly to throw
away my testcase, so here it is.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10253 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-29 09:10:50 +00:00
Chris Lattner
7219a21138 new testcase for problem causing 2003-10-12-GlobalVarInitializers failures
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10251 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-29 05:19:15 +00:00
Chris Lattner
f095db1237 Testcase for PR160
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10247 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-28 01:32:03 +00:00
Chris Lattner
2bc9988b1a New testcase for PR158
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10246 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-27 21:25:07 +00:00
Chris Lattner
1f80115a81 testcase for PR159
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10244 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-27 20:47:16 +00:00
John Criswell
1b4fb5a32c Renamed intermediate values that used the same type and name as previous
values.  All of these files should assemble now.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10239 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-26 14:45:37 +00:00
Chris Lattner
7dd9334270 Testcase for PR157
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10237 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-26 07:35:52 +00:00
Chris Lattner
f7d10b7f86 testcase for PR 148
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10206 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-25 08:45:38 +00:00
Chris Lattner
edaa67446c Testcase for PR147
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10205 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-25 03:58:49 +00:00
Brian Gaeke
3d55eda9da Unbreak this test case - llvm-as no longer tolerates redefining names in any
given type plane.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10169 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-22 06:18:35 +00:00
Brian Gaeke
95c03fd204 Strengthen test case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10166 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-22 05:01:57 +00:00
Brian Gaeke
b1ef7d6e35 C Writer was dumping core on this test case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10165 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-22 04:58:25 +00:00
Chris Lattner
be8d29909e New testcase that breaks the pruneeh pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10162 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-22 02:20:08 +00:00
Chris Lattner
e952f233a0 New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10144 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-21 22:28:49 +00:00
Brian Gaeke
aa7411818c Clean more qmtest files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10125 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-21 01:12:47 +00:00
Chris Lattner
0ac5af08dc Fix an all too common form of the 'Found global types that are not compatible' warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10122 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-20 21:04:35 +00:00