Commit Graph

3222 Commits

Author SHA1 Message Date
Chris Lattner
6c2f3de5c4 New testcase.
llvm-svn: 31808
2006-11-17 06:09:49 +00:00
Evan Cheng
52e56e66d1 New test case.
llvm-svn: 31796
2006-11-16 23:38:21 +00:00
Chris Lattner
11c0131ca6 make this harder
llvm-svn: 31779
2006-11-16 01:22:52 +00:00
Chris Lattner
e9245afa13 new testcase
llvm-svn: 31728
2006-11-14 07:45:36 +00:00
Chris Lattner
9cda3e7e77 new testcase
llvm-svn: 31726
2006-11-14 06:04:35 +00:00
Reid Spencer
f65a8539ec Discard code that supported old bytecode formats. This makes the Bytecode
Reader code much easier to read and maintain. Backwards compatibility from
version 5 format has been retained. Older formats will produce an error.

llvm-svn: 31723
2006-11-14 04:47:22 +00:00
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
Reid Spencer
3d513e3571 Make it handle plain old cast too, for old assembly.
llvm-svn: 31702
2006-11-13 16:11:14 +00:00
Reid Spencer
51883d326d Handle ptrtoint and inttoptr
llvm-svn: 31701
2006-11-13 16:09:37 +00:00
Jim Laskey
d4e953e046 XFAIL All but powerpc
llvm-svn: 31689
2006-11-11 22:14:46 +00:00
Jim Laskey
371e2d4641 Works for PowerPC with frame pointers.
llvm-svn: 31679
2006-11-11 10:22:56 +00:00
Reid Spencer
aa1c2140f7 Instruction name changes.
llvm-svn: 31663
2006-11-11 01:04:13 +00:00
Reid Spencer
92316b8b65 Enable path completion when typing the TESTSUITE= option by allowing the
test directory to precede the test suite name. That is, it will strip off
test/ from TESTSUITE which allows path completion from the command line.

llvm-svn: 31662
2006-11-11 01:02:45 +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
Jim Laskey
0f87e147f8 Must have a frame pointer argument fixed. Now fails on PowerPC.
llvm-svn: 31639
2006-11-10 17:56:29 +00:00
Jim Laskey
a3f992c804 Must have a frame pointer.
llvm-svn: 31638
2006-11-10 17:51:25 +00:00
Reid Spencer
01c3ecd9ed This is XFAILed on i[0-9]86 systems not Linux
llvm-svn: 31636
2006-11-10 17:47:28 +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
Jim Laskey
238ccb3f16 Make it work on Darwin.
llvm-svn: 31551
2006-11-08 16:38:45 +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
Reid Spencer
907d191104 XFAIL this on Linux until Jim gets Darwin ship shape.
llvm-svn: 31541
2006-11-08 06:43:16 +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
Reid Spencer
e3c204efe1 Make some corrections to this test case.
llvm-svn: 31497
2006-11-07 07:58:02 +00:00
Reid Spencer
eb8c2a3a48 Ignore the Output dir.
llvm-svn: 31496
2006-11-07 07:34:56 +00:00
Reid Spencer
6ccf42145f Add a test case for making sure gdb can get a stack trace with our debug
information.

llvm-svn: 31495
2006-11-07 07:31:37 +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
Reid Spencer
dcce9e0cc9 Okay, need a pattern before and after the cast pattern.
llvm-svn: 31443
2006-11-04 01:11:19 +00:00
Reid Spencer
bb2e479ee9 Allow the regular expression to be extended by a parameter.
llvm-svn: 31442
2006-11-04 00:58:39 +00:00
Reid Spencer
cc134bcc6c For PR950:
A little script to return 1 if it encounters any of the cast instructions
on the stdin.

llvm-svn: 31441
2006-11-04 00:49:52 +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
Reid Spencer
6e927f953d Add some documentation about the arguments.
llvm-svn: 31372
2006-11-02 03:37:39 +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
Chris Lattner
495e607273 new testcase, malloc should be promoted to [2 x double].
llvm-svn: 30681
2006-10-01 19:39:45 +00:00
Rafael Espindola
1b39270c95 add floating point registers
implement SINT_TO_FP

llvm-svn: 30673
2006-09-29 21:20:16 +00:00
Chris Lattner
b4e7c0864c Adjust this to the wonky syntax that GCC expects.
llvm-svn: 30670
2006-09-29 17:34:56 +00:00
Reid Spencer
01dbd99342 Use the -emit-llvm switch to generate LLVM assembly that can be parsed
by the test case.

llvm-svn: 30654
2006-09-28 21:36:21 +00:00
Reid Spencer
a9cff027ba Add a test case for PR902.
llvm-svn: 30653
2006-09-28 21:20:05 +00:00
Chris Lattner
69a6c409d3 new testcase
llvm-svn: 30651
2006-09-28 20:48:17 +00:00
Chris Lattner
91b0d2fded Testcase for PR924
llvm-svn: 30649
2006-09-28 18:58:02 +00:00
Jim Laskey
70a90d65c9 Make sure C++ protection shows up in debug info
llvm-svn: 30626
2006-09-27 16:55:19 +00:00
Devang Patel
e7c6b0e0e5 Add http://llvm.org/bugs/show_bug.cgi?id=923 test case.
llvm-svn: 30622
2006-09-27 02:58:44 +00:00
Chris Lattner
c5f6ea0da9 test that the no_dead_strip directive is emitted on darwin-x86
llvm-svn: 30607
2006-09-26 03:44:20 +00:00
John Criswell
eda10c2fcd Regression test for PR#922.
llvm-svn: 30599
2006-09-25 19:12:01 +00:00
Andrew Lenharth
9746e69742 Fix
llvm-svn: 30596
2006-09-25 14:04:53 +00:00
Andrew Lenharth
c6ed3c74e7 basic jump table test
llvm-svn: 30592
2006-09-24 19:42:02 +00:00
Bill Wendling
a609cf48a3 Use "%llvmgxx" instead of "llvm-g++".
llvm-svn: 30580
2006-09-22 07:09:01 +00:00
Nate Begeman
29f99e606d Testcase for better rotate left and mask support
llvm-svn: 30579
2006-09-22 05:49:57 +00:00
Bill Wendling
e1c45087bd Regression testcase for PR855.
llvm-svn: 30578
2006-09-22 05:34:25 +00:00
Rafael Espindola
a51ec7153c more condition codes
llvm-svn: 30567
2006-09-21 13:06:26 +00:00
Rafael Espindola
4de4f87be5 if a constant can't be an immediate, add it to the constant pool
llvm-svn: 30566
2006-09-21 11:29:52 +00:00
Chris Lattner
0ba3a4b93c new testcase
llvm-svn: 30554
2006-09-21 05:11:01 +00:00
Nick Lewycky
eb301d20a6 Once we're down to "setcc type constant1, constant2", at least come up
with the right answer.

llvm-svn: 30550
2006-09-20 23:02:24 +00:00
Nick Lewycky
99b3c50130 Use a total ordering to compare instructions.
Fixes infinite loop in resolve().

llvm-svn: 30540
2006-09-20 17:04:01 +00:00
Andrew Lenharth
054efcd85d catch another constant
llvm-svn: 30533
2006-09-20 15:04:55 +00:00
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