1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-27 22:12:47 +01:00
Commit Graph

2718 Commits

Author SHA1 Message Date
Reid Spencer
5ccab2352a For PR950:
Changes for new cast instructions that are backwards compatible.

llvm-svn: 31707
2006-11-13 18:00:52 +00:00
Reid Spencer
e8d8bdd51b Don't hard code test names into the test.
llvm-svn: 31706
2006-11-13 17:55:34 +00:00
Reid Spencer
d518f8cada Fix 80 cols violations.
llvm-svn: 31705
2006-11-13 16:21:09 +00:00
Reid Spencer
9809efcd2b For PR950:
Use the notcast script in preparation for 12 casts.

llvm-svn: 31704
2006-11-13 16:13:38 +00:00
Reid Spencer
2c351d43b9 For PR950:
Use the notcast script in preparation for 12 cast instructions.

llvm-svn: 31703
2006-11-13 16:12:25 +00:00
Chris Lattner
b08574e218 enable this test, check ppc64 as well.
llvm-svn: 31657
2006-11-11 00:13:07 +00:00
Chris Lattner
cefc07dee0 This testcase is miscompiled by instcombine, reduced from 176.gcc
llvm-svn: 31652
2006-11-10 23:37:54 +00:00
Chris Lattner
e71cee3678 new testcase
llvm-svn: 31643
2006-11-10 21:36:07 +00:00
Anton Korobeynikov
3d58e24167 Adding target triple to test
llvm-svn: 31630
2006-11-10 06:59:53 +00:00
Tanya Lattner
52070860e0 xfail for llvmgcc3
llvm-svn: 31629
2006-11-10 04:53:50 +00:00
Chris Lattner
36b5ac0dd9 make this test more interesting
llvm-svn: 31619
2006-11-10 02:04:52 +00:00
Anton Korobeynikov
23ffdb1971 Fixing PR990: http://llvm.org/PR990.
This should unbreak csretcc on Linux & mingw targets. Several tests from
llvm-test should be also restored (fftbench, bigfib).

llvm-svn: 31613
2006-11-10 00:48:11 +00:00
Chris Lattner
663de51886 new testcases for PR992/993
llvm-svn: 31609
2006-11-09 23:35:01 +00:00
Chris Lattner
337e425b69 new testcases
llvm-svn: 31585
2006-11-09 05:11:23 +00:00
Tanya Lattner
54631a48fc Should be xfailed for llvmgcc3
llvm-svn: 31578
2006-11-08 23:26:16 +00:00
Tanya Lattner
a4e66e5441 Should be xfailed for llvmgcc4 and NOT *. * means all platforms regardless of what llvmgcc you use.
llvm-svn: 31577
2006-11-08 23:25:58 +00:00
Reid Spencer
d3fd11fe83 Ensure we don't regress on reading version 6 bytecode.
llvm-svn: 31574
2006-11-08 21:28:30 +00:00
Tanya Lattner
e8c4383527 Should be xfailed for llvm-gcc3.4
llvm-svn: 31568
2006-11-08 20:16:05 +00:00
Reid Spencer
da1f5b882a For PR950:
This patch converts the old SHR instruction into two instructions,
AShr (Arithmetic) and LShr (Logical). The Shr instructions now are not
dependent on the sign of their operands.

llvm-svn: 31542
2006-11-08 06:47:33 +00:00
Chris Lattner
5bcd28eaa8 now that we handle single mbb loops better, one branch is allowed
llvm-svn: 31540
2006-11-08 06:42:42 +00:00
Chris Lattner
f2b22393a4 preincrement case we miss. xfail until we catch it
llvm-svn: 31534
2006-11-08 01:44:35 +00:00
Chris Lattner
39fae95ccb scalarrepl should not split the two elements of the vsiidx array:
int func(vFloat v0, vFloat v1) {
	int ii;
	vSInt32 vsiidx[2];
	vsiidx[0] = _mm_cvttps_epi32(v0);
	vsiidx[1] = _mm_cvttps_epi32(v1);
	ii = ((int *) vsiidx)[4];
	return ii;
}

llvm-svn: 31523
2006-11-07 22:42:29 +00:00
Evan Cheng
1607033750 New test case.
llvm-svn: 31520
2006-11-07 22:18:14 +00:00
Andrew Lenharth
46cd266ab7 Got a little ahead of myself here
llvm-svn: 31502
2006-11-07 16:40:19 +00:00
Andrew Lenharth
c4f1cebfed Fix this test
llvm-svn: 31501
2006-11-07 16:32:55 +00:00
Chris Lattner
57dcaa024d wrong bug #
llvm-svn: 31488
2006-11-07 04:12:03 +00:00
Chris Lattner
788bec1782 new testcase
llvm-svn: 31486
2006-11-07 04:11:14 +00:00
Chris Lattner
2e48c99000 xfail this for the 1.9 release. This is PR984.
llvm-svn: 31471
2006-11-05 23:27:36 +00:00
Andrew Lenharth
1a81dcf240 add a regression for memmove
llvm-svn: 31430
2006-11-03 22:45:09 +00:00
Chris Lattner
d8275c91a5 this started failing due to Reid's changes in the bc format. insulate it
from future changes.

llvm-svn: 31428
2006-11-03 22:01:15 +00:00
Chris Lattner
87d4149351 new testcase
llvm-svn: 31426
2006-11-03 21:58:14 +00:00
Andrew Lenharth
565f838bdb a regression :(
llvm-svn: 31370
2006-11-02 03:04:37 +00:00
Chris Lattner
a5dc2c5908 new testcase
llvm-svn: 31368
2006-11-02 01:45:28 +00:00
Devang Patel
d80e7deee2 Testcase from http://llvm.org/bugs/show_bug.cgi?id=979
llvm-svn: 31357
2006-11-01 22:25:48 +00:00
Chris Lattner
7def2775bd extra pass is required now
llvm-svn: 31353
2006-11-01 18:30:25 +00:00
Chris Lattner
a15b1d2d3a new testcase that crashes global opt, reduced from chomp
llvm-svn: 31351
2006-11-01 18:02:53 +00:00
Chris Lattner
01a3d12bda remove a testcase for a marginal feature
llvm-svn: 31345
2006-11-01 07:15:44 +00:00
Chris Lattner
1f47e3da50 This test should compile down to one comparison, not two.
llvm-svn: 31329
2006-10-31 23:05:16 +00:00
Chris Lattner
f02f038d84 new testcase for PR882
llvm-svn: 31324
2006-10-31 20:11:14 +00:00
Andrew Lenharth
4ffd67f8cf make one giant add and sub tester
llvm-svn: 31321
2006-10-31 19:50:55 +00:00
Chris Lattner
04f01db216 another testcase for PR977
llvm-svn: 31316
2006-10-31 18:56:24 +00:00
Chris Lattner
0e320bc90e testcase for PR977
llvm-svn: 31314
2006-10-31 17:51:36 +00:00
Rafael Espindola
ba8771a3db add support for calling functions when the caller has variable sized objects
llvm-svn: 31312
2006-10-31 13:03:26 +00:00
Chris Lattner
7e89842228 add a note
llvm-svn: 31309
2006-10-31 06:26:10 +00:00
Chris Lattner
eeb4570a0b new testcase
llvm-svn: 31308
2006-10-31 06:25:13 +00:00
Chris Lattner
333ac98bad new testcase
llvm-svn: 31307
2006-10-31 06:15:14 +00:00
Chris Lattner
b8b8e96359 fix this regtest
llvm-svn: 31291
2006-10-30 05:24:03 +00:00
Chris Lattner
c93a6e8020 new testcase
llvm-svn: 31283
2006-10-29 21:20:56 +00:00
Chris Lattner
f10b5aae56 new testcase
llvm-svn: 31280
2006-10-29 21:00:55 +00:00
Chris Lattner
aab4910db2 new testcase
llvm-svn: 31259
2006-10-28 17:04:16 +00:00
Nick Lewycky
559cf6f755 Emitting raw bytecode is awfully rude. Add -disable-output.
Clarify the test.

llvm-svn: 31251
2006-10-28 02:34:41 +00:00
Chris Lattner
95eb901e23 new testcase
llvm-svn: 31241
2006-10-27 23:47:34 +00:00
Chris Lattner
2c97968c1c new testcase
llvm-svn: 31231
2006-10-27 21:52:39 +00:00
Chris Lattner
38e3f37f1c new testcase
llvm-svn: 31229
2006-10-27 21:32:10 +00:00
Evan Cheng
8861459dfc Add a new vextract test case.
llvm-svn: 31227
2006-10-27 21:05:18 +00:00
Reid Spencer
f8a163421d Improve cvs ignoring of test results.
llvm-svn: 31217
2006-10-27 16:43:34 +00:00
Reid Spencer
18fcfbb563 Add a run line to this test.
llvm-svn: 31211
2006-10-27 05:30:23 +00:00
Chris Lattner
8377ebcec3 new testcase, should not reassoc fp vector
llvm-svn: 31199
2006-10-26 18:26:53 +00:00
Rafael Espindola
99322ef58c initial support for frame pointers
llvm-svn: 31197
2006-10-26 13:31:26 +00:00
Reid Spencer
6833ffe8b8 For PR950:
Make necessary changes to support DIV -> [SUF]Div. This changes llvm to
have three division instructions: signed, unsigned, floating point. The
bytecode and assembler are bacwards compatible, however.

llvm-svn: 31195
2006-10-26 06:15:43 +00:00
Nick Lewycky
312b457350 Handling of setlt/le/gt/ge is broken at the moment; predsimplify removes
the call the pass2.

llvm-svn: 31192
2006-10-26 02:33:51 +00:00
Nick Lewycky
5076440f74 This testcase was logically wrong! Fixing, and including the test for the
mistake that I made in the file too.

llvm-svn: 31190
2006-10-26 00:51:58 +00:00
Evan Cheng
ac5b12519b New shuffle test case.
llvm-svn: 31187
2006-10-25 21:59:00 +00:00
Chris Lattner
064d24f6a8 Allow this to pass on ppc
llvm-svn: 31178
2006-10-25 16:37:47 +00:00
Chris Lattner
4c3dd54300 Modernize the testcase, allow it to pass on ppc
llvm-svn: 31177
2006-10-25 16:35:10 +00:00
Rafael Espindola
a962656c07 expand ISD::VACOPY
llvm-svn: 31170
2006-10-24 20:15:21 +00:00
Chris Lattner
3b42d11f6e new testcase
llvm-svn: 31163
2006-10-24 17:09:20 +00:00
Chris Lattner
bca9b5f4bc New testcase that crashes scalarrepl
llvm-svn: 31150
2006-10-24 06:26:08 +00:00
Evan Cheng
66c0075a29 Update test case.
llvm-svn: 31139
2006-10-23 21:47:11 +00:00
Rafael Espindola
70f01d5cc0 implement STRB and STRH
llvm-svn: 31138
2006-10-23 20:34:27 +00:00
Andrew Lenharth
daafe61834 restore these tests
llvm-svn: 31133
2006-10-23 19:52:27 +00:00
Chris Lattner
f207a5475b new testcase
llvm-svn: 31131
2006-10-23 18:54:35 +00:00
Evan Cheng
1d4f5b942b Fix test case.
llvm-svn: 31127
2006-10-23 05:11:09 +00:00
Nick Lewycky
b81c926e06 Handle "if ((x|y) != 0)" for ints like we do for bools. Fixes missed
optimization opportunity pointed out by Chris Lattner.

llvm-svn: 31118
2006-10-22 21:36:41 +00:00
Chris Lattner
696ed4adae new testcase for PR964
llvm-svn: 31117
2006-10-22 21:36:06 +00:00
Nick Lewycky
c680dabd94 AllocaInst can't return a null pointer. Fixes missed optimization
opportunity pointed out by Andrew Lewycky.

llvm-svn: 31115
2006-10-22 19:53:27 +00:00
Bill Wendling
da5290e752 Changed the pattern matching so that it will hopefully work on Linux.
llvm-svn: 31069
2006-10-20 18:15:24 +00:00
Devang Patel
90e5f0400c Test case for
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20061016/038780.html

llvm-svn: 31068
2006-10-20 18:06:37 +00:00
Chris Lattner
74b2337a26 new testcase for PR957
llvm-svn: 31060
2006-10-20 00:41:31 +00:00
Bill Wendling
14b1a3c31b Testcase for P926
llvm-svn: 31058
2006-10-19 23:21:59 +00:00
Devang Patel
880a9d823f It is OK to remove extra cast if operation is EQ/NE even though source
and destination sign may not match but other conditions are met.

llvm-svn: 31056
2006-10-19 20:59:13 +00:00
Devang Patel
d9ade71cc7 Fix bug in PR454 resolution. Added new test case.
This fixes llvmAsmParser.cpp miscompile by llvm on PowerPC Darwin.

llvm-svn: 31053
2006-10-19 18:54:08 +00:00
Rafael Espindola
f7a41f3ddd print common symbols
llvm-svn: 31048
2006-10-19 13:30:40 +00:00
Rafael Espindola
1220d18e11 add blx
llvm-svn: 31037
2006-10-18 16:21:43 +00:00
Rafael Espindola
80c7461ada implement CallingConv::Fast as CallingConv::C
llvm-svn: 31034
2006-10-18 12:03:07 +00:00
Chris Lattner
a4e5ea95d4 new testcase
llvm-svn: 31029
2006-10-18 01:21:35 +00:00
Chris Lattner
997ef7b8a3 new testcase, miscompilation of llvm with itself.
llvm-svn: 31018
2006-10-17 21:23:20 +00:00
Rafael Espindola
58233f9db2 expand ISD::SDIV, ISD::UDIV, ISD::SREM and ISD::UREM
llvm-svn: 31014
2006-10-17 21:05:33 +00:00
Rafael Espindola
fe0a9a6fe2 add FABSS and FABSD
llvm-svn: 31012
2006-10-17 20:33:13 +00:00
Rafael Espindola
a8f8a3ef26 cleanup some tests
llvm-svn: 31010
2006-10-17 20:20:07 +00:00
Rafael Espindola
64f93033bc remove extra [] in stores
llvm-svn: 31008
2006-10-17 18:29:14 +00:00
Chris Lattner
d5554a07c0 new testcase
llvm-svn: 31005
2006-10-17 18:14:39 +00:00
Rafael Espindola
47970f96ac initial implementation of addressing mode 5
llvm-svn: 31002
2006-10-17 18:04:53 +00:00
Rafael Espindola
d5a6eaec14 add the immediate to the Offset in eliminateFrameIndex
llvm-svn: 30998
2006-10-17 14:34:02 +00:00
Rafael Espindola
31f59f5b94 add FSTD and FSTS
llvm-svn: 30996
2006-10-17 13:36:07 +00:00
Rafael Espindola
a156538e34 add fdivs e fdivd
llvm-svn: 30988
2006-10-16 21:50:04 +00:00
Rafael Espindola
4f61431679 expand ISD::SHL_PARTS, ISD::SRA_PARTS and ISD::SRL_PARTS
llvm-svn: 30987
2006-10-16 21:10:32 +00:00
Rafael Espindola
d255bfb09b implement LDRB, LDRSB, LDRH and LDRSH
llvm-svn: 30976
2006-10-16 17:17:22 +00:00
Rafael Espindola
93359fa883 implement smull and umull
llvm-svn: 30975
2006-10-16 16:33:29 +00:00
Chris Lattner
a5383a5b2d testcase that causes the asmparser to assert
llvm-svn: 30969
2006-10-15 23:26:28 +00:00
Rafael Espindola
38c602f658 fix some fp condition codes
use non trapping comparison instructions

llvm-svn: 30962
2006-10-14 13:42:53 +00:00
Evan Cheng
078a38abd7 One cyclic dag a day is good for ya...
llvm-svn: 30960
2006-10-14 08:35:02 +00:00
Chris Lattner
3fbcd8519e testcase for recent dag combiner patch. Before the entry bb was:
_test:
        stwu r1, -80(r1)
        stw r1, 76(r1)
        mflr r11
        stw r11, 88(r1)
        rlwinm r2, r4, 0, 30, 31
        cmplwi cr7, r2, 2
        mfcr r2
        rlwinm r2, r2, 30, 31, 31
        cmplwi cr0, r2, 0
        bne cr0, LBB1_2 ;UnifiedReturnBlock

after it is:

_test:
        stwu r1, -80(r1)
        stw r1, 76(r1)
        mflr r11
        stw r11, 88(r1)
        rlwinm r2, r4, 0, 30, 31
        cmplwi cr0, r2, 2
        bgt cr0, LBB1_2 ;UnifiedReturnBlock

llvm-svn: 30954
2006-10-14 03:40:02 +00:00
Chris Lattner
cfa6a33663 testcase for recent selectiondag patch
llvm-svn: 30949
2006-10-13 23:54:16 +00:00
Rafael Espindola
1f85e7a2a1 add FNEGS and FNEGD
llvm-svn: 30932
2006-10-13 17:37:35 +00:00
Rafael Espindola
042e61af25 add SBCS and SUBS
llvm-svn: 30930
2006-10-13 17:19:20 +00:00
Rafael Espindola
24d7976d1d implement calls to functions that return long
llvm-svn: 30929
2006-10-13 16:47:22 +00:00
Rafael Espindola
bd50a4d757 implement unordered floating point compares
llvm-svn: 30928
2006-10-13 13:14:59 +00:00
Chris Lattner
ae912d4d65 new testcase
llvm-svn: 30919
2006-10-12 20:56:15 +00:00
Evan Cheng
cd6e1ecd4f Add another cyclic dag test case.
llvm-svn: 30918
2006-10-12 20:38:45 +00:00
Evan Cheng
1ff54fff5c Update tests.
llvm-svn: 30895
2006-10-12 01:42:03 +00:00
Chris Lattner
58e8710dbb new testcase
llvm-svn: 30893
2006-10-11 22:07:38 +00:00
Chris Lattner
4367bcab16 add test for mdef in a let
llvm-svn: 30886
2006-10-11 18:12:14 +00:00
Jim Laskey
b5a4bbd350 Explict processor.
llvm-svn: 30882
2006-10-11 17:14:14 +00:00
Jim Laskey
0d8d0db0f3 Make sure combiner alias analysis does it's thing.
llvm-svn: 30879
2006-10-11 13:42:49 +00:00
Evan Cheng
9491e25341 Test case for the recently fixed FindModifiedNodeSlot bug.
llvm-svn: 30877
2006-10-11 07:01:37 +00:00
Chris Lattner
427004614b new testcase, this should turn into zap
llvm-svn: 30874
2006-10-11 05:10:19 +00:00
Andrew Lenharth
4b783303e5 Jimptables working again on alpha.
As a bonus, use the GOT node instead of the AlphaISD::GOT for internal stuff.

llvm-svn: 30873
2006-10-11 04:29:42 +00:00
Chris Lattner
e7dfa73a22 Both of these functions should turn into cmpbge instructions, even though
the second has an and of 254 not 255.

llvm-svn: 30870
2006-10-11 03:59:48 +00:00
Chris Lattner
05d6841bae new testcase for zap generation, from the alpha readme
llvm-svn: 30865
2006-10-11 01:47:08 +00:00
Rafael Espindola
46e7aceb1d uint <-> double conversion
llvm-svn: 30862
2006-10-10 20:38:57 +00:00
Rafael Espindola
0112351e9a add fp sub
llvm-svn: 30859
2006-10-10 19:35:01 +00:00
Rafael Espindola
27d68a3c22 add double <-> int conversion
llvm-svn: 30858
2006-10-10 18:55:14 +00:00
Rafael Espindola
413aa20bc8 compare doubles
llvm-svn: 30856
2006-10-10 16:33:47 +00:00
Rafael Espindola
4ea6435132 add some tests for floating point compare
llvm-svn: 30855
2006-10-10 14:26:06 +00:00
Evan Cheng
2fc9d4f580 Add test case from PR940.
llvm-svn: 30852
2006-10-10 04:33:46 +00:00
Evan Cheng
ddd78757d1 shufps with load folding is better than movaps; movsd.
llvm-svn: 30849
2006-10-09 22:42:31 +00:00
Rafael Espindola
0e13b176ed add some tests for floating point arithmetic
llvm-svn: 30840
2006-10-09 19:15:17 +00:00
Rafael Espindola
bae07b25d6 add float -> double and double -> float conversion
llvm-svn: 30835
2006-10-09 17:50:29 +00:00
Chris Lattner
15afec7495 xfail this until andrew has a chance to implement the alpha TM method.
llvm-svn: 30833
2006-10-09 17:34:40 +00:00
Rafael Espindola
6abf128f64 add a test for adds adcs
llvm-svn: 30832
2006-10-09 17:30:15 +00:00
Chris Lattner
967f755f45 new testcase for PR892
llvm-svn: 30824
2006-10-08 23:52:06 +00:00
Chris Lattner
724ebf87a0 new testcase for SROA for stuff like "union { int*, float* }".
llvm-svn: 30822
2006-10-08 23:27:37 +00:00
Chris Lattner
8a76c70571 new testcase we miscompile
llvm-svn: 30816
2006-10-07 21:54:08 +00:00
Rafael Espindola
38e9e2e01d implement FUITOS and FUITOD
llvm-svn: 30803
2006-10-07 14:24:52 +00:00
Rafael Espindola
90a24709fb implement FLDD
llvm-svn: 30802
2006-10-07 14:03:39 +00:00
Rafael Espindola
54301ca490 add support for calling functions that return double
llvm-svn: 30771
2006-10-06 19:10:05 +00:00
Rafael Espindola
d870b158b3 fix some bugs affecting functions with no arguments
llvm-svn: 30767
2006-10-06 17:26:30 +00:00
Rafael Espindola
f679bdf121 add support for calling functions that have double arguments
llvm-svn: 30765
2006-10-06 12:50:22 +00:00
Rafael Espindola
f0e4950ef4 implement a ArgumentLayout class to factor code common to LowerFORMAL_ARGUMENTS and LowerCALL
implement FMDRR
add support for f64 function arguments

llvm-svn: 30754
2006-10-05 16:48:49 +00:00
Chris Lattner
6f645eeac6 new testcase
llvm-svn: 30751
2006-10-05 06:51:54 +00:00
Andrew Lenharth
ff4a3b5545 Check that jump tables wind up in the rodata section
llvm-svn: 30747
2006-10-05 03:27:52 +00:00
Chris Lattner
bf18a53eb9 Verify that jump tables are emitted to the same section as the function is,
when codegen'ing in pic mode.  This fixes a miscompilation of a switch stmt
in a template, as the template goes to a non-.text section.

llvm-svn: 30743
2006-10-05 03:12:36 +00:00
Chris Lattner
097967c438 pattern match min/max nodes
llvm-svn: 30718
2006-10-04 06:56:02 +00:00
Rafael Espindola
b77754ce4d Implement floating point constants
llvm-svn: 30704
2006-10-03 17:27:58 +00:00
Chris Lattner
a74ee6650d testcase for PR933
llvm-svn: 30702
2006-10-03 17:17:54 +00:00
Nick Lewycky
0da988d8a7 Move break-crit-edges before the predicate simplifier. Allows us to
optimize in more cases.

llvm-svn: 30699
2006-10-03 14:52:23 +00:00
Chris Lattner
1fb57b827d New testcase for PR932
llvm-svn: 30695
2006-10-03 07:00:13 +00:00
Rafael Espindola
36c3e0028b fix the names of the 64bit fp register
initial support for returning 64bit floating point numbers

llvm-svn: 30692
2006-10-02 19:30:56 +00:00
Chris Lattner
6af8b25e96 New testcase
llvm-svn: 30683
2006-10-01 22:35:45 +00:00