61 Commits

Author SHA1 Message Date
Nate Begeman
7853983b40 Add a case for float just to make sure the patterns for both precisions
are matching

llvm-svn: 24718
2005-12-14 22:51:13 +00:00
Chris Lattner
bd065599e6 Test that crashes the ppc backend.
llvm-svn: 24546
2005-11-30 20:40:28 +00:00
Chris Lattner
b8e8cbec50 Check that this compiles to a label with a space in it.
llvm-svn: 24284
2005-11-10 19:33:04 +00:00
Chris Lattner
6beef90324 new testcase
llvm-svn: 24112
2005-10-30 19:42:18 +00:00
Chris Lattner
9cc9f0fca1 new testcase
llvm-svn: 24103
2005-10-30 06:37:33 +00:00
Nate Begeman
b2f9801555 Add a regression test for the recent fix for FP_TO_UINT lowering in the ppc
backend.

llvm-svn: 23995
2005-10-25 23:53:21 +00:00
John Criswell
d122b68735 Use %s instead of hard coding the input filename.
This allows the test to work when srcdir != objdir.

llvm-svn: 23775
2005-10-17 21:54:18 +00:00
Chris Lattner
eeaf2094b8 Nate implemented this :)
llvm-svn: 23707
2005-10-13 06:04:34 +00:00
Chris Lattner
89a39f1508 new testcase
llvm-svn: 23689
2005-10-10 21:57:37 +00:00
Chris Lattner
4653985b86 A testcase sitting in my tree
llvm-svn: 23687
2005-10-10 21:21:36 +00:00
Chris Lattner
905c752559 Testcase that is miscompiled by the ppc backend
llvm-svn: 23669
2005-10-09 05:31:47 +00:00
Chris Lattner
db5d47e4dd These don't need to be sdivs.
llvm-svn: 23661
2005-10-07 15:27:12 +00:00
Chris Lattner
437b9aa632 New testcase, should turn into a ushr
llvm-svn: 23658
2005-10-07 06:10:03 +00:00
Chris Lattner
bb6211bbe8 double to float casts should nto result in an fmr
llvm-svn: 23653
2005-10-07 04:59:41 +00:00
Chris Lattner
a22f7a2e16 add a testcase for a feature we regressed on because noone wrote the test! :(
llvm-svn: 23513
2005-09-28 23:03:11 +00:00
Chris Lattner
afc5ba4f3a add testcase for nand
llvm-svn: 23495
2005-09-28 18:08:58 +00:00
Chris Lattner
380fd4a413 Consolidate the eqv.ll and nor.ll files together.
Add a missed eqv case.

llvm-svn: 23493
2005-09-28 18:04:22 +00:00
Chris Lattner
e2b772b0ae simple tests for nor generation
llvm-svn: 23491
2005-09-28 17:55:10 +00:00
Chris Lattner
c619d43155 new testcase
llvm-svn: 23402
2005-09-23 00:53:06 +00:00
Chris Lattner
ecd98d5d77 Make sure to disable 64-bit extensions for this test
llvm-svn: 23309
2005-09-11 03:50:38 +00:00
Chris Lattner
db9f4b9db4 New testcase, neither should require a register-register copy
llvm-svn: 23290
2005-09-09 17:48:57 +00:00
Nate Begeman
a53a310d8c Test the new 64bit i64<->fp functionality
llvm-svn: 23251
2005-09-06 22:23:15 +00:00
Chris Lattner
63fab495bb Test that converting from double to int64 results in one libcall, not one
and a dead one.  This is a legalize bug

llvm-svn: 23227
2005-09-02 20:24:10 +00:00
Chris Lattner
ffb99034cf new testcase to ensure fsqrt is generated for correct subtargets only, and
that the fsqrt feature works.

llvm-svn: 23217
2005-09-02 18:32:22 +00:00
Chris Lattner
97ac77fd91 This should permit NOT and's, not even dead ones.
llvm-svn: 23199
2005-09-02 00:13:56 +00:00
Chris Lattner
907123b1ab Another case that shouldn't have sign extends: functions returning short
are known to return properly sign extended values, no need for an explicit
extension.

llvm-svn: 23197
2005-09-01 23:43:58 +00:00
Nate Begeman
13990fc286 Add regression test for efficient codegen of i32 x i32 -> hi32(i64) as
mulhs.

llvm-svn: 23183
2005-09-01 00:04:03 +00:00
Chris Lattner
0e6b11da03 Add a testcase for nate's patch
llvm-svn: 23172
2005-08-31 18:19:50 +00:00
Chris Lattner
2188b4363f The dag isel misses both of these, the pattern isel just misses the second
one.  TODO :)

llvm-svn: 23156
2005-08-30 18:44:09 +00:00
Chris Lattner
03e64f6c1e Make sure this doesn't break when we're improving the isels
llvm-svn: 23014
2005-08-24 16:48:49 +00:00
Chris Lattner
298422f7e3 remove dead options
llvm-svn: 22899
2005-08-19 01:16:18 +00:00
Jim Laskey
e7b3cf73e5 Unmangled names.
llvm-svn: 22875
2005-08-18 20:06:09 +00:00
Jim Laskey
35ca73d335 1. Fix comment.
2. Get an exact count of 'li ' instructions.

llvm-svn: 22872
2005-08-18 19:38:57 +00:00
Jim Laskey
6645e001c3 Add regression test to make sure that constants are generated optimally.
llvm-svn: 22871
2005-08-18 19:32:46 +00:00
Nate Begeman
70d9c5c340 Add a testcase for load short -> uint, which is currently emitted as a
zextload + sign_extend_inreg rather than a sextload.

llvm-svn: 22852
2005-08-18 03:11:44 +00:00
Jim Laskey
461edda709 Added test cases to guarantee use of ORC and ANDC.
llvm-svn: 22772
2005-08-12 23:40:14 +00:00
Chris Lattner
f6a762ada1 testcase that crashed the ppc backend, distilled from crafty
llvm-svn: 22770
2005-08-12 23:34:03 +00:00
Jim Laskey
a50f770a2c 1. Added the function isOpcWithIntImmediate to simplify testing of operand with
specified opcode and an integer constant right operand.

2. Modified ISD::SHL, ISD::SRL, ISD::SRA to use rlwinm when applied after a mask.

llvm-svn: 22761
2005-08-11 21:59:23 +00:00
Chris Lattner
080f741f50 Add testcases for new rlwinm cases handled, patch by Jim Laskey!
llvm-svn: 22730
2005-08-09 20:24:16 +00:00
Nate Begeman
b3b86d5692 Add a couple rlwinm tests for bitfield clears
llvm-svn: 22624
2005-08-03 18:27:17 +00:00
Nate Begeman
134628b4fb Update rlwimi tests to catch all the cases we care about
llvm-svn: 22623
2005-08-03 18:11:23 +00:00
John Criswell
878a202e89 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
4ce1dea8af 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
Chris Lattner
95e43ae162 Check for eqv matching
llvm-svn: 21414
2005-04-21 21:10:07 +00:00
Nate Begeman
f24225d4d7 Update dejagnu tests to use the new pattern isel flag
llvm-svn: 21311
2005-04-16 04:25:48 +00:00
Nate Begeman
04ae873648 Add CodeGen tests for the recent SelectionDAG transforms
llvm-svn: 21292
2005-04-13 21:45:13 +00:00
Chris Lattner
751cc5f49f fix this testcase so the regex doesn't match the function name
llvm-svn: 21210
2005-04-10 20:45:35 +00:00
Nate Begeman
7d3e44fb12 Add a testcase to make sure that we don't emit two fneg instructions back
to back for certain fsel instructions.

llvm-svn: 21176
2005-04-09 09:30:09 +00:00
Nate Begeman
968e44a900 Add cases to cover the rest of the patterns we should be matching
llvm-svn: 21175
2005-04-09 08:29:59 +00:00
Chris Lattner
ec90861662 add a test for fnabs
llvm-svn: 21169
2005-04-09 04:03:16 +00:00