Commit Graph

253 Commits

Author SHA1 Message Date
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
353f1dea50 new testcase corresponding to PR621
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23157 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-30 21:02:51 +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
c544cece40 New testcase for PR618
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22983 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-23 20:22:07 +00:00
Chris Lattner
4c23c5b330 Testcase for a crash in the legalizer on ia64. This is reduced from kc++.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22968 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-22 17:16:49 +00:00
Chris Lattner
ea966d714f Add a long-overdue itanium regression test dir: hint hint Duraid :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22967 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-22 17:15:41 +00:00
Chris Lattner
2cfd128bec Fix a bug in the RUN line
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22945 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-21 16:37:36 +00:00
Chris Lattner
957e574b30 remove dead args
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22900 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-19 01:17:18 +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
Chris Lattner
2b5d3cf6a0 remove dead flags
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22898 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-19 01:14:40 +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
Chris Lattner
dd8ffdd685 new reg test for a failure last night on ppc/darwin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22725 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-09 18:07:45 +00:00
Chris Lattner
956344c1cb None of these tests should require a working lli, they are codegen tests,
not execution tests.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22655 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-04 19:55:39 +00:00
Chris Lattner
a23076a5f6 Fix this to test the BE we care about
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22631 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-03 21:01:46 +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
Chris Lattner
c3f9dc198d this tests every fp-to-integer conversion
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22562 91177308-0d34-0410-b5e6-96231b3b80d8
2005-07-30 01:33:38 +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
fca3c644ea Allow this to pass on non-linux systems as well, such as darwin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22484 91177308-0d34-0410-b5e6-96231b3b80d8
2005-07-20 19:12:00 +00:00
Chris Lattner
837451b168 set the target triple so that we don't fail due to X86 abi issues
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22479 91177308-0d34-0410-b5e6-96231b3b80d8
2005-07-20 03:56:48 +00:00
John Criswell
8bf0f64923 Regression test for PR#596: Make sure that negation of a minus doesn't
turn into a C predecrement operator.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22438 91177308-0d34-0410-b5e6-96231b3b80d8
2005-07-14 19:56:03 +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
92b5376154 new testcase that crashes llc on x86/ppc. Not generated by C/C++ or LLVM
though.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22416 91177308-0d34-0410-b5e6-96231b3b80d8
2005-07-13 01:42:03 +00:00
Chris Lattner
70a1950154 add test to check for tail calls
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22048 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-15 05:52:51 +00:00
Chris Lattner
b73855bcd4 Make sure this is not eligible for tail-call-elimination so that we test
the correct thing.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22039 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-14 23:54:55 +00:00
Chris Lattner
3b8ce85b19 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22037 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-14 23:52:09 +00:00
Chris Lattner
955c07cab0 Ensure these casts are done with the hardware fildll instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22013 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-14 07:09:25 +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
Chris Lattner
e2fd52397c new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21989 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-13 22:15:26 +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
Chris Lattner
b6cf537e25 Force x86 backend
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21940 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-13 16:20:59 +00:00
Chris Lattner
e0f395b25f let dj run this
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21935 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-13 15:44:55 +00:00
Andrew Lenharth
7c644405fe fixed test case
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21934 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-13 15:42:07 +00:00
Chris Lattner
3013138bd3 add a correct run line
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21918 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-13 04:20:57 +00:00
Chris Lattner
b794107416 reg test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21914 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-12 23:09:04 +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