Commit Graph

65 Commits

Author SHA1 Message Date
Reid Spencer
832254e1c2 Changes to support making the shift instructions be true BinaryOperators.
This feature is needed in order to support shifts of more than 255 bits
on large integer types.  This changes the syntax for llvm assembly to
make shl, ashr and lshr instructions look like a binary operator:
   shl i32 %X, 1
instead of
   shl i32 %X, i8 1
Additionally, this should help a few passes perform additional optimizations.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33776 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-02 02:16:23 +00:00
Reid Spencer
e3ff5ada8a For PR761:
Remove "target endian/pointersize" or add "target datalayout" to make
the test parse properly or set the datalayout because defaults changes.

For PR645:
Make global names use the @ prefix.

For llvm-upgrade changes:
Fix test cases or completely remove use of llvm-upgrade for test cases
that cannot survive the new renaming or upgrade capabilities.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33533 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-26 08:25:06 +00:00
Reid Spencer
7a50c236e9 Changes to parameter attribute syntax.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32919 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-05 17:41:34 +00:00
Reid Spencer
02b9a0f19a Changes to parameter attributes syntax.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32918 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-05 17:40:40 +00:00
Reid Spencer
2233361a83 Fix this test cases to use parameter attributes for its parameter and
result types. These tests are checking for sext behavior and it won't
happen unless requested with the parameter attribute.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32828 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-03 04:20:23 +00:00
Reid Spencer
56581b713d This test case previously passed the assembler without error even though
it used an undefined type name as a parameter argument. This bug in the
assembler has been fixed and it is now necessary to define the type.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32826 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-02 21:56:26 +00:00
Reid Spencer
627c73d13a Reverse last patch, committed by accident.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32809 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-02 04:30:40 +00:00
Reid Spencer
4265a08779 Fix this test case to be legal. There is no ubyte %tmp ever defined!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32808 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-02 04:19:32 +00:00
Reid Spencer
eacb7020ec For PR950:
Update the test suite to accommodate the change from signed integer types
to signless integer types. The changes were of only a few kinds:

1. Make sure llvm-upgrade is run on the source which does the bulk of the
   changes automatically.

2. Change things like "grep 'int'" to "grep 'i32'"

3. In several tests bitcasting caused the same name to be reused in the
   same type plane. These had to be manually fixed. The fix was (generally)
   to leave the bitcast and provide the instruction with a new name. This
   should not affect the semantics of the test. In a few cases, the
   bitcasts were known to be superfluous and irrelevant to the test case
   so they were removed.

4. One test case uses a bytecode file which needed to be updated to the
   latest bytecode format.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32789 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-31 06:02:00 +00:00
Andrew Lenharth
b56f1e2ee5 Copy ARM's weak symbol test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32307 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-07 17:37:54 +00:00
Reid Spencer
2e7e4f2e01 Upgrade intrinsic function calls manually.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32137 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-02 20:41:53 +00:00
Reid Spencer
69ccadd753 Use the llvm-upgrade program to upgrade llvm assembly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32115 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-02 04:23:10 +00:00
Andrew Lenharth
e42c02a7a1 Fix this test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31501 91177308-0d34-0410-b5e6-96231b3b80d8
2006-11-07 16:32:55 +00:00
Andrew Lenharth
22262f14bc a regression :(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31370 91177308-0d34-0410-b5e6-96231b3b80d8
2006-11-02 03:04:37 +00:00
Andrew Lenharth
a54f6b16f9 make one giant add and sub tester
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31321 91177308-0d34-0410-b5e6-96231b3b80d8
2006-10-31 19:50:55 +00:00
Chris Lattner
3d2da9a426 new testcase, this should turn into zap
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30874 91177308-0d34-0410-b5e6-96231b3b80d8
2006-10-11 05:10:19 +00:00
Andrew Lenharth
82c3d8f81a Jimptables working again on alpha.
As a bonus, use the GOT node instead of the AlphaISD::GOT for internal stuff.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30873 91177308-0d34-0410-b5e6-96231b3b80d8
2006-10-11 04:29:42 +00:00
Chris Lattner
2f239b9289 Both of these functions should turn into cmpbge instructions, even though
the second has an and of 254 not 255.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30870 91177308-0d34-0410-b5e6-96231b3b80d8
2006-10-11 03:59:48 +00:00
Chris Lattner
67afa13980 new testcase for zap generation, from the alpha readme
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30865 91177308-0d34-0410-b5e6-96231b3b80d8
2006-10-11 01:47:08 +00:00
Chris Lattner
d68d2c312a xfail this until andrew has a chance to implement the alpha TM method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30833 91177308-0d34-0410-b5e6-96231b3b80d8
2006-10-09 17:34:40 +00:00
Andrew Lenharth
666ad1f8cf Check that jump tables wind up in the rodata section
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30747 91177308-0d34-0410-b5e6-96231b3b80d8
2006-10-05 03:27:52 +00:00
Andrew Lenharth
758f89c690 Fix
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30596 91177308-0d34-0410-b5e6-96231b3b80d8
2006-09-25 14:04:53 +00:00
Andrew Lenharth
b08659d2e5 basic jump table test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30592 91177308-0d34-0410-b5e6-96231b3b80d8
2006-09-24 19:42:02 +00:00
Andrew Lenharth
0ddae493e9 catch another constant
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30533 91177308-0d34-0410-b5e6-96231b3b80d8
2006-09-20 15:04:55 +00:00
Chris Lattner
4de62eadf4 This is fixed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29098 91177308-0d34-0410-b5e6-96231b3b80d8
2006-07-11 01:39:30 +00:00
Chris Lattner
3c8c1639b6 Xfail this
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29040 91177308-0d34-0410-b5e6-96231b3b80d8
2006-07-07 04:43:24 +00:00
Andrew Lenharth
ddb1304660 Legalize does not handle this correctly
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28991 91177308-0d34-0410-b5e6-96231b3b80d8
2006-07-03 22:46:02 +00:00
Andrew Lenharth
1a93f1c0ea Added regression that breaks gcc4 build
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28358 91177308-0d34-0410-b5e6-96231b3b80d8
2006-05-17 19:23:31 +00:00
Andrew Lenharth
ab04e8c5ee fix this for the more restrictive linkage
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27667 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-13 17:52:32 +00:00
Chris Lattner
d8200069fa This test fails and I don't know why, xfail it until andrew gets a chance to
look at it.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27660 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-13 17:19:34 +00:00
Tanya Lattner
9727555859 Added the ability to xfail based on llvmgcc version
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27635 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-12 21:57:40 +00:00
Chris Lattner
cecc3ebcc8 New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27401 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-04 17:38:31 +00:00
Andrew Lenharth
87e021de4f test powers of 2
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27369 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-03 04:14:39 +00:00
Andrew Lenharth
0fb79fa078 test some more mul by constant removal
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27366 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-03 03:16:09 +00:00
Andrew Lenharth
f80d2f61af Make sure mul by constant 5 is turned into a s4addq
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27365 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-02 21:47:07 +00:00
Reid Spencer
2676f83776 Tired of wading through cvs's list ? files that are generated when building
with srcdir = objdir to see what's okay and what's cruft. So, in goes a
bunch of .cvsignore files to shut cvs up about known output from running
"make check".


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27009 91177308-0d34-0410-b5e6-96231b3b80d8
2006-03-23 23:41:57 +00:00
Andrew Lenharth
bd7c22cdcc test for improved zap discovery
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26147 91177308-0d34-0410-b5e6-96231b3b80d8
2006-02-13 18:52:01 +00:00
Andrew Lenharth
10d7f9a33f test cmov immediate form
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25881 91177308-0d34-0410-b5e6-96231b3b80d8
2006-02-01 19:36:52 +00:00
Andrew Lenharth
c20dee3566 added a couple test cases, including the new vaarg breakage
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25648 91177308-0d34-0410-b5e6-96231b3b80d8
2006-01-26 17:43:42 +00:00
Andrew Lenharth
1cdd5c6e11 a reduced test case, the GlobalAddress is never legalized
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25427 91177308-0d34-0410-b5e6-96231b3b80d8
2006-01-18 22:59:33 +00:00
Andrew Lenharth
097c6e18a3 this is fixed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25370 91177308-0d34-0410-b5e6-96231b3b80d8
2006-01-16 21:22:42 +00:00
Chris Lattner
84b26b600d Fix these testcases :(
Apparently Andrew hasn't implemented ReadCycleCounter in the new isel and
renamed ornot to eqv


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25360 91177308-0d34-0410-b5e6-96231b3b80d8
2006-01-16 16:34:39 +00:00
Andrew Lenharth
fe67ca209f Change this regression so andi is not a valid codegen of it
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25056 91177308-0d34-0410-b5e6-96231b3b80d8
2006-01-01 22:14:31 +00:00
Andrew Lenharth
51b8d54922 continued readcyclecounter support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24300 91177308-0d34-0410-b5e6-96231b3b80d8
2005-11-11 16:47:30 +00:00
Andrew Lenharth
542f2df2fa more specific tests of subtarget stuff
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23570 91177308-0d34-0410-b5e6-96231b3b80d8
2005-09-30 20:30:24 +00:00
Andrew Lenharth
4b429fcf25 make sure we always handle small negatives well
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22503 91177308-0d34-0410-b5e6-96231b3b80d8
2005-07-22 21:53:35 +00:00
Chris Lattner
0c8781dabb new testcase for PR593
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22418 91177308-0d34-0410-b5e6-96231b3b80d8
2005-07-13 01:57:39 +00:00
Chris Lattner
eb99a451e8 this passes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22000 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-14 02:35:38 +00:00
Andrew Lenharth
3cfc4011bd fix regression tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21963 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-13 19:49:02 +00:00
John Criswell
1e497fe3dc These tests are currently expected to fail.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21941 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-13 17:36:00 +00:00