Commit Graph

206 Commits

Author SHA1 Message Date
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
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
John Criswell
a65640edd0 Regression test for PR#563.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21879 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-11 21:47:35 +00:00
Andrew Lenharth
50d435f3a7 Legalize for CTLZ generates a ctpop, but this ctpop is not expanded.
This is bad.  It is generated if you are ctlz a type that is not
legal for the arch (aka ctlz of bytes on alpha legalize fine).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21867 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-11 17:23:41 +00:00
Chris Lattner
07fc17371b include the other bit count intrinsics
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21863 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-11 05:31:01 +00:00
Chris Lattner
3c8a3b1393 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21854 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-11 04:22:47 +00:00
Chris Lattner
bd8b13dec3 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21819 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 17:09:31 +00:00
Chris Lattner
f2c7af2cb0 tweak test to accept the (good) code emitted by the pattern isel
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21812 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 05:54:27 +00:00
Chris Lattner
49b8b70008 New testcase that crashes the pattern isel
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21800 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 03:36:11 +00:00
Chris Lattner
fd38787a8b new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21699 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-05 17:57:24 +00:00
Andrew Lenharth
e8aebf79e1 comment fix
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21685 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-04 15:56:34 +00:00
Andrew Lenharth
d3942b4701 see if the legalize code propery compensates for the additional zeros introduced
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21684 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-04 15:51:07 +00:00
Andrew Lenharth
1419711ece added a use of ctpop to debug stuff with
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21681 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-04 15:20:16 +00:00
Chris Lattner
ac766dca82 add sin/cos tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21635 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-30 04:41:27 +00:00
Chris Lattner
459ced2657 Add a test for llvm.sqrt
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21628 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-30 04:07:15 +00:00
Jeff Cohen
b02fbfc485 Eliminate tabs and trailing spaces
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21479 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-23 21:26:11 +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
Chris Lattner
14f342978c this passes on darwin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21410 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-21 20:48:08 +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
Andrew Lenharth
80563ff1a5 added a random and mask test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21301 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-14 16:17:49 +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
Andrew Lenharth
eecbf30e9c regression case for faster call sequence
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21284 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-13 16:16:01 +00:00
Andrew Lenharth
f701697101 check that casts still use zap
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21283 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-13 13:00:16 +00:00
Andrew Lenharth
003e68e442 added s4addl matching test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21277 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-13 04:41:06 +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
Chris Lattner
d0abb7a2ec new testcase that used to crash the ppc fe. It could effect any simpleisel
that is not careful, so I'm checking it into the generic tests.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21190 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-09 22:03:10 +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
2f65f8e724 New testcase that the sparc backend crashes on
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21173 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-09 06:26:27 +00:00
Chris Lattner
2e6027ccab make this test more interesting
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21170 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-09 04:55:14 +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
Andrew Lenharth
a844b017a6 oops
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21155 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-08 16:55:15 +00:00
Andrew Lenharth
b8a5d63b18 added some tests to check stupid pattern matching mistakes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21154 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-08 16:46:44 +00:00
Andrew Lenharth
0b5031abd4 match case change in codegen
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21141 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-07 17:47:00 +00:00
Andrew Lenharth
3a46221d0b simplified
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21119 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-06 20:59:03 +00:00
Andrew Lenharth
0def226064 added first alpha codegen regression test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21117 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-06 20:39:17 +00:00
Chris Lattner
4cb11a1de2 this has now been fixed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21026 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-02 16:17:57 +00:00
Chris Lattner
e21710757d don't forget to use the right code generator :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21017 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-02 05:40:03 +00:00
Chris Lattner
597f22f6cd new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21016 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-02 05:35:00 +00:00
Chris Lattner
d4b57286dc new generic testcsae
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20996 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-02 02:41:55 +00:00
Chris Lattner
bea061df63 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20978 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-01 07:19:06 +00:00
Chris Lattner
7c61b7b6ea make sure this test tests the intended target.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20777 91177308-0d34-0410-b5e6-96231b3b80d8
2005-03-23 01:32:03 +00:00
Chris Lattner
13a04bcd07 new testcase that crashes the CBE.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20518 91177308-0d34-0410-b5e6-96231b3b80d8
2005-03-08 16:19:02 +00:00
Chris Lattner
0a8794d043 execution tests shouldn't go here. This was killing the PPC nightly tester.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20186 91177308-0d34-0410-b5e6-96231b3b80d8
2005-02-14 21:54:32 +00:00
Chris Lattner
eb28797506 A testcase that LLC produces illegal asm on for Prolangs-C/cdecl now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20182 91177308-0d34-0410-b5e6-96231b3b80d8
2005-02-14 21:31:41 +00:00
Chris Lattner
ee6cfda17c new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20176 91177308-0d34-0410-b5e6-96231b3b80d8
2005-02-14 16:45:38 +00:00
Chris Lattner
9b5cb04a0a xfail this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19846 91177308-0d34-0410-b5e6-96231b3b80d8
2005-01-26 07:09:44 +00:00