1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-28 14:32:51 +01:00
Commit Graph

2293 Commits

Author SHA1 Message Date
Chris Lattner
8ee8abb344 Add testcases for new rlwinm cases handled, patch by Jim Laskey!
llvm-svn: 22730
2005-08-09 20:24:16 +00:00
Chris Lattner
fbab237d76 new reg test for a failure last night on ppc/darwin
llvm-svn: 22725
2005-08-09 18:07:45 +00:00
Chris Lattner
957221c6b7 This is now implemented
llvm-svn: 22723
2005-08-09 00:19:44 +00:00
Chris Lattner
7052f4e5b7 A testcase I don't want to break in the future
llvm-svn: 22718
2005-08-08 22:13:49 +00:00
Chris Lattner
5c7ea6550b new testcase, not implemented yet
llvm-svn: 22703
2005-08-08 06:23:47 +00:00
Chris Lattner
950c1172f3 It is better to not depend on CSE to share multiplies due to IV insertion.
This testcase checks that only one mul is present in the output code, as it
should be.

llvm-svn: 22701
2005-08-08 05:46:51 +00:00
Chris Lattner
98c45c5a6c These are both implemented by a recent LSR patch
llvm-svn: 22700
2005-08-08 05:29:51 +00:00
Chris Lattner
d48157e204 New testcases for PR615
llvm-svn: 22689
2005-08-07 04:25:39 +00:00
Chris Lattner
19959252ea teach TestRunner about prcontext
llvm-svn: 22683
2005-08-05 19:48:29 +00:00
Chris Lattner
ac433422c5 two simple testcases loopreduce should handle but does not yet currently
llvm-svn: 22682
2005-08-05 19:47:39 +00:00
Chris Lattner
fe680add54 new testcase that condprop should handle. The PHI node becomes useless
after threading the branch, because both operands are the same value.

llvm-svn: 22668
2005-08-05 00:59:55 +00:00
Chris Lattner
f0b47e8fcc add a testcase nate requested
llvm-svn: 22663
2005-08-04 22:49:32 +00:00
Chris Lattner
1800405b3d This should not run lli, that is for llvm-test.
llvm-svn: 22656
2005-08-04 19:56:35 +00:00
Chris Lattner
bc93ac834b None of these tests should require a working lli, they are codegen tests,
not execution tests.

llvm-svn: 22655
2005-08-04 19:55:39 +00:00
Chris Lattner
229765dee9 This testcase now passes
llvm-svn: 22651
2005-08-04 19:08:07 +00:00
Chris Lattner
4058094dce this is not implemented by lsr yet
llvm-svn: 22642
2005-08-04 01:18:48 +00:00
Chris Lattner
215515c80b this now passes
llvm-svn: 22636
2005-08-03 22:51:40 +00:00
Chris Lattner
e69b731c71 Fix this to test the BE we care about
llvm-svn: 22631
2005-08-03 21:01:46 +00:00
Chris Lattner
31641138cf new testcase for PR612
llvm-svn: 22627
2005-08-03 18:51:15 +00:00
Chris Lattner
a9161fc936 new testcase for PR612
llvm-svn: 22625
2005-08-03 18:33:48 +00:00
Nate Begeman
3c0178c886 Add a couple rlwinm tests for bitfield clears
llvm-svn: 22624
2005-08-03 18:27:17 +00:00
Nate Begeman
5a5045430c Update rlwimi tests to catch all the cases we care about
llvm-svn: 22623
2005-08-03 18:11:23 +00:00
Chris Lattner
ed6b5692c7 Testcase that used to crash simplifycfg
llvm-svn: 22622
2005-08-03 18:01:07 +00:00
Chris Lattner
a0cf824bef un-xfail this
llvm-svn: 22614
2005-08-03 00:58:44 +00:00
Chris Lattner
0bd6f5c29f This fails for now
llvm-svn: 22608
2005-08-03 00:10:28 +00:00
Chris Lattner
296e1735df New testcase that caused simplifycfg to crash
llvm-svn: 22583
2005-08-02 03:23:03 +00:00
Chris Lattner
e229e6ff4b temporarily fail these two tests until LSR evolves to support them
llvm-svn: 22567
2005-08-01 17:10:50 +00:00
Chris Lattner
6227ce2fb2 this tests every fp-to-integer conversion
llvm-svn: 22562
2005-07-30 01:33:38 +00:00
Chris Lattner
941a101c38 New testcase for PR610
llvm-svn: 22545
2005-07-28 20:18:33 +00:00
Chris Lattner
bd89428daa Testcase for PR607
llvm-svn: 22519
2005-07-26 22:08:53 +00:00
Andrew Lenharth
3f4c4133e5 make sure we always handle small negatives well
llvm-svn: 22503
2005-07-22 21:53:35 +00:00
Chris Lattner
df5e211e12 new testcase for PR602
llvm-svn: 22495
2005-07-21 21:55:08 +00:00
Chris Lattner
408aab3fd9 If errno doesn't matter (e.g. in -ffast-math scenarios), sqrt* should be
compiled to llvm.sqrt.

llvm-svn: 22488
2005-07-21 01:09:27 +00:00
Chris Lattner
85f898e908 Allow this to pass on non-linux systems as well, such as darwin
llvm-svn: 22484
2005-07-20 19:12:00 +00:00
Chris Lattner
abf3f0819e set the target triple so that we don't fail due to X86 abi issues
llvm-svn: 22479
2005-07-20 03:56:48 +00:00
John Criswell
434270ec55 Regression test for PR#596: Make sure that negation of a minus doesn't
turn into a C predecrement operator.

llvm-svn: 22438
2005-07-14 19:56:03 +00:00
Chris Lattner
3df095d677 new testcase for PR593
llvm-svn: 22418
2005-07-13 01:57:39 +00:00
Chris Lattner
63cefe75ad new testcase that crashes llc on x86/ppc. Not generated by C/C++ or LLVM
though.

llvm-svn: 22416
2005-07-13 01:42:03 +00:00
Reid Spencer
e92540ca6b Add a test that runs the ParallelJIT example program to ensure that the
JIT can run against a multi-threaded program without getting its data
structures messed up. Also had to add the examples directory to the path
for the tests so that ParallelJIT can be found.

llvm-svn: 22415
2005-07-13 00:35:12 +00:00
Chris Lattner
571f19ea3e New testcase distilled from a large chunk of code Misha sent me.
llvm-svn: 22347
2005-07-07 20:39:45 +00:00
Chris Lattner
b4c2302706 new testcase for PR590
llvm-svn: 22317
2005-06-30 07:28:54 +00:00
Reid Spencer
b0798d1f2b Fix this test case to actually test the new va_arg instruction not the
old vaarg instruction.

llvm-svn: 22256
2005-06-18 20:27:32 +00:00
Andrew Lenharth
f6b033a01f new vararg test
llvm-svn: 22252
2005-06-18 18:30:37 +00:00
Chris Lattner
e1cd9ee2f5 new testcase for PR586
llvm-svn: 22235
2005-06-17 03:58:30 +00:00
Chris Lattner
6da2f63146 new testcase for PR585
llvm-svn: 22233
2005-06-17 02:04:47 +00:00
Chris Lattner
53d776a6fd new testcase for PR584
llvm-svn: 22231
2005-06-17 01:45:03 +00:00
Chris Lattner
95b9f36fc5 new testcase for PR583
llvm-svn: 22226
2005-06-16 04:55:29 +00:00
Chris Lattner
a3f66fc00f new testcase for PR580
llvm-svn: 22222
2005-06-15 22:42:53 +00:00
Chris Lattner
ec6628efb7 new testcase for PR582
llvm-svn: 22220
2005-06-15 21:28:55 +00:00
Chris Lattner
8f5ef2dfd9 new testcase for PR579
llvm-svn: 22218
2005-06-15 21:11:18 +00:00
Chris Lattner
8c3a424fb0 new testcase for PR577
llvm-svn: 22216
2005-06-15 20:52:39 +00:00
Reid Spencer
0e5d8ea117 Remove trailing blank line, just to test whether the new commit script
is going to credit the commit correctly or not.

llvm-svn: 22165
2005-05-21 01:29:30 +00:00
Chris Lattner
93c0328e89 new testcase
llvm-svn: 22160
2005-05-20 22:25:44 +00:00
Chris Lattner
510fbb3959 New testcase that crashes simplifycfg, identified accidentally by JohnMC
llvm-svn: 22157
2005-05-20 22:19:34 +00:00
Reid Spencer
e2d15e6fe9 Finally get the quoting right for both Unix and Windows for the llvmgcc and
llvmgxx programs. dejagnu doesn't understand single quote and we need to
pass double quotes through to the shell in order to escape blanks in the
paths. This patch uses \" to escape the quotes passed through to the shell.
Thanks to Aaron Gray for testing this out on cygwin.

llvm-svn: 22155
2005-05-20 20:13:41 +00:00
Reid Spencer
9d1f2e88d6 Don't eliminate a test case, just the form of the test case, from the
previous revision.

llvm-svn: 22072
2005-05-15 21:35:26 +00:00
Chris Lattner
965b367cf1 This does not belong
llvm-svn: 22071
2005-05-15 21:31:36 +00:00
Reid Spencer
418065989d Add a case with non-constant argument for testing the transform:
ffs(x) -> (x == 0 ? 0 : llvm.cttz(0)+1)

llvm-svn: 22069
2005-05-15 21:26:59 +00:00
Chris Lattner
4b72dca53e add test to check for tail calls
llvm-svn: 22048
2005-05-15 05:52:51 +00:00
Chris Lattner
b7c5669c14 Make sure this is not eligible for tail-call-elimination so that we test
the correct thing.

llvm-svn: 22039
2005-05-14 23:54:55 +00:00
Chris Lattner
b87c89a574 new testcase
llvm-svn: 22037
2005-05-14 23:52:09 +00:00
Reid Spencer
52c1813108 Add a test case for testing ffs libcall conversion to constant
llvm-svn: 22028
2005-05-14 16:44:43 +00:00
Chris Lattner
918a411976 Ensure these casts are done with the hardware fildll instruction
llvm-svn: 22013
2005-05-14 07:09:25 +00:00
Chris Lattner
db4f239e62 this passes
llvm-svn: 22000
2005-05-14 02:35:38 +00:00
Chris Lattner
62e61f2c64 Fix this
llvm-svn: 21999
2005-05-14 02:33:20 +00:00
Chris Lattner
923a239d83 new testcase
llvm-svn: 21989
2005-05-13 22:15:26 +00:00
Andrew Lenharth
d8c9c3b76a fix regression tests
llvm-svn: 21963
2005-05-13 19:49:02 +00:00
Chris Lattner
681f9f0993 This passes on sparc
llvm-svn: 21955
2005-05-13 18:37:58 +00:00
Chris Lattner
cfd38bf2c2 remove test
llvm-svn: 21952
2005-05-13 18:19:29 +00:00
John Criswell
8db3ffae9f These tests are currently expected to fail.
llvm-svn: 21941
2005-05-13 17:36:00 +00:00
Chris Lattner
0fcef3637c Force x86 backend
llvm-svn: 21940
2005-05-13 16:20:59 +00:00
Chris Lattner
5f65574a0f fix buggy test
llvm-svn: 21937
2005-05-13 15:51:31 +00:00
Chris Lattner
54ac7e9e84 Fix buggy test
llvm-svn: 21936
2005-05-13 15:48:41 +00:00
Chris Lattner
6e96e6e431 let dj run this
llvm-svn: 21935
2005-05-13 15:44:55 +00:00
Andrew Lenharth
385f6bd18f fixed test case
llvm-svn: 21934
2005-05-13 15:42:07 +00:00
Chris Lattner
ff43e72218 disable this test for now.
llvm-svn: 21920
2005-05-13 04:51:58 +00:00
Chris Lattner
827d1b2e40 add a correct run line
llvm-svn: 21918
2005-05-13 04:20:57 +00:00
Chris Lattner
d1170afe2c reg test
llvm-svn: 21914
2005-05-12 23:09:04 +00:00
John Criswell
99562cfa9d Fix this test on Solaris.
Solaris grep is more traditional and (AFAIK) does not support regexs.
Also, single quotes should disable all shell interpretation, so no
backslashes should be needed (and, in fact, keep Solaris from working).

llvm-svn: 21902
2005-05-12 21:06:05 +00:00
Nate Begeman
71bcc67a0f Add testcase for legalizing ISD::CTTZ efficiently. On PPC, ctlz(int) is
now codegen'd as this:

        addi r2, r3, -1
        andc r2, r2, r3
        cntlzw r2, r2
        subfic r3, r2, 32
        blr

llvm-svn: 21881
2005-05-11 23:45:54 +00:00
John Criswell
55937aba69 Regression test for PR#563.
llvm-svn: 21879
2005-05-11 21:47:35 +00:00
Andrew Lenharth
b908893bab Legalize for CTLZ generates a ctpop, but this ctpop is not expanded.
This is bad.  It is generated if you are ctlz a type that is not
legal for the arch (aka ctlz of bytes on alpha legalize fine).

llvm-svn: 21867
2005-05-11 17:23:41 +00:00
Chris Lattner
c1273fc0b9 include the other bit count intrinsics
llvm-svn: 21863
2005-05-11 05:31:01 +00:00
Chris Lattner
4e9ebbc98d new testcase
llvm-svn: 21854
2005-05-11 04:22:47 +00:00
Chris Lattner
877248c8a3 new testcase for PR562
llvm-svn: 21849
2005-05-10 22:32:29 +00:00
Chris Lattner
c1064620ef new testcase
llvm-svn: 21837
2005-05-10 00:33:36 +00:00
Chris Lattner
1693833459 testcase I've had in my tree
llvm-svn: 21832
2005-05-09 21:21:10 +00:00
John Criswell
5bac82113e Tell tblgen exactly where to find the include file.
llvm-svn: 21822
2005-05-09 19:32:08 +00:00
Chris Lattner
c9077e4177 new testcase
llvm-svn: 21819
2005-05-09 17:09:31 +00:00
Chris Lattner
e91ac6383d tweak test to accept the (good) code emitted by the pattern isel
llvm-svn: 21812
2005-05-09 05:54:27 +00:00
Chris Lattner
540a321165 New testcase
llvm-svn: 21808
2005-05-09 04:54:18 +00:00
Reid Spencer
5eba8c27f0 Add note to self to complete the testing of all intrinsic functions as
specified in the LangRef document.

llvm-svn: 21807
2005-05-09 04:47:32 +00:00
Chris Lattner
86997483e2 New testcase that crashes the pattern isel
llvm-svn: 21800
2005-05-09 03:36:11 +00:00
Chris Lattner
d1969cf8c2 New testacse for information exposed by the 'tail' call marker.
llvm-svn: 21795
2005-05-08 23:57:34 +00:00
Chris Lattner
e717a9dca2 add a testcase for a case we do not handle yet
llvm-svn: 21789
2005-05-08 21:47:42 +00:00
Chris Lattner
5bef0b7bc6 new testcase
llvm-svn: 21787
2005-05-08 21:41:18 +00:00
Chris Lattner
0fb59cec82 new testcase
llvm-svn: 21784
2005-05-08 21:28:33 +00:00
Chris Lattner
ab1fdcec7d new testcases for PR557
llvm-svn: 21782
2005-05-08 20:56:02 +00:00
Chris Lattner
d7a835fcba new testcase
llvm-svn: 21777
2005-05-08 18:54:40 +00:00
Chris Lattner
5fe4e982b8 new testcase
llvm-svn: 21774
2005-05-08 17:31:24 +00:00
Reid Spencer
bd4efef3eb * Break tests into individual cases so its easier to see what's going on.
* Add four new cases to handle the new optimizations for strlen, dealing
  with:
    strlen(x) != 0 -> *x != 0
    strlen(x) == 0 -> *x == 0
  for each of two cases: strlen(x) != 0 and strlen(x) == 0

llvm-svn: 21767
2005-05-07 20:21:04 +00:00
Chris Lattner
e265bf6fe5 test that reassociate can handle shifts
llvm-svn: 21760
2005-05-07 04:23:29 +00:00
Chris Lattner
d6906dc6af new testcase
llvm-svn: 21756
2005-05-07 02:16:08 +00:00
Chris Lattner
d1e76535b2 new testcase
llvm-svn: 21750
2005-05-06 22:33:44 +00:00
Chris Lattner
170a0f7d6b Make sure to not accidentally get a bogus tail marker
llvm-svn: 21735
2005-05-06 06:47:37 +00:00
Chris Lattner
e43f733387 test that tail call survives bytecodification
llvm-svn: 21728
2005-05-06 06:18:33 +00:00
Chris Lattner
d3797164f9 new testcases
llvm-svn: 21716
2005-05-06 04:52:46 +00:00
Chris Lattner
8f567bbc2a new testcase
llvm-svn: 21714
2005-05-06 04:11:32 +00:00
Chris Lattner
88ef664af0 new testcase for unneeded and
llvm-svn: 21711
2005-05-06 01:52:52 +00:00
Chris Lattner
a2b995acae new testcase
llvm-svn: 21710
2005-05-06 01:51:05 +00:00
Chris Lattner
1f2cdab20f new testcase
llvm-svn: 21708
2005-05-06 00:58:09 +00:00
Chris Lattner
3e946df29b new testcase for PR541
llvm-svn: 21702
2005-05-05 22:23:10 +00:00
Chris Lattner
f83598edd5 new testcase
llvm-svn: 21699
2005-05-05 17:57:24 +00:00
Chris Lattner
07e6a7ac34 new testcase for a bug Jim found
llvm-svn: 21695
2005-05-05 15:47:16 +00:00
Chris Lattner
207e92ec5f new testcase
llvm-svn: 21689
2005-05-04 19:05:02 +00:00
Reid Spencer
793d169d29 Make sure both optimization cases get tested.
llvm-svn: 21687
2005-05-04 17:45:10 +00:00
Reid Spencer
04242d8b3a Add a test case for the IsDigitOptimization class.
llvm-svn: 21686
2005-05-04 17:34:55 +00:00
Andrew Lenharth
3cde1721c7 comment fix
llvm-svn: 21685
2005-05-04 15:56:34 +00:00
Andrew Lenharth
0ecfe05b76 see if the legalize code propery compensates for the additional zeros introduced
llvm-svn: 21684
2005-05-04 15:51:07 +00:00
Andrew Lenharth
315a093ece added a use of ctpop to debug stuff with
llvm-svn: 21681
2005-05-04 15:20:16 +00:00
Reid Spencer
b28a320411 Fix this test to succeed even if "strchr" is on a call instruction.
llvm-svn: 21675
2005-05-03 17:09:38 +00:00
Reid Spencer
04b3cda068 Add a test case for SPrintFOptimization.
llvm-svn: 21674
2005-05-03 17:08:45 +00:00
Andrew Lenharth
0d415d9fa4 yea yea yea
llvm-svn: 21673
2005-05-03 17:00:48 +00:00
Andrew Lenharth
84cde851a5 pre add count tests
llvm-svn: 21671
2005-05-03 16:49:48 +00:00
Reid Spencer
e4895c439b Add a test case for StrChrOptimizer for -simplify-libcalls
llvm-svn: 21668
2005-05-03 06:22:41 +00:00
Reid Spencer
a77025d96d A new test case for the LLVMMemSetOptimization.
llvm-svn: 21663
2005-05-03 04:00:24 +00:00
Reid Spencer
da05f00bbf Correct the title and the success criteria: strcmp -> strncmp
llvm-svn: 21659
2005-05-03 00:52:19 +00:00
Reid Spencer
263c65154c Add a new test case for the StrNCmpOptimization.
llvm-svn: 21658
2005-05-03 00:50:43 +00:00
Reid Spencer
26558086d2 Add a test case for testing the FPrintFOptimization.
llvm-svn: 21656
2005-05-02 23:07:14 +00:00
Chris Lattner
743d822ba6 new testcase
llvm-svn: 21646
2005-05-01 04:41:57 +00:00
Chris Lattner
2b67adb1f8 add a new testcase
llvm-svn: 21644
2005-05-01 04:24:15 +00:00
Chris Lattner
26293c64e5 add sin/cos tests
llvm-svn: 21635
2005-04-30 04:41:27 +00:00
Chris Lattner
1fd5429d1d Add a test for llvm.sqrt
llvm-svn: 21628
2005-04-30 04:07:15 +00:00
Reid Spencer
14bca88587 * Fix signed/unsigned usage problem
* Rearrange for readability.

llvm-svn: 21625
2005-04-30 03:06:36 +00:00
Reid Spencer
b6a4ce9b30 A new test case for the ToAsciiOptimizer.
llvm-svn: 21624
2005-04-30 01:00:52 +00:00
Reid Spencer
61371cb4b6 A new test case for the StrCmpOptimization in -simplify-libcalls.
llvm-svn: 21623
2005-04-30 00:52:04 +00:00
Reid Spencer
ba12fdd328 This is StrCpy, NOT StrCat!
llvm-svn: 21622
2005-04-29 23:02:15 +00:00
Reid Spencer
2332ee8830 Get the name of the pass right in the documentation.
llvm-svn: 21621
2005-04-29 23:01:21 +00:00
Reid Spencer
182a598ca9 Fix the success criteria for the test to make call instructions with "pow"
not just any occurrence of "pow".

llvm-svn: 21620
2005-04-29 10:11:23 +00:00
Reid Spencer
7e6d82eebf Actually make this pass test something related to fputs.
llvm-svn: 21619
2005-04-29 10:10:17 +00:00
Reid Spencer
1846b68692 Add a test case for the puts libcall optimization.
llvm-svn: 21616
2005-04-29 07:19:00 +00:00
Reid Spencer
5c9efed75f Add a testcase for optimizing the strcpy libcall.
llvm-svn: 21615
2005-04-29 06:01:28 +00:00
Reid Spencer
16dac19584 New test case for testing pow(3) math library optimizations.
llvm-svn: 21613
2005-04-29 05:47:05 +00:00
Chris Lattner
229735db58 Test the noreturn function optimization
llvm-svn: 21586
2005-04-27 04:51:01 +00:00
Reid Spencer
23a4d5b15c Add a test case for MemMove.ll
llvm-svn: 21568
2005-04-26 19:05:51 +00:00
Reid Spencer
5f499593d2 Result of strlen is size_t which is either uint or ulong, not int.
llvm-svn: 21567
2005-04-26 19:04:46 +00:00
Reid Spencer
ee42a0e6a1 Add a new test case for the llvm.memcpy simplification case.
llvm-svn: 21561
2005-04-26 07:40:40 +00:00
Reid Spencer
8acfb411f9 * Add a test case for StrLenOptimization
* Rename ExitInMain and StrCat tests so they don't have the date the
  regression was entered since they are feature tests, not regressions.

llvm-svn: 21558
2005-04-26 05:22:38 +00:00
Reid Spencer
1c6a6274cb Fix RUN: line to not always pass.
llvm-svn: 21553
2005-04-26 02:33:25 +00:00
Reid Spencer
2be469978f Update the test case to handle a few more (degenerate) cases and remove
the restriction that it is an XFAIL because it now passes.

llvm-svn: 21545
2005-04-25 21:08:34 +00:00