Commit Graph

3186 Commits

Author SHA1 Message Date
Reid Spencer
00d35c5a34 Test case for PR1065.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32755 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-23 19:14:10 +00:00
Reid Spencer
e4d87aa2de For PR950:
This patch removes the SetCC instructions and replaces them with the ICmp
and FCmp instructions. The SetCondInst instruction has been removed and
been replaced with ICmpInst and FCmpInst.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32751 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-23 06:05:41 +00:00
Chris Lattner
40bf725ef1 add a generic component to this test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32747 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-22 22:48:44 +00:00
Chris Lattner
8c5250f8ee let this pass for ppc/linux
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32746 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-22 22:38:38 +00:00
Reid Spencer
787bfe654c Integer constants now print out as signed values in the assembly,
regardless of the signedness of the associated type.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32734 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-21 19:14:49 +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
505811e9dd Add some tests for negative constants to unsigned and large positive
constants to signed.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32717 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-20 17:27:58 +00:00
Chris Lattner
d407f41413 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32714 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-20 06:20:23 +00:00
Reid Spencer
13b017c1f9 Update this test because constant integers are always printed signed now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32699 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-19 22:42:17 +00:00
Reid Spencer
b60528b8ab For PR950:
Test needs to be upgraded for the forthcoming FCmpInst patch.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32683 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-19 19:55:17 +00:00
Reid Spencer
79a7eaa5c3 This test needs to be upgraded for the forthcoming FCmpInst patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32682 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-19 19:50:30 +00:00
Reid Spencer
eae919f653 This test needs to be upgraded for the FCmpInst patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32677 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-19 19:30:58 +00:00
Reid Spencer
db167271fd Make sure linker output is overwritten so this test can pass multiple times.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32675 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-19 19:29:50 +00:00
Chris Lattner
cbac0aa9eb testcase for pr1061
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32674 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-19 19:29:50 +00:00
Reid Spencer
0b985dc84a Back out last revision, a bit premature, its not an upgrade-only change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32670 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-19 02:17:23 +00:00
Reid Spencer
f2315900fd For PR950:
Upgrade this test in preparation for the SETCC patch.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32669 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-19 02:14:08 +00:00
Reid Spencer
81daddbf0d For PR950:
These tests need to be upgraded in preparation for the SETCC patch.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32668 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-19 02:09:20 +00:00
Reid Spencer
0db64caad9 This test needs to be upgraded in preparation for the SETCC patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32667 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-19 02:07:11 +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
Reid Spencer
0be3ed886c Add a couple little tests for SExt/ZExt of constants of a sign that doesn't
match.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32647 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-18 01:11:46 +00:00
Chris Lattner
286505a944 testcase for pr1049
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32632 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-16 21:12:49 +00:00
Chris Lattner
7f03b2d107 Fix one more broken testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32631 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-16 20:27:43 +00:00
Chris Lattner
4c8e36934f Fix borken testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32627 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-16 02:30:24 +00:00
Chris Lattner
c80dfba667 fix buggy testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32626 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-16 02:29:22 +00:00
Chris Lattner
adbb6383a9 testcases for PR1042
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32625 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-16 02:26:57 +00:00
Andrew Lenharth
c8782ad4ee extern_weak link test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32602 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-15 17:34:37 +00:00
Chris Lattner
d6032177f5 reenable these
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32596 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-15 07:32:49 +00:00
Chris Lattner
66bdd18a4b New testcase for llvm-gcc bugfix
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32594 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-15 06:49:20 +00:00
Rafael Espindola
8897a7b02e avoid using a constant table when a constant can be used inline
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32580 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-14 18:58:37 +00:00
Rafael Espindola
15f17a7c47 Avoid creating invalid sub/add instructions on the prolog/epilog
patch by Lauro


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32577 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-14 13:31:27 +00:00
John Criswell
6422564333 Remove DSA tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32549 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-13 19:39:27 +00:00
John Criswell
308fce15ec Remove DSA tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32547 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-13 18:05:30 +00:00
Chris Lattner
18c3e6524d xfail these until I recommit the scalarrepl patch
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32545 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-13 17:42:40 +00:00
John Criswell
3ce85d5f8e Remove DSA tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32543 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-13 17:02:04 +00:00
Chris Lattner
32c081ae5f New testcase for PR1047
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32528 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-13 04:30:18 +00:00
Rafael Espindola
a898ce687a more general matching of the MVN instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32484 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-12 17:10:13 +00:00
Rafael Espindola
2426775c81 don't use "ordinary" addressing mode 1 when mvn is appropriate
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32482 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-12 14:03:29 +00:00
Chris Lattner
bcb56d8104 new testcase for pr1045
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32467 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-12 04:24:17 +00:00
Chris Lattner
d7626a82e6 This should check for darwin literal sections as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32464 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-12 03:59:46 +00:00
Rafael Espindola
f64945d83c use MVN to handle small negative constants
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32459 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-12 01:03:11 +00:00
Reid Spencer
12375467b2 Don't bother upgrading this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32458 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-12 00:53:31 +00:00
Rafael Espindola
450856d01b add mvn
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32454 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-12 00:37:38 +00:00
Reid Spencer
1565491af2 Test case for ensuring correct reading back of cast constant expressions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32449 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-11 23:19:53 +00:00
Reid Spencer
6a126513fc Add a test for constant folding of bitcast to/from floating point.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32446 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-11 21:25:10 +00:00
Reid Spencer
711679e21c Provide a test for int<->float and long<->double bitcasts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32445 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-11 20:40:28 +00:00
Chris Lattner
4ed4ac34c3 constant folding of bitcast is broken.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32437 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-11 18:29:07 +00:00
Chris Lattner
d36a76d655 the xform is done by scalarrepl not the code generator.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32425 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-11 01:03:32 +00:00
Chris Lattner
e629ff0be8 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32421 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-11 00:34:27 +00:00
Chris Lattner
5bd2db38f8 testcase for a regression introduced by the recent cast patch
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32419 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-11 00:12:07 +00:00
Chris Lattner
1846783d93 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32417 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-10 23:52:28 +00:00