Commit Graph

461 Commits

Author SHA1 Message Date
Chris Lattner
31e66e8b76 weak globals on darwin require an extra load, breaking this test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26695 91177308-0d34-0410-b5e6-96231b3b80d8
2006-03-10 17:55:10 +00:00
Evan Cheng
e9eded1c25 Add a test case for (store (op (load ..) ..) ..) folding.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26656 91177308-0d34-0410-b5e6-96231b3b80d8
2006-03-09 19:04:30 +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
Evan Cheng
e5d5595d36 Add another test case for instruction scheduling.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26507 91177308-0d34-0410-b5e6-96231b3b80d8
2006-03-03 18:58:09 +00:00
Chris Lattner
472c0ebea4 Remove these testcases. These intrinsics are going away
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26478 91177308-0d34-0410-b5e6-96231b3b80d8
2006-03-03 00:16:23 +00:00
Evan Cheng
d180ac1109 Add a regression test for bug 478.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26471 91177308-0d34-0410-b5e6-96231b3b80d8
2006-03-02 21:48:34 +00:00
Chris Lattner
358d5afcbd new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26458 91177308-0d34-0410-b5e6-96231b3b80d8
2006-03-01 21:46:53 +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
cf6a9fbd9b new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26439 91177308-0d34-0410-b5e6-96231b3b80d8
2006-03-01 03:43:38 +00:00
Evan Cheng
ce531a4eff Add a test case for left shift by 1. We should not be using lea for this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26431 91177308-0d34-0410-b5e6-96231b3b80d8
2006-02-28 23:57:45 +00:00
Chris Lattner
7adf72a5e4 evan's recent x86 isel improvements have fixed this, though not in the way
originally envisioned :)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26422 91177308-0d34-0410-b5e6-96231b3b80d8
2006-02-28 16:39:56 +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
Evan Cheng
9394514ede New test case: use lea for imul by some constants.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26378 91177308-0d34-0410-b5e6-96231b3b80d8
2006-02-25 10:16:10 +00:00
Evan Cheng
c6d80a4ecf lea.ll is XFAIL until we implement convertToThreeAddress.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26377 91177308-0d34-0410-b5e6-96231b3b80d8
2006-02-25 10:15:22 +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
Evan Cheng
4ba9cd53ba Add a test case for 'lea'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26322 91177308-0d34-0410-b5e6-96231b3b80d8
2006-02-23 00:12:12 +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
Jim Laskey
19fd628e5c Code sufficiently protected against this test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26213 91177308-0d34-0410-b5e6-96231b3b80d8
2006-02-15 17:20:59 +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
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
d1157dd535 Reduce this testcase a bit more, with the help of llvm-extract and some hand tweaks
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26139 91177308-0d34-0410-b5e6-96231b3b80d8
2006-02-13 07:02:50 +00:00
Evan Cheng
50b5c2ebd9 Added a test case for a libcall insertion bug.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26137 91177308-0d34-0410-b5e6-96231b3b80d8
2006-02-12 10:24:00 +00:00
Chris Lattner
2d99c81ff0 this apparently passes on linux
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26082 91177308-0d34-0410-b5e6-96231b3b80d8
2006-02-09 07:12:13 +00:00
Jim Laskey
e35eed2944 Disable this test for the time being as debug is brought up to speed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26063 91177308-0d34-0410-b5e6-96231b3b80d8
2006-02-08 18:17:06 +00:00
Chris Lattner
e1070166e7 These were moved to ../SPARC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25987 91177308-0d34-0410-b5e6-96231b3b80d8
2006-02-05 05:53:48 +00:00
Chris Lattner
7ce1bbf05d move V8 testcases here
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25986 91177308-0d34-0410-b5e6-96231b3b80d8
2006-02-05 05:52:55 +00:00
Evan Cheng
a5229887cf Added a (store (op (load ...) ...) ...) folding test case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25933 91177308-0d34-0410-b5e6-96231b3b80d8
2006-02-03 06:46:41 +00:00
Chris Lattner
29dd2d7d15 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25897 91177308-0d34-0410-b5e6-96231b3b80d8
2006-02-02 06:35:38 +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
Chris Lattner
faa60106f1 new testcase for the 'ret double folding with load' opzn
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25868 91177308-0d34-0410-b5e6-96231b3b80d8
2006-02-01 01:45:02 +00:00
Evan Cheng
a80ea033d1 Don't generate (or setp, setae) for SETUGE. Simply flip the operands around and
generate SETULT instead.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25823 91177308-0d34-0410-b5e6-96231b3b80d8
2006-01-30 23:39:40 +00:00
Chris Lattner
a0bb4f749a new testcase for the 'C++' failures last night.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25820 91177308-0d34-0410-b5e6-96231b3b80d8
2006-01-30 22:43:10 +00:00
Chris Lattner
d7e9f30a22 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25813 91177308-0d34-0410-b5e6-96231b3b80d8
2006-01-30 06:11:36 +00:00
Evan Cheng
992694418b Use Intel assembly syntax to look for ST
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25713 91177308-0d34-0410-b5e6-96231b3b80d8
2006-01-27 22:51:51 +00:00
Evan Cheng
69c543709d X86 dag isel is now (soon) the default.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25699 91177308-0d34-0410-b5e6-96231b3b80d8
2006-01-27 21:15:22 +00:00
Evan Cheng
9bd79b17ef These are fp stack test cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25698 91177308-0d34-0410-b5e6-96231b3b80d8
2006-01-27 21:14:23 +00:00
Evan Cheng
8cb1e2b6f4 XFAIL tailcall test cases until it's implemented.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25697 91177308-0d34-0410-b5e6-96231b3b80d8
2006-01-27 21:13:27 +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
Chris Lattner
9706e63251 Testcase that failed due to a legalizer bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25537 91177308-0d34-0410-b5e6-96231b3b80d8
2006-01-23 07:30:14 +00:00
Chris Lattner
32814a58e4 this option is gone, the dag isel is the default now
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25536 91177308-0d34-0410-b5e6-96231b3b80d8
2006-01-23 07:21:12 +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
Evan Cheng
52b8b5982f Added a load folding bug test case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25472 91177308-0d34-0410-b5e6-96231b3b80d8
2006-01-20 01:12:23 +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
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
Chris Lattner
a076787d7b this testcase sent the dag combiner spinning into an infinite loop
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25418 91177308-0d34-0410-b5e6-96231b3b80d8
2006-01-18 19:13:11 +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
Nate Begeman
d88fc03602 bswap implementation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25312 91177308-0d34-0410-b5e6-96231b3b80d8
2006-01-14 03:14:10 +00:00
Chris Lattner
929db42702 testcase for the llvm.stacksave/llvm.stackrestore intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25269 91177308-0d34-0410-b5e6-96231b3b80d8
2006-01-13 02:25:08 +00:00
Evan Cheng
2085a9d99b Test case for a SETCC / BRCOND folding bug.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25258 91177308-0d34-0410-b5e6-96231b3b80d8
2006-01-13 01:02:22 +00:00
Duraid Madina
8d4acd715a verily, sabre did leave
and yea! Saem said "ARRR."

meanwhile, the pinksias and the campfires and the ET forests glowed.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25240 91177308-0d34-0410-b5e6-96231b3b80d8
2006-01-12 02:50:34 +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
Chris Lattner
07917b672d catch all forms of xnor
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25208 91177308-0d34-0410-b5e6-96231b3b80d8
2006-01-11 07:13:22 +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
Chris Lattner
7bfdd86147 new testcase, fails on X86 and probably others
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24894 91177308-0d34-0410-b5e6-96231b3b80d8
2005-12-21 05:09:57 +00:00
Chris Lattner
504640333d A truly trivial testcase to ensure sparcv8 doesn't get completely broken
again.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24737 91177308-0d34-0410-b5e6-96231b3b80d8
2005-12-16 06:24:55 +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
e4e49132af new testcase, each function should have one extension instr in it
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24711 91177308-0d34-0410-b5e6-96231b3b80d8
2005-12-14 19:24:08 +00:00
Chris Lattner
a92dabb259 Testcase for a problem that reid ran into
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24676 91177308-0d34-0410-b5e6-96231b3b80d8
2005-12-12 22:27:22 +00:00
Chris Lattner
6a0beed626 new testcase, for PR672
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24584 91177308-0d34-0410-b5e6-96231b3b80d8
2005-12-04 06:03:25 +00:00
Chris Lattner
43cb6effd3 New testcase that crashes llc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24570 91177308-0d34-0410-b5e6-96231b3b80d8
2005-12-01 23:14:09 +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
33a13d4bd2 This should not be dce'd
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24433 91177308-0d34-0410-b5e6-96231b3b80d8
2005-11-20 21:46:52 +00:00
Andrew Lenharth
87420af40b oops
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24432 91177308-0d34-0410-b5e6-96231b3b80d8
2005-11-20 21:42:49 +00:00
Andrew Lenharth
bbafae6c80 check that rdtsc is generated from readcyclecounter
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24431 91177308-0d34-0410-b5e6-96231b3b80d8
2005-11-20 21:41:59 +00:00
Chris Lattner
692f871d1f this is no apparently passing on alpha
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24331 91177308-0d34-0410-b5e6-96231b3b80d8
2005-11-12 18:35:13 +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
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
dc50b3587c The pass was removed, but the spirit lives on
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24108 91177308-0d34-0410-b5e6-96231b3b80d8
2005-10-30 07:22:15 +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
Duraid Madina
ad85677879 test for the formation of shladd
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24077 91177308-0d34-0410-b5e6-96231b3b80d8
2005-10-29 04:06:49 +00:00
Chris Lattner
dda73c12e9 add the xfail lines
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24066 91177308-0d34-0410-b5e6-96231b3b80d8
2005-10-28 19:57:55 +00:00
Chris Lattner
32b03ff918 New testcase. Probably many targets don't support this, so they should probably
add themselves as xfails until they do (at least for the release).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24065 91177308-0d34-0410-b5e6-96231b3b80d8
2005-10-28 19:52:02 +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
Chris Lattner
77a498cd7e New testcase that crashes the ppc backend
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23871 91177308-0d34-0410-b5e6-96231b3b80d8
2005-10-21 21:09:13 +00:00
John Criswell
3d92544261 Moved to Regression/Codegen/Generic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23829 91177308-0d34-0410-b5e6-96231b3b80d8
2005-10-19 18:52:52 +00:00
John Criswell
eb853a498f This is a generic test for all code generators. It originally came from
Regression/Codegen/X86.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23826 91177308-0d34-0410-b5e6-96231b3b80d8
2005-10-19 18:51:07 +00:00
John Criswell
886eb39170 Force i386 code generation for an i386 specific test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23821 91177308-0d34-0410-b5e6-96231b3b80d8
2005-10-19 18:30:39 +00:00
Chris Lattner
f46544cd82 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23798 91177308-0d34-0410-b5e6-96231b3b80d8
2005-10-18 22:13:39 +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
ee738803c4 test broken in the IA64 backend.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23651 91177308-0d34-0410-b5e6-96231b3b80d8
2005-10-07 04:49:00 +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
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
7a66641ba9 new testcase the CBE creates invalid C code for
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23474 91177308-0d34-0410-b5e6-96231b3b80d8
2005-09-27 20:52:30 +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
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