Commit Graph

368 Commits

Author SHA1 Message Date
Reid Spencer
c33a34ffba This test case needs zext and sext attributes so manually upgrade it and
don't run llvm-upgrade.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32920 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-05 18:31:56 +00:00
Chris Lattner
05a1416463 add missing flags
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32885 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-04 23:18:14 +00:00
Chris Lattner
e0170dfd2a new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32883 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-04 22:22:07 +00:00
Reid Spencer
7e6b4f7a6d For PR1070:
Tweak the RUN: lines of these tests to accommodate the renaming of
variables done by llvm-upgrade. The renaming occurs as a result of avoiding
name collisons for collapsed type planes. Conflicting names have a .u
(unsigned) or .s (signed) suffix added. This patch updates the grep
expression to accommodate the new names.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32815 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-02 05:55:05 +00:00
Reid Spencer
8aabc9eb23 For PR1070:
Revert previous patch now that llvm-upgrade can handle collapsed type
plane conversion properly.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32814 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-02 05:53:06 +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
Reid Spencer
73e70822ae Update tests that need to be run through llvm-upgrade. This is necessary
for upcoming changes to the llvm assembly grammar.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32768 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-29 20:01:32 +00:00
Jim Laskey
bc9154641b These tests all rely on using register mnemonics and thus must behave in the
world of darwin.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32725 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-21 00:01:42 +00:00
Reid Spencer
b717d10c7e This test needs to be upgraded.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32666 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-19 02:03:04 +00:00
Chris Lattner
d4fca27e59 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32335 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-07 22:36:14 +00:00
Chris Lattner
afa2159a54 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32330 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-07 22:15:20 +00:00
Reid Spencer
ee45c55fe6 Upgrade intrinsic function calls
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32134 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-02 20:38:37 +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
Jim Laskey
d52bbdceef wrong spot
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32084 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-01 19:39:32 +00:00
Jim Laskey
255b47bda3 Test for float varargs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32083 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-01 19:29:20 +00:00
Chris Lattner
7e68724f48 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32023 91177308-0d34-0410-b5e6-96231b3b80d8
2006-11-29 19:57:55 +00:00
Jim Laskey
ba890249ce Case sensitive not.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31827 91177308-0d34-0410-b5e6-96231b3b80d8
2006-11-17 18:00:39 +00:00
Jim Laskey
a44fea3467 Check for MaxAlign.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31826 91177308-0d34-0410-b5e6-96231b3b80d8
2006-11-17 17:19:49 +00:00
Jim Laskey
64c32dd2ea Tests to verify PowerPC ABI.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31825 91177308-0d34-0410-b5e6-96231b3b80d8
2006-11-17 16:54:21 +00:00
Chris Lattner
027f388ab8 make this harder
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31779 91177308-0d34-0410-b5e6-96231b3b80d8
2006-11-16 01:22:52 +00:00
Chris Lattner
ab4b7b4e52 enable this test, check ppc64 as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31657 91177308-0d34-0410-b5e6-96231b3b80d8
2006-11-11 00:13:07 +00:00
Chris Lattner
42b51e4ae2 make this test more interesting
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31619 91177308-0d34-0410-b5e6-96231b3b80d8
2006-11-10 02:04:52 +00:00
Chris Lattner
396b2ffa92 now that we handle single mbb loops better, one branch is allowed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31540 91177308-0d34-0410-b5e6-96231b3b80d8
2006-11-08 06:42:42 +00:00
Chris Lattner
97a6e8c851 preincrement case we miss. xfail until we catch it
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31534 91177308-0d34-0410-b5e6-96231b3b80d8
2006-11-08 01:44:35 +00:00
Chris Lattner
0ac6757586 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31368 91177308-0d34-0410-b5e6-96231b3b80d8
2006-11-02 01:45:28 +00:00
Chris Lattner
04ffebc798 This test should compile down to one comparison, not two.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31329 91177308-0d34-0410-b5e6-96231b3b80d8
2006-10-31 23:05:16 +00:00
Chris Lattner
00ef504797 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31231 91177308-0d34-0410-b5e6-96231b3b80d8
2006-10-27 21:52:39 +00:00
Chris Lattner
9935dd9198 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31029 91177308-0d34-0410-b5e6-96231b3b80d8
2006-10-18 01:21:35 +00:00
Chris Lattner
158cf5edb2 new testcase, miscompilation of llvm with itself.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31018 91177308-0d34-0410-b5e6-96231b3b80d8
2006-10-17 21:23:20 +00:00
Chris Lattner
065a13fd69 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31005 91177308-0d34-0410-b5e6-96231b3b80d8
2006-10-17 18:14:39 +00:00
Chris Lattner
4c1984d9e8 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


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30954 91177308-0d34-0410-b5e6-96231b3b80d8
2006-10-14 03:40:02 +00:00
Chris Lattner
78298871eb testcase for recent selectiondag patch
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30949 91177308-0d34-0410-b5e6-96231b3b80d8
2006-10-13 23:54:16 +00:00
Jim Laskey
98dd175f86 Explict processor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30882 91177308-0d34-0410-b5e6-96231b3b80d8
2006-10-11 17:14:14 +00:00
Jim Laskey
5aec0b061c Make sure combiner alias analysis does it's thing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30879 91177308-0d34-0410-b5e6-96231b3b80d8
2006-10-11 13:42:49 +00:00
Chris Lattner
f120bec233 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30651 91177308-0d34-0410-b5e6-96231b3b80d8
2006-09-28 20:48:17 +00:00
Nate Begeman
62929eb3d6 Testcase for better rotate left and mask support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30579 91177308-0d34-0410-b5e6-96231b3b80d8
2006-09-22 05:49:57 +00:00
Chris Lattner
72475c04ed new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30516 91177308-0d34-0410-b5e6-96231b3b80d8
2006-09-20 06:40:37 +00:00
Chris Lattner
6a26847715 add a testcase for this commit: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20050606/026673.html
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30238 91177308-0d34-0410-b5e6-96231b3b80d8
2006-09-10 18:52:25 +00:00
Chris Lattner
1c548b645b Move this test from Codegen/PowerPC to CodeGen/Generic. It fails on ia64,
but that's not the ppc backend's fault.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29914 91177308-0d34-0410-b5e6-96231b3b80d8
2006-08-27 20:52:00 +00:00
Chris Lattner
d039da9b41 New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29714 91177308-0d34-0410-b5e6-96231b3b80d8
2006-08-15 23:45:28 +00:00
Chris Lattner
84ff46b0d9 New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29606 91177308-0d34-0410-b5e6-96231b3b80d8
2006-08-11 16:46:38 +00:00
Chris Lattner
52379111e8 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29207 91177308-0d34-0410-b5e6-96231b3b80d8
2006-07-19 17:14:23 +00:00
Chris Lattner
5895a13755 New testcase for folding bswaps into i16/i32 loads and stores.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29088 91177308-0d34-0410-b5e6-96231b3b80d8
2006-07-10 20:53:53 +00:00
Evan Cheng
a962bfa001 Add a 64-bit test case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29069 91177308-0d34-0410-b5e6-96231b3b80d8
2006-07-07 21:36:24 +00:00
Jim Laskey
e4808ed44a Make sure global doubles and vectors are aligned properly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28805 91177308-0d34-0410-b5e6-96231b3b80d8
2006-06-15 19:35:07 +00:00
Chris Lattner
732baf35f9 add an external symbol testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28345 91177308-0d34-0410-b5e6-96231b3b80d8
2006-05-17 04:20:13 +00:00
Chris Lattner
413100fcb5 new test for various forms of calls
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28344 91177308-0d34-0410-b5e6-96231b3b80d8
2006-05-17 03:57:31 +00:00
Chris Lattner
4e64b5b711 test for support to pass/return vectors to calls.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28343 91177308-0d34-0410-b5e6-96231b3b80d8
2006-05-17 00:18:23 +00:00
Chris Lattner
7c65a309ac Another testcase that shouldn't need vrsave twiddling
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28332 91177308-0d34-0410-b5e6-96231b3b80d8
2006-05-16 18:23:55 +00:00
Chris Lattner
83cdf40144 new testcase for a recent rlwimi crash.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28242 91177308-0d34-0410-b5e6-96231b3b80d8
2006-05-12 16:28:13 +00:00
Chris Lattner
9b9a3cfe54 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28173 91177308-0d34-0410-b5e6-96231b3b80d8
2006-05-08 20:58:58 +00:00
Chris Lattner
a0aec0a61d new testcase we handle right now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28147 91177308-0d34-0410-b5e6-96231b3b80d8
2006-05-06 18:15:50 +00:00
Chris Lattner
0d4603b801 New testcase for a codegen crash
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27867 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-20 05:57:43 +00:00
Chris Lattner
99590420de new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27803 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-18 17:56:30 +00:00
Chris Lattner
a637e58918 Add tests for v8i16 and v16i8
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27791 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-18 03:54:50 +00:00
Chris Lattner
843ecd647c new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27787 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-18 03:22:16 +00:00
Chris Lattner
d5c654bb0a New testcase, shouldn't touch vrsave
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27776 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-17 21:48:03 +00:00
Chris Lattner
2f70c8cfa2 Some more cases that can be generated with two instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27759 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-17 17:54:18 +00:00
Chris Lattner
2c4e9c8a3d New testcases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27753 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-17 06:58:16 +00:00
Chris Lattner
33f24a9b17 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27751 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-17 06:06:50 +00:00
Chris Lattner
6e5316ff65 New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27749 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-17 05:58:22 +00:00
Chris Lattner
c3b5ad944c new testcase, these shuffles can be implemented with discrete instructions,
and shouldn't be lowered to vperm.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27747 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-17 05:27:31 +00:00
Chris Lattner
0ad91f5160 Update a count, this test now passes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27655 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-13 16:52:13 +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
324047847e new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27622 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-12 19:04:27 +00:00
Chris Lattner
fd4297fa0f two equivalent vsplti*s in different types should be CSEd.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27613 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-12 17:36:04 +00:00
Chris Lattner
c010c13f36 Rename this file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27611 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-12 17:01:11 +00:00
Chris Lattner
88d3c24196 Make this test more interesting by checking that the 0.0 used to implement vector fmul gets cse'd also.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27610 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-12 16:57:39 +00:00
Chris Lattner
8e7401e52f new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27608 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-12 16:49:16 +00:00
Chris Lattner
a7cdc88799 add new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27537 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-08 07:13:46 +00:00
Chris Lattner
64fa7a7296 Add testcases for vpku[hw]um(x,x)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27466 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-06 22:27:59 +00:00
Chris Lattner
cc8b1ac5cb Add vmrg(x,x) tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27462 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-06 22:02:11 +00:00
Chris Lattner
4ff8892972 Add tests for vmrg[hl]*
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27459 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-06 21:19:37 +00:00
Chris Lattner
c0d2021f0a test vperm promotion
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27454 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-06 19:21:02 +00:00
Chris Lattner
eb2285b7ff new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27449 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-06 18:26:13 +00:00
Chris Lattner
220c1009ff new testcase that was miscompiled to vspltisb
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27438 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-05 17:38:50 +00:00
Chris Lattner
2ffc00a1d5 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27397 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-04 17:20:45 +00:00
Chris Lattner
4502e13c9b New testcase that crashes the compiler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27333 91177308-0d34-0410-b5e6-96231b3b80d8
2006-04-02 00:23:59 +00:00
Chris Lattner
2a8fd4aa18 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27289 91177308-0d34-0410-b5e6-96231b3b80d8
2006-03-31 06:01:48 +00:00
Chris Lattner
606db09644 Correct the vandc testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27137 91177308-0d34-0410-b5e6-96231b3b80d8
2006-03-25 23:12:47 +00:00
Chris Lattner
39e41d6feb new testcases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27134 91177308-0d34-0410-b5e6-96231b3b80d8
2006-03-25 23:04:34 +00:00
Chris Lattner
b45854fff5 New tests for vsplti*
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27105 91177308-0d34-0410-b5e6-96231b3b80d8
2006-03-25 06:11:56 +00:00
Chris Lattner
33e71b69e1 New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27067 91177308-0d34-0410-b5e6-96231b3b80d8
2006-03-24 17:57:24 +00:00
Chris Lattner
937b90f998 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27058 91177308-0d34-0410-b5e6-96231b3b80d8
2006-03-24 07:47:53 +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
Chris Lattner
6bf9791d51 test that vspltw is generated for test cases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26955 91177308-0d34-0410-b5e6-96231b3b80d8
2006-03-22 19:12:46 +00:00
Chris Lattner
3dfd61b910 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26906 91177308-0d34-0410-b5e6-96231b3b80d8
2006-03-20 22:37:05 +00:00
Nate Begeman
ab001cfeaf Add a missing testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26834 91177308-0d34-0410-b5e6-96231b3b80d8
2006-03-17 22:39:45 +00:00
Chris Lattner
f4f5f6bca8 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26726 91177308-0d34-0410-b5e6-96231b3b80d8
2006-03-13 06:50:47 +00:00
Chris Lattner
88b48c36e2 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26534 91177308-0d34-0410-b5e6-96231b3b80d8
2006-03-04 23:31:49 +00:00
Chris Lattner
2471403423 load (x|y) -> load (x+y) iff x and y have no common bits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26449 91177308-0d34-0410-b5e6-96231b3b80d8
2006-03-01 07:13:56 +00:00
Chris Lattner
c607fa8665 new testcase. These functions shouldn't touch the stack if stfiwx use
is enabled.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26446 91177308-0d34-0410-b5e6-96231b3b80d8
2006-03-01 05:49:05 +00:00
Chris Lattner
257bedbeaf new testcase. There should be no accesses to the stack for these functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26444 91177308-0d34-0410-b5e6-96231b3b80d8
2006-03-01 04:56:33 +00:00
Chris Lattner
c7d855ea2e new testcases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26420 91177308-0d34-0410-b5e6-96231b3b80d8
2006-02-28 06:54:19 +00:00
Chris Lattner
71f5dfa8e9 Reenable this
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26391 91177308-0d34-0410-b5e6-96231b3b80d8
2006-02-27 01:00:12 +00:00
Chris Lattner
cfdbb7caa8 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26387 91177308-0d34-0410-b5e6-96231b3b80d8
2006-02-27 00:20:23 +00:00
Chris Lattner
05b53740e2 this fails, mark it as such
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26370 91177308-0d34-0410-b5e6-96231b3b80d8
2006-02-25 08:18:43 +00:00
Nate Begeman
b1d3c15c3c A few final (for now) tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26267 91177308-0d34-0410-b5e6-96231b3b80d8
2006-02-17 21:38:45 +00:00
Nate Begeman
3bd5403920 Yet another test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26266 91177308-0d34-0410-b5e6-96231b3b80d8
2006-02-17 21:32:46 +00:00
Nate Begeman
d44d3d5fc3 New tests!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26265 91177308-0d34-0410-b5e6-96231b3b80d8
2006-02-17 21:22:08 +00:00
Nate Begeman
8ec18177da Fix a comment sabre noticed :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26257 91177308-0d34-0410-b5e6-96231b3b80d8
2006-02-17 06:24:31 +00:00
Nate Begeman
b5fefc732c A couple new regression tests to make sure we always pattern match the new
opcodes on ppc.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26256 91177308-0d34-0410-b5e6-96231b3b80d8
2006-02-17 06:16:56 +00:00
Chris Lattner
3b6059285b this passes now, due to Nate's recent efforts
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26140 91177308-0d34-0410-b5e6-96231b3b80d8
2006-02-13 07:26:36 +00:00
Chris Lattner
60dda07913 new testcase that crashes llc for ppc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25495 91177308-0d34-0410-b5e6-96231b3b80d8
2006-01-21 04:25:07 +00:00
Chris Lattner
97f8f8d8f2 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25420 91177308-0d34-0410-b5e6-96231b3b80d8
2006-01-18 19:16:07 +00:00
Nate Begeman
cfde3c19c7 Add testcase for rotate by register and rotate by immediate
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25228 91177308-0d34-0410-b5e6-96231b3b80d8
2006-01-11 22:58:12 +00:00
Chris Lattner
634f235a46 Testcase the PPC backend is miscompiling.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25216 91177308-0d34-0410-b5e6-96231b3b80d8
2006-01-11 18:15:37 +00:00
Nate Begeman
1dae25e23a Add a case for float just to make sure the patterns for both precisions
are matching


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24718 91177308-0d34-0410-b5e6-96231b3b80d8
2005-12-14 22:51:13 +00:00
Chris Lattner
af6aa077d4 Test that crashes the ppc backend.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24546 91177308-0d34-0410-b5e6-96231b3b80d8
2005-11-30 20:40:28 +00:00
Chris Lattner
79ae0d12ba Check that this compiles to a label with a space in it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24284 91177308-0d34-0410-b5e6-96231b3b80d8
2005-11-10 19:33:04 +00:00
Chris Lattner
65026a72ef new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24112 91177308-0d34-0410-b5e6-96231b3b80d8
2005-10-30 19:42:18 +00:00
Chris Lattner
4446e04509 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24103 91177308-0d34-0410-b5e6-96231b3b80d8
2005-10-30 06:37:33 +00:00
Nate Begeman
92d6bb35d7 Add a regression test for the recent fix for FP_TO_UINT lowering in the ppc
backend.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23995 91177308-0d34-0410-b5e6-96231b3b80d8
2005-10-25 23:53:21 +00:00
John Criswell
d41abfa1d2 Use %s instead of hard coding the input filename.
This allows the test to work when srcdir != objdir.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23775 91177308-0d34-0410-b5e6-96231b3b80d8
2005-10-17 21:54:18 +00:00
Chris Lattner
dcdadef96d Nate implemented this :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23707 91177308-0d34-0410-b5e6-96231b3b80d8
2005-10-13 06:04:34 +00:00
Chris Lattner
e64dfbc10b new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23689 91177308-0d34-0410-b5e6-96231b3b80d8
2005-10-10 21:57:37 +00:00
Chris Lattner
1628947362 A testcase sitting in my tree
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23687 91177308-0d34-0410-b5e6-96231b3b80d8
2005-10-10 21:21:36 +00:00
Chris Lattner
0cb34c4714 Testcase that is miscompiled by the ppc backend
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23669 91177308-0d34-0410-b5e6-96231b3b80d8
2005-10-09 05:31:47 +00:00
Chris Lattner
a77e86e73e These don't need to be sdivs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23661 91177308-0d34-0410-b5e6-96231b3b80d8
2005-10-07 15:27:12 +00:00
Chris Lattner
babac05a95 New testcase, should turn into a ushr
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23658 91177308-0d34-0410-b5e6-96231b3b80d8
2005-10-07 06:10:03 +00:00
Chris Lattner
602b02a8f4 double to float casts should nto result in an fmr
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23653 91177308-0d34-0410-b5e6-96231b3b80d8
2005-10-07 04:59:41 +00:00
Chris Lattner
3a972c2951 add a testcase for a feature we regressed on because noone wrote the test! :(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23513 91177308-0d34-0410-b5e6-96231b3b80d8
2005-09-28 23:03:11 +00:00
Chris Lattner
dea6695716 add testcase for nand
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23495 91177308-0d34-0410-b5e6-96231b3b80d8
2005-09-28 18:08:58 +00:00
Chris Lattner
3e63428b2d Consolidate the eqv.ll and nor.ll files together.
Add a missed eqv case.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23493 91177308-0d34-0410-b5e6-96231b3b80d8
2005-09-28 18:04:22 +00:00
Chris Lattner
14c9caba44 simple tests for nor generation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23491 91177308-0d34-0410-b5e6-96231b3b80d8
2005-09-28 17:55:10 +00:00
Chris Lattner
e8033c00d6 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23402 91177308-0d34-0410-b5e6-96231b3b80d8
2005-09-23 00:53:06 +00:00
Chris Lattner
6b780a702e Make sure to disable 64-bit extensions for this test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23309 91177308-0d34-0410-b5e6-96231b3b80d8
2005-09-11 03:50:38 +00:00
Chris Lattner
a4d9dc7392 New testcase, neither should require a register-register copy
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23290 91177308-0d34-0410-b5e6-96231b3b80d8
2005-09-09 17:48:57 +00:00
Nate Begeman
eeff9b055c Test the new 64bit i64<->fp functionality
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23251 91177308-0d34-0410-b5e6-96231b3b80d8
2005-09-06 22:23:15 +00:00
Chris Lattner
c789701360 Test that converting from double to int64 results in one libcall, not one
and a dead one.  This is a legalize bug


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23227 91177308-0d34-0410-b5e6-96231b3b80d8
2005-09-02 20:24:10 +00:00
Chris Lattner
446a4eaee5 new testcase to ensure fsqrt is generated for correct subtargets only, and
that the fsqrt feature works.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23217 91177308-0d34-0410-b5e6-96231b3b80d8
2005-09-02 18:32:22 +00:00
Chris Lattner
7dd8b05fd7 This should permit NOT and's, not even dead ones.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23199 91177308-0d34-0410-b5e6-96231b3b80d8
2005-09-02 00:13:56 +00:00
Chris Lattner
9832ce0f0a 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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23197 91177308-0d34-0410-b5e6-96231b3b80d8
2005-09-01 23:43:58 +00:00
Nate Begeman
feca19b0d4 Add regression test for efficient codegen of i32 x i32 -> hi32(i64) as
mulhs.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23183 91177308-0d34-0410-b5e6-96231b3b80d8
2005-09-01 00:04:03 +00:00
Chris Lattner
c730706a89 Add a testcase for nate's patch
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23172 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-31 18:19:50 +00:00
Chris Lattner
dd43c866c8 The dag isel misses both of these, the pattern isel just misses the second
one.  TODO :)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23156 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-30 18:44:09 +00:00
Chris Lattner
135a0428a8 Make sure this doesn't break when we're improving the isels
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23014 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-24 16:48:49 +00:00
Chris Lattner
d8fba827ec remove dead options
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22899 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-19 01:16:18 +00:00
Jim Laskey
e5df8ea4a6 Unmangled names.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22875 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-18 20:06:09 +00:00
Jim Laskey
8e083803cf 1. Fix comment.
2. Get an exact count of 'li ' instructions.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22872 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-18 19:38:57 +00:00
Jim Laskey
5a53c2cbfa Add regression test to make sure that constants are generated optimally.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22871 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-18 19:32:46 +00:00
Nate Begeman
43c3c70b10 Add a testcase for load short -> uint, which is currently emitted as a
zextload + sign_extend_inreg rather than a sextload.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22852 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-18 03:11:44 +00:00
Jim Laskey
4a17addadb Added test cases to guarantee use of ORC and ANDC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22772 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-12 23:40:14 +00:00
Chris Lattner
7e03c74941 testcase that crashed the ppc backend, distilled from crafty
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22770 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-12 23:34:03 +00:00
Jim Laskey
191cf943e6 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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22761 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-11 21:59:23 +00:00
Chris Lattner
645f381d38 Add testcases for new rlwinm cases handled, patch by Jim Laskey!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22730 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-09 20:24:16 +00:00
Nate Begeman
1b0674c966 Add a couple rlwinm tests for bitfield clears
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22624 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-03 18:27:17 +00:00
Nate Begeman
2bbcca30b7 Update rlwimi tests to catch all the cases we care about
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22623 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-03 18:11:23 +00:00
John Criswell
32b30a3c23 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).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21902 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-12 21:06:05 +00:00
Nate Begeman
e066d68eb4 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


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21881 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-11 23:45:54 +00:00
Chris Lattner
9dd7a87a88 Check for eqv matching
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21414 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-21 21:10:07 +00:00
Nate Begeman
9acc366ae4 Update dejagnu tests to use the new pattern isel flag
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21311 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-16 04:25:48 +00:00
Nate Begeman
77a6d9032f Add CodeGen tests for the recent SelectionDAG transforms
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21292 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-13 21:45:13 +00:00
Chris Lattner
1a130b9a03 fix this testcase so the regex doesn't match the function name
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21210 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-10 20:45:35 +00:00
Nate Begeman
9a98a77446 Add a testcase to make sure that we don't emit two fneg instructions back
to back for certain fsel instructions.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21176 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-09 09:30:09 +00:00
Nate Begeman
e9c0f43a1b Add cases to cover the rest of the patterns we should be matching
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21175 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-09 08:29:59 +00:00
Chris Lattner
45485234ee add a test for fnabs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21169 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-09 04:03:16 +00:00
Chris Lattner
e23836cf77 add a partial test for the fma operations that ppc supports. I'm sure I'm
missing some and not all of these match yet, but I'm sure that Nate will
clean up my mess :)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21168 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-09 04:01:32 +00:00
Chris Lattner
2349ba939d New testcase, problem found by Rob.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19556 91177308-0d34-0410-b5e6-96231b3b80d8
2005-01-14 20:21:51 +00:00
Chris Lattner
557671951f Testcase that crashes the PPC backend. Thanks to Rob for finding this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19554 91177308-0d34-0410-b5e6-96231b3b80d8
2005-01-14 19:30:42 +00:00
Chris Lattner
081da56e9e New testcase that the PPC backend miscompiles. It is emitting
.comm _X,0

For X, which makes the linker thing that X is never defined.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18834 91177308-0d34-0410-b5e6-96231b3b80d8
2004-12-12 20:34:06 +00:00
Chris Lattner
aac2d44bc3 New testcase that crashes the PPC BE
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18375 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-30 06:39:45 +00:00
Chris Lattner
d510293e24 New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18373 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-30 06:35:52 +00:00
Chris Lattner
93e6d8329c New testcase that crashes the PPC backend
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18370 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-30 06:28:53 +00:00
Tanya Lattner
c8c1f12778 Adding srcdir arg
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18020 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-19 22:45:25 +00:00
Tanya Lattner
28b372f1d3 Adding subdirectory dg.exp files in order to be able to use dejagnu to only run specific tests (located in some subdirectory of Regression)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17712 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-13 23:00:45 +00:00
Chris Lattner
5f0a8c7384 Add missing run line
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17522 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-06 21:11:04 +00:00
Nate Begeman
2a40841387 Initial checkin of regression test for generating the PowerPC rlwimi
instruction, which performs bitfield inserts.  All tests should compile
to one rlwimi instruction.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17206 91177308-0d34-0410-b5e6-96231b3b80d8
2004-10-24 10:30:22 +00:00