Chris Lattner
2733b30195
new testcase that condprop should handle. The PHI node becomes useless
...
after threading the branch, because both operands are the same value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22668 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-05 00:59:55 +00:00
Chris Lattner
f065f05397
add a testcase nate requested
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22663 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-04 22:49:32 +00:00
Chris Lattner
763103c87d
This should not run lli, that is for llvm-test.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22656 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-04 19:56:35 +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
341bef6ed5
This testcase now passes
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22651 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-04 19:08:07 +00:00
Chris Lattner
89fe67f19f
this is not implemented by lsr yet
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22642 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-04 01:18:48 +00:00
Chris Lattner
6bc89e2159
this now passes
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22636 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-03 22:51:40 +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
Chris Lattner
999b814a6d
new testcase for PR612
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22627 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-03 18:51:15 +00:00
Chris Lattner
522611095d
new testcase for PR612
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22625 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-03 18:33:48 +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
82e6ef3ec3
Testcase that used to crash simplifycfg
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22622 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-03 18:01:07 +00:00
Chris Lattner
969c88e817
un-xfail this
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22614 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-03 00:58:44 +00:00
Chris Lattner
d970ff025d
This fails for now
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22608 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-03 00:10:28 +00:00
Chris Lattner
1bc0f735c9
New testcase that caused simplifycfg to crash
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22583 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-02 03:23:03 +00:00
Chris Lattner
88aad145a5
temporarily fail these two tests until LSR evolves to support them
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22567 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-01 17:10:50 +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
Chris Lattner
70df32a138
New testcase for PR610
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22545 91177308-0d34-0410-b5e6-96231b3b80d8
2005-07-28 20:18:33 +00:00
Chris Lattner
50e9ef8792
Testcase for PR607
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22519 91177308-0d34-0410-b5e6-96231b3b80d8
2005-07-26 22:08:53 +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
a9562059c2
new testcase for PR602
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22495 91177308-0d34-0410-b5e6-96231b3b80d8
2005-07-21 21:55:08 +00:00
Chris Lattner
47183e51c2
If errno doesn't matter (e.g. in -ffast-math scenarios), sqrt* should be
...
compiled to llvm.sqrt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22488 91177308-0d34-0410-b5e6-96231b3b80d8
2005-07-21 01:09:27 +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
Reid Spencer
87df3636e1
Add a test that runs the ParallelJIT example program to ensure that the
...
JIT can run against a multi-threaded program without getting its data
structures messed up. Also had to add the examples directory to the path
for the tests so that ParallelJIT can be found.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22415 91177308-0d34-0410-b5e6-96231b3b80d8
2005-07-13 00:35:12 +00:00
Chris Lattner
78e1a3c038
New testcase distilled from a large chunk of code Misha sent me.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22347 91177308-0d34-0410-b5e6-96231b3b80d8
2005-07-07 20:39:45 +00:00
Chris Lattner
e04f865da2
new testcase for PR590
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22317 91177308-0d34-0410-b5e6-96231b3b80d8
2005-06-30 07:28:54 +00:00
Reid Spencer
298a3683d0
Fix this test case to actually test the new va_arg instruction not the
...
old vaarg instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22256 91177308-0d34-0410-b5e6-96231b3b80d8
2005-06-18 20:27:32 +00:00
Andrew Lenharth
cc494e8312
new vararg test
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22252 91177308-0d34-0410-b5e6-96231b3b80d8
2005-06-18 18:30:37 +00:00
Chris Lattner
32545518f2
new testcase for PR586
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22235 91177308-0d34-0410-b5e6-96231b3b80d8
2005-06-17 03:58:30 +00:00
Chris Lattner
98b4d59861
new testcase for PR585
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22233 91177308-0d34-0410-b5e6-96231b3b80d8
2005-06-17 02:04:47 +00:00
Chris Lattner
bff44407e8
new testcase for PR584
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22231 91177308-0d34-0410-b5e6-96231b3b80d8
2005-06-17 01:45:03 +00:00
Chris Lattner
5adb41a750
new testcase for PR583
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22226 91177308-0d34-0410-b5e6-96231b3b80d8
2005-06-16 04:55:29 +00:00
Chris Lattner
065e4208a9
new testcase for PR580
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22222 91177308-0d34-0410-b5e6-96231b3b80d8
2005-06-15 22:42:53 +00:00
Chris Lattner
73d31b9598
new testcase for PR582
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22220 91177308-0d34-0410-b5e6-96231b3b80d8
2005-06-15 21:28:55 +00:00
Chris Lattner
364651395c
new testcase for PR579
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22218 91177308-0d34-0410-b5e6-96231b3b80d8
2005-06-15 21:11:18 +00:00
Chris Lattner
7833b44f6a
new testcase for PR577
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22216 91177308-0d34-0410-b5e6-96231b3b80d8
2005-06-15 20:52:39 +00:00
Reid Spencer
70dd5214c4
Remove trailing blank line, just to test whether the new commit script
...
is going to credit the commit correctly or not.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22165 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-21 01:29:30 +00:00
Chris Lattner
35e6dc8ccf
new testcase
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22160 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-20 22:25:44 +00:00
Chris Lattner
07b5c9d68f
New testcase that crashes simplifycfg, identified accidentally by JohnMC
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22157 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-20 22:19:34 +00:00
Reid Spencer
2a43970b28
Finally get the quoting right for both Unix and Windows for the llvmgcc and
...
llvmgxx programs. dejagnu doesn't understand single quote and we need to
pass double quotes through to the shell in order to escape blanks in the
paths. This patch uses \" to escape the quotes passed through to the shell.
Thanks to Aaron Gray for testing this out on cygwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22155 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-20 20:13:41 +00:00
Reid Spencer
10017623d9
Don't eliminate a test case, just the form of the test case, from the
...
previous revision.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22072 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-15 21:35:26 +00:00
Chris Lattner
73b2291703
This does not belong
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22071 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-15 21:31:36 +00:00
Reid Spencer
9b1749b1f4
Add a case with non-constant argument for testing the transform:
...
ffs(x) -> (x == 0 ? 0 : llvm.cttz(0)+1)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22069 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-15 21:26:59 +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
Reid Spencer
c6e3d5ea2e
Add a test case for testing ffs libcall conversion to constant
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22028 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-14 16:44:43 +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
4032b9c94c
Fix this
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21999 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-14 02:33:20 +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
Chris Lattner
069b96380f
This passes on sparc
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21955 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-13 18:37:58 +00:00
Chris Lattner
7dad18b788
remove test
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21952 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-13 18:19:29 +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
5fa8707821
fix buggy test
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21937 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-13 15:51:31 +00:00
Chris Lattner
a02e0bd1a3
Fix buggy test
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21936 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-13 15:48:41 +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
bb9d6fd8d9
disable this test for now.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21920 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-13 04:51:58 +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
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
47f9607e56
new testcase for PR562
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21849 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-10 22:32:29 +00:00
Chris Lattner
780b6d08ab
new testcase
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21837 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-10 00:33:36 +00:00
Chris Lattner
edcee6f5fd
testcase I've had in my tree
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21832 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 21:21:10 +00:00
John Criswell
f13c334536
Tell tblgen exactly where to find the include file.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21822 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 19:32:08 +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
2f2c3e4392
New testcase
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21808 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 04:54:18 +00:00
Reid Spencer
87bb7c61ac
Add note to self to complete the testing of all intrinsic functions as
...
specified in the LangRef document.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21807 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 04:47:32 +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
20fad44ede
New testacse for information exposed by the 'tail' call marker.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21795 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-08 23:57:34 +00:00
Chris Lattner
6d60924e3d
add a testcase for a case we do not handle yet
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21789 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-08 21:47:42 +00:00
Chris Lattner
22d06312a9
new testcase
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21787 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-08 21:41:18 +00:00
Chris Lattner
4544d0218a
new testcase
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21784 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-08 21:28:33 +00:00
Chris Lattner
f4946dff71
new testcases for PR557
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21782 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-08 20:56:02 +00:00
Chris Lattner
1a82ca80dd
new testcase
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21777 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-08 18:54:40 +00:00
Chris Lattner
a9c83c73da
new testcase
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21774 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-08 17:31:24 +00:00
Reid Spencer
29a5bf5f0f
* Break tests into individual cases so its easier to see what's going on.
...
* Add four new cases to handle the new optimizations for strlen, dealing
with:
strlen(x) != 0 -> *x != 0
strlen(x) == 0 -> *x == 0
for each of two cases: strlen(x) != 0 and strlen(x) == 0
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21767 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-07 20:21:04 +00:00
Chris Lattner
5cc924ac42
test that reassociate can handle shifts
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21760 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-07 04:23:29 +00:00
Chris Lattner
8ccdf7b07a
new testcase
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21756 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-07 02:16:08 +00:00
Chris Lattner
6dc7e6833b
new testcase
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21750 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-06 22:33:44 +00:00
Chris Lattner
2f4251bfbe
Make sure to not accidentally get a bogus tail marker
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21735 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-06 06:47:37 +00:00
Chris Lattner
d100d4c3e9
test that tail call survives bytecodification
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21728 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-06 06:18:33 +00:00
Chris Lattner
5962b3b0bf
new testcases
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21716 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-06 04:52:46 +00:00
Chris Lattner
1b50d062c8
new testcase
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21714 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-06 04:11:32 +00:00
Chris Lattner
cb94575bc6
new testcase for unneeded and
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21711 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-06 01:52:52 +00:00
Chris Lattner
564d20cb9b
new testcase
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21710 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-06 01:51:05 +00:00
Chris Lattner
056ea904a7
new testcase
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21708 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-06 00:58:09 +00:00
Chris Lattner
554a4dc987
new testcase for PR541
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21702 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-05 22:23:10 +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
Chris Lattner
ac0630ff75
new testcase for a bug Jim found
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21695 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-05 15:47:16 +00:00
Chris Lattner
3a9a7701f0
new testcase
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21689 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-04 19:05:02 +00:00
Reid Spencer
3ec93c593c
Make sure both optimization cases get tested.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21687 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-04 17:45:10 +00:00
Reid Spencer
57ff221e24
Add a test case for the IsDigitOptimization class.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21686 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-04 17:34:55 +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
Reid Spencer
c88e681498
Fix this test to succeed even if "strchr" is on a call instruction.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21675 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-03 17:09:38 +00:00
Reid Spencer
82be985b99
Add a test case for SPrintFOptimization.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21674 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-03 17:08:45 +00:00
Andrew Lenharth
f166ec612e
yea yea yea
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21673 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-03 17:00:48 +00:00
Andrew Lenharth
279a7b21bb
pre add count tests
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21671 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-03 16:49:48 +00:00
Reid Spencer
34efdf8b38
Add a test case for StrChrOptimizer for -simplify-libcalls
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21668 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-03 06:22:41 +00:00
Reid Spencer
3b7c6dca78
A new test case for the LLVMMemSetOptimization.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21663 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-03 04:00:24 +00:00
Reid Spencer
f31918b84a
Correct the title and the success criteria: strcmp -> strncmp
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21659 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-03 00:52:19 +00:00
Reid Spencer
d2db880222
Add a new test case for the StrNCmpOptimization.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21658 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-03 00:50:43 +00:00
Reid Spencer
6302abe69f
Add a test case for testing the FPrintFOptimization.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21656 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-02 23:07:14 +00:00
Chris Lattner
f05fd0893e
new testcase
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21646 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-01 04:41:57 +00:00
Chris Lattner
45c2bdd2f9
add a new testcase
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21644 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-01 04:24:15 +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
Reid Spencer
abffafd90f
* Fix signed/unsigned usage problem
...
* Rearrange for readability.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21625 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-30 03:06:36 +00:00
Reid Spencer
b2ae078c9a
A new test case for the ToAsciiOptimizer.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21624 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-30 01:00:52 +00:00
Reid Spencer
926bd0cc45
A new test case for the StrCmpOptimization in -simplify-libcalls.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21623 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-30 00:52:04 +00:00
Reid Spencer
e589cc4b76
This is StrCpy, NOT StrCat!
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21622 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-29 23:02:15 +00:00
Reid Spencer
41571c8961
Get the name of the pass right in the documentation.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21621 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-29 23:01:21 +00:00
Reid Spencer
3f169a13b7
Fix the success criteria for the test to make call instructions with "pow"
...
not just any occurrence of "pow".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21620 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-29 10:11:23 +00:00
Reid Spencer
b2825216a4
Actually make this pass test something related to fputs.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21619 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-29 10:10:17 +00:00
Reid Spencer
bb4cae7d69
Add a test case for the puts libcall optimization.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21616 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-29 07:19:00 +00:00
Reid Spencer
45254f7be0
Add a testcase for optimizing the strcpy libcall.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21615 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-29 06:01:28 +00:00
Reid Spencer
0f4a891803
New test case for testing pow(3) math library optimizations.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21613 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-29 05:47:05 +00:00
Chris Lattner
cd4b7a4454
Test the noreturn function optimization
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21586 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-27 04:51:01 +00:00
Reid Spencer
7b7adcffa7
Add a test case for MemMove.ll
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21568 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-26 19:05:51 +00:00
Reid Spencer
c662bc71df
Result of strlen is size_t which is either uint or ulong, not int.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21567 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-26 19:04:46 +00:00
Reid Spencer
4ac0f21f7a
Add a new test case for the llvm.memcpy simplification case.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21561 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-26 07:40:40 +00:00
Reid Spencer
8fe86dde1c
* Add a test case for StrLenOptimization
...
* Rename ExitInMain and StrCat tests so they don't have the date the
regression was entered since they are feature tests, not regressions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21558 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-26 05:22:38 +00:00
Reid Spencer
c89c36323b
Fix RUN: line to not always pass.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21553 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-26 02:33:25 +00:00
Reid Spencer
8b9f9b3d60
Update the test case to handle a few more (degenerate) cases and remove
...
the restriction that it is an XFAIL because it now passes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21545 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-25 21:08:34 +00:00
Chris Lattner
e3194645fc
rename fn
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21540 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-25 20:17:16 +00:00
Chris Lattner
27b8598c97
new testcase
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21539 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-25 20:17:00 +00:00
Reid Spencer
5fe8561bbe
Make sure the target buffer is null terminated so we don't blow up
...
strcat when its called.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21533 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-25 15:40:35 +00:00
Reid Spencer
0bc07503c8
A test case for testing the StrCatOptimizer, currently XFAILed everywhere.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21532 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-25 07:29:30 +00:00
Reid Spencer
5517b2ba23
Use the %name rather than the "name" format so those familiar with the
...
llvm-dis output don't go blind.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21525 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-25 03:18:19 +00:00
Reid Spencer
a498747842
A test case for the the ExitInMain libcall simplification.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21521 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-25 02:50:08 +00:00
Chris Lattner
6edb7e8c20
Test that xor/select are folded into a select with inverted operands.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21494 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-24 07:28:53 +00:00
Chris Lattner
6f8a2461a8
unxfail this.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21490 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-24 06:55:40 +00:00
Chris Lattner
936a775a1b
add a new testcase which occurs in 181.mcf
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21489 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-24 06:55:33 +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