1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 12:02:58 +02:00
Commit Graph

3909 Commits

Author SHA1 Message Date
Reid Spencer
28c91b6042 No, don't cancel all remaining tests, just the one that failed!
llvm-svn: 36057
2007-04-15 07:34:58 +00:00
Reid Spencer
4270a694ea Abandone the entire test case on the first error.
llvm-svn: 36056
2007-04-15 07:21:26 +00:00
Reid Spencer
e14f64b2da For PR1319:
Upgrade to use new Tcl exec based test harness

llvm-svn: 36055
2007-04-15 06:53:51 +00:00
Reid Spencer
f4bc35acf6 Use %prcontext, $prcontext is not resolving for some reason.
llvm-svn: 36054
2007-04-15 06:52:45 +00:00
Reid Spencer
c4a3f45c5e PR1319:
Upgrade tests to new Tcl exec based test harness requirements.

llvm-svn: 36053
2007-04-15 06:51:14 +00:00
Reid Spencer
4411da32b4 Make it possible to run this from within subdirectories of llvm/test
llvm-svn: 36052
2007-04-15 06:47:49 +00:00
Reid Spencer
22c34ea2d3 Reimplement in terms of the support for this feature in the makefiles with
the "check-one" target. This was necessitated by the change in the test
harness to fully use Tcl's "exec" function and avoid shell scripts
altogether. Consequently, to be accurate, TestRunner.sh needs to invoke the
same environment as dejagnu would, but for just a single test. That's what
the make target "check-one" does so we just invoke it here.

llvm-svn: 36051
2007-04-15 06:25:12 +00:00
Reid Spencer
6a23468a28 Echo command lines only if the user wants them.
llvm-svn: 36050
2007-04-15 06:22:48 +00:00
Reid Spencer
b9d5ebf98c Add a new testing target: check-one. It is used like this:
make check-one TESTONE=test/path/to/test.ll

This runs a single check in exactly the same way that dejagnu runs it.

llvm-svn: 36049
2007-04-15 06:18:50 +00:00
Zhou Sheng
9c1e008fb1 This test case is incorrect. Remove it.
llvm-svn: 36048
2007-04-15 05:59:49 +00:00
Reid Spencer
4591f06f44 For PR1319:
Convert to new test system. This exposes IsDigit.ll as failing.

llvm-svn: 36046
2007-04-15 05:16:38 +00:00
Reid Spencer
6c9e52ce08 For PR1319:
Conver to new test system.

llvm-svn: 36045
2007-04-15 05:03:58 +00:00
Reid Spencer
b07b9426ef Allow replacement of %% with %
llvm-svn: 36044
2007-04-15 04:57:03 +00:00
Reid Spencer
5f05a7274c Keep lines a reasonable length.
llvm-svn: 36043
2007-04-15 04:54:53 +00:00
Jeff Cohen
bfa3b15332 Patch supplied by gabor.
llvm-svn: 36042
2007-04-15 03:09:23 +00:00
Dale Johannesen
b9215b099e adjust per review comments
llvm-svn: 36041
2007-04-15 02:40:12 +00:00
Chris Lattner
55da343f44 new testcase
llvm-svn: 36039
2007-04-15 01:00:37 +00:00
Dale Johannesen
b55b09fa54 testcases for -fno-builtin
llvm-svn: 36038
2007-04-15 00:18:31 +00:00
Owen Anderson
4543ee2ff9 XFAIL this for now.
llvm-svn: 36036
2007-04-14 23:57:41 +00:00
Chris Lattner
72c75b766c xfail for now
llvm-svn: 36033
2007-04-14 23:40:49 +00:00
Reid Spencer
dc6bac04a0 Oops. A little aggressive on the name changes there.
llvm-svn: 36029
2007-04-14 23:17:58 +00:00
Reid Spencer
6460b25da9 For PR1913:
Convert to new test system. This exposes test/Transforms/ConstProp/calls.ll

llvm-svn: 36027
2007-04-14 23:04:54 +00:00
Chris Lattner
87995a803b fix test for linux hosts.
llvm-svn: 36026
2007-04-14 23:04:30 +00:00
Chris Lattner
3aad941557 new testcase
llvm-svn: 36024
2007-04-14 23:00:51 +00:00
Reid Spencer
3b350f543e For PR1319:
Convert to new test system.

llvm-svn: 36023
2007-04-14 22:54:01 +00:00
Reid Spencer
cfa86314dd Changes to fix problems with "make check". Apparently you can redefine
functions and Tcl's just tickled with that. The fix is to give the "new"
test system a different interface function name.

llvm-svn: 36022
2007-04-14 22:51:29 +00:00
Reid Spencer
a8235c3a66 Fix syntax.
llvm-svn: 36021
2007-04-14 22:32:58 +00:00
Chris Lattner
89b4e282d6 manually upgrade test. Add a new test2. I have no way to see if this works
because of the tclification.  :(

llvm-svn: 36019
2007-04-14 22:27:33 +00:00
Reid Spencer
9811e4ba2b Try some alternative syntax.
llvm-svn: 36018
2007-04-14 22:27:05 +00:00
Reid Spencer
8b3b77e30c This test should have been updated with llvm 1.7!
llvm-svn: 36014
2007-04-14 20:21:37 +00:00
Reid Spencer
c49d7dd886 For PR1319:
Upgrade tests to work with new llvm.exp version of llvm_runtest.

llvm-svn: 36013
2007-04-14 20:13:02 +00:00
Reid Spencer
c3793d33d1 This test needs to use egrep.
llvm-svn: 36012
2007-04-14 20:02:51 +00:00
Reid Spencer
798486bc87 For PR1319:
More improvements:
1. Using ::errorInfo wasn't such a hot idea. Go back to just printing the
   offending line of code and the stderr output. This is sufficient and
   not entangled with Tcl goop.
2. Capture the problem report numbers and report them whether pass or fail.
   This helps quickly get some context when a test fails, if it has an
   associated PR number.

llvm-svn: 36010
2007-04-14 19:37:22 +00:00
Reid Spencer
6ac77d03a8 Convert test cases to new llvm.exp version of llvm_runtest and fix tests
that it found to be broken.

llvm-svn: 36009
2007-04-14 19:27:03 +00:00
Reid Spencer
69d42ad9b6 For PR1319:
Convert to use new llvm.exp version of llvm_testrun

llvm-svn: 36008
2007-04-14 19:10:21 +00:00
Reid Spencer
991a7da9b9 1. Don't generate redundant copy of stderr
2. Only match \ at the *end* of a line.

llvm-svn: 36007
2007-04-14 18:51:19 +00:00
Reid Spencer
1b945f943e Fix a test test llvm.exp found.
llvm-svn: 36006
2007-04-14 18:33:31 +00:00
Reid Spencer
42b10c8238 bool -> i1 (found by llvm.exp)
llvm-svn: 36005
2007-04-14 18:30:06 +00:00
Reid Spencer
78a3955c01 Fix a syntax error that llvm.exp found.
llvm-svn: 36004
2007-04-14 18:28:16 +00:00
Reid Spencer
c8edc6280f Fix an "already-upgraded" test that llvm.exp found.
llvm-svn: 36003
2007-04-14 18:26:02 +00:00
Reid Spencer
c64112d7bd Simplify this test and correct redirection for Tcl exec.
llvm-svn: 36001
2007-04-14 17:49:06 +00:00
Reid Spencer
4fb70fd410 Don't try to interpret a fictitious file.
llvm-svn: 36000
2007-04-14 17:41:12 +00:00
Reid Spencer
3eb6245e5f Print full errorInfo when a failure occurs.
llvm-svn: 35999
2007-04-14 17:36:20 +00:00
Reid Spencer
61b2bc63f3 No need to quote things, shell isn't interpreting any more.
llvm-svn: 35997
2007-04-14 17:12:21 +00:00
Reid Spencer
7657efbfd3 For PR1319:
Changes necessary to run this with the "llvm.exp" version of llvm_runtest.

llvm-svn: 35995
2007-04-14 16:48:55 +00:00
Reid Spencer
a4ac5f2f08 Add the line number where the script failed to the error output.
llvm-svn: 35994
2007-04-14 16:41:39 +00:00
Reid Spencer
d04d54345e For PR1319:
Changes necessary for conversion of this directory to run the tests
under the llvm.exp version of llvm_runtest

llvm-svn: 35993
2007-04-14 16:40:08 +00:00
Reid Spencer
e946685d0b FIx this test, thanks to llvm.exp
llvm-svn: 35992
2007-04-14 16:19:26 +00:00
Reid Spencer
489c9a2006 Add a script to run a command but ignore its return code. This script
always returns 0. This is useful with the llvm.exp based dejagnu testing
when a test wants to check the error output of tool invocation that
returns non-zero. Since every command is checked with llvm.exp, there needs
to be a way to prevent that checking and this script is it.

llvm-svn: 35991
2007-04-14 16:14:08 +00:00
Anton Korobeynikov
bdb4f560da Fix PR1325: Case range optimization was performed in the case it
shouldn't. Also fix some "latent" bug on 64-bit platforms

llvm-svn: 35990
2007-04-14 13:25:55 +00:00
Reid Spencer
424ebf9c39 Fix a missing -f that the new llvm.exp found.
llvm-svn: 35988
2007-04-14 09:45:16 +00:00
Reid Spencer
e44effb288 Fix a missing -f caught by the new llvm.exp script.
llvm-svn: 35987
2007-04-14 09:43:30 +00:00
Reid Spencer
90bdd23c2b Initial version of a re-write of llvm-runtest that doesn't write the
tests to a script file but executes each line individually and catches
errors on each line too.

llvm-svn: 35986
2007-04-14 09:39:28 +00:00
Chris Lattner
3a22af9126 new testcase
llvm-svn: 35983
2007-04-14 01:17:38 +00:00
Chris Lattner
1d90754cf7 testcase for PR1201
llvm-svn: 35980
2007-04-14 00:19:36 +00:00
Dale Johannesen
e7e6d863f4 tests for struct/union as input operands to asm.
llvm-svn: 35976
2007-04-13 22:54:11 +00:00
Reid Spencer
5263c69f0d Add the SCCP regression tests for APInt expressions. These test cases
turned up some regressions that have since been fixed. We don't want to
loose the regression tests.

Test cases by Guoling Han.

llvm-svn: 35974
2007-04-13 22:33:10 +00:00
Chris Lattner
cbe92494fd xfail this for now
llvm-svn: 35973
2007-04-13 22:20:27 +00:00
Chris Lattner
ef78f89fa5 new lsr testcase
llvm-svn: 35971
2007-04-13 20:38:14 +00:00
Chris Lattner
c65c4e9916 New testcase
llvm-svn: 35969
2007-04-13 20:28:08 +00:00
Anton Korobeynikov
5bb6590218 Fix PR1323 : we haven't updated phi nodes in good manner :)
llvm-svn: 35963
2007-04-13 06:53:51 +00:00
Dale Johannesen
37aecc68ea testcases for function linkage
llvm-svn: 35955
2007-04-12 21:01:53 +00:00
Chris Lattner
ba8ff05529 vector compares aren't allowed. It doesn't make sense to have an xfailed
test to remind us of this.

llvm-svn: 35949
2007-04-12 18:21:52 +00:00
Chris Lattner
ee73b503a4 make this really work on linux :)
llvm-svn: 35948
2007-04-12 18:10:16 +00:00
Chris Lattner
62374cc05e make this happier on linux hosts
llvm-svn: 35947
2007-04-12 18:09:06 +00:00
Chris Lattner
e3db14f830 new testcase
llvm-svn: 35942
2007-04-12 05:58:21 +00:00
Reid Spencer
500fb924dd Make the shlibext and llvmlibsdir variables accessible.
llvm-svn: 35939
2007-04-12 02:49:30 +00:00
Reid Spencer
260356bbcf The hello pass actually requires a function to chew on!
llvm-svn: 35937
2007-04-12 01:12:54 +00:00
Devang Patel
6f261440d4 New test case for PR 1321.
llvm-svn: 35934
2007-04-12 00:32:43 +00:00
Chris Lattner
53de3e63cc new testcase.
llvm-svn: 35931
2007-04-11 23:45:16 +00:00
Reid Spencer
3f92dc65c6 Fix a guard that is supposed to guard against mistakes like this patch fixes!
We *really* need to be running these with tcl's "exec" to catch the errors.

llvm-svn: 35928
2007-04-11 22:40:46 +00:00
Chris Lattner
dbeb7c5f45 new testcase
llvm-svn: 35927
2007-04-11 22:36:10 +00:00
Reid Spencer
91097746e8 The "Hello" message is written on stderr so make sure it is duplicated to
stdout so the grep can match it.

llvm-svn: 35925
2007-04-11 21:30:05 +00:00
Reid Spencer
12ee385ec2 Add a test case for PR1318.
llvm-svn: 35923
2007-04-11 21:14:53 +00:00
Reid Spencer
ba51ef894b Use the new %link variable to make this test portable.
llvm-svn: 35921
2007-04-11 21:00:00 +00:00
Reid Spencer
6650bbc30b Make new variables available: compile_c, compile_cxx, link to handle tests
that want to use LLVM's notion of compiling and linking programs. This
includes all the -I -L and optimization switches that LLVM would using to
compile or link any of this files.

llvm-svn: 35920
2007-04-11 20:57:39 +00:00
Reid Spencer
5059815af5 The "implementation" keyword is no more!
llvm-svn: 35919
2007-04-11 20:06:03 +00:00
Reid Spencer
56b310ae49 Make the llvm-runtest function much more amenable by eliminating all the
global variables that needed to be passed in. This makes it possible to
add new global variables with only a couple changes (Makefile and llvm-dg.exp)
instead of touching every single dg.exp file.

llvm-svn: 35918
2007-04-11 19:56:59 +00:00
Reid Spencer
13dc8cea51 Add a test case for testing basic IR features via llvm2cpp. This helps find
bit rot in llvm2cpp and also tests the LLVM C++ IR in ways that llvm-as
doesn't.

llvm-svn: 35917
2007-04-11 19:54:37 +00:00
Reid Spencer
c202a9ae85 Make sure upgrade doesn't fail on this.
llvm-svn: 35916
2007-04-11 19:36:27 +00:00
Reid Spencer
50f96f2a23 Update the way llvm2cpp tests are done:
1. Make sure bytecode/assembly inputs are always redirected stdin so that
   the module name is <stdin>. This helps not get false negatives when the
   diff is done.
2. Scan the test file to determine if llvm-upgrade needs to be run.
3. Avoid running testings that are XFAIL'd because they'll cause a failure
   when run for llvm2cpp.
4. Get some better error message output.

llvm-svn: 35914
2007-04-11 17:56:23 +00:00
Reid Spencer
db91083d5a Upgrade this file completely instead of downgrading it. Make sure that
false positives aren't made.

llvm-svn: 35913
2007-04-11 17:51:03 +00:00
Chris Lattner
e557a69c34 this got better
llvm-svn: 35908
2007-04-11 16:12:27 +00:00
Chris Lattner
ec844dd102 adjust test
llvm-svn: 35907
2007-04-11 16:04:04 +00:00
Chris Lattner
0bf024fb83 change test name.
llvm-svn: 35904
2007-04-11 15:24:04 +00:00
Reid Spencer
9569890d38 Make sure this test uses llvm-upgrade.
Don't allow false positives.

llvm-svn: 35900
2007-04-11 12:46:06 +00:00
Reid Spencer
44bc3843a6 Fix to not give false positives.
llvm-svn: 35895
2007-04-11 12:04:33 +00:00
Chris Lattner
0a1e870a6b sext of compares.
llvm-svn: 35892
2007-04-11 06:57:54 +00:00
Chris Lattner
3ea6010b67 new testcase
llvm-svn: 35889
2007-04-11 06:52:24 +00:00
Chris Lattner
787c0a4e5b new testcase
llvm-svn: 35882
2007-04-11 05:32:13 +00:00
Chris Lattner
e827f7dfe6 new testcases for integer abs function
llvm-svn: 35880
2007-04-11 05:02:57 +00:00
Devang Patel
6d8b1e984b New test case.
llvm-svn: 35868
2007-04-10 21:43:01 +00:00
Devang Patel
4e19c7b1db Add test case for PR 1154.
llvm-svn: 35865
2007-04-10 16:57:08 +00:00
Chris Lattner
5d7cf88b9a new testcase
llvm-svn: 35851
2007-04-09 23:51:49 +00:00
Devang Patel
3fe57fd44f Add check for opt crash.
llvm-svn: 35849
2007-04-09 23:40:15 +00:00
Devang Patel
f954669cc9 Add Loop Rotate test cases.
llvm-svn: 35838
2007-04-09 22:22:42 +00:00
Anton Korobeynikov
6ee97ee42a Next stage into switch lowering refactoring
1. Fix some bugs in the jump table lowering threshold
2. Implement much better metric for optimal pivot selection
3. Tune thresholds for different lowering methods
4. Implement shift-and trick for lowering small (<machine word
length) cases with few destinations. Good testcase will follow.

llvm-svn: 35816
2007-04-09 12:31:58 +00:00
Chris Lattner
d75e2127c8 add another test
llvm-svn: 35801
2007-04-09 05:26:48 +00:00
Chris Lattner
45ebb3ba95 The x constraint allows scalar FP values as well as vectors.
llvm-svn: 35798
2007-04-09 05:11:03 +00:00
Chris Lattner
34065e8986 new testcase for PR1304
llvm-svn: 35791
2007-04-09 01:37:35 +00:00
Chris Lattner
4fd4438601 new testcase for PR1286
llvm-svn: 35787
2007-04-09 01:10:13 +00:00
Chris Lattner
5a5aeaf596 new testcase for PR1308
llvm-svn: 35784
2007-04-09 00:45:42 +00:00
Chris Lattner
b9f8792e26 testcase for PR1314
llvm-svn: 35778
2007-04-08 22:22:53 +00:00
Nick Lewycky
7f42a891cf Fix this testcase to fail if the bug were reintroduced.
llvm-svn: 35776
2007-04-08 21:49:13 +00:00
Owen Anderson
4b323657b9 Remove DomSet completely. This concludes work on PR1171.
llvm-svn: 35775
2007-04-08 21:30:05 +00:00
Chris Lattner
ebcaddce4b this xform is correct, not an xfail
llvm-svn: 35766
2007-04-08 08:02:39 +00:00
Chris Lattner
41babccd55 make xfail info more nice
llvm-svn: 35764
2007-04-08 07:58:41 +00:00
Chris Lattner
3146667442 tweak this to test the right thing.
llvm-svn: 35762
2007-04-08 07:52:40 +00:00
Chris Lattner
9a765178c8 testrunner should print out xfail info.
llvm-svn: 35761
2007-04-08 07:49:19 +00:00
Chris Lattner
769c8c5bc7 new testcase, should simplify down to a xor/and/xor sequence.
llvm-svn: 35759
2007-04-08 07:45:36 +00:00
Chris Lattner
8fd39019e0 these test a pass that no longer exists.
llvm-svn: 35750
2007-04-07 20:25:30 +00:00
Chris Lattner
cc81108ac2 xfail these until owen can figure out the right fix
llvm-svn: 35748
2007-04-07 20:00:36 +00:00
Chris Lattner
afb410f066 testcase for PR1307
llvm-svn: 35705
2007-04-06 23:36:59 +00:00
Chris Lattner
d76ec48916 new testcase, update old one.
llvm-svn: 35699
2007-04-06 18:56:54 +00:00
Reid Spencer
f71d4af0e5 XFAIL this test for now. It will be a while before I can implement this
intrinsic properly in SDISel.

llvm-svn: 35692
2007-04-05 22:57:45 +00:00
Chris Lattner
0cb31c668d new testcase that crashes globalopt
llvm-svn: 35688
2007-04-05 21:09:29 +00:00
Dale Johannesen
1fcb4c2cfe testcase for padding before zero-length fields.
llvm-svn: 35687
2007-04-05 19:05:43 +00:00
Devang Patel
fd1c6bb60f New tests for Packed structs.
llvm-svn: 35686
2007-04-05 17:14:21 +00:00
Devang Patel
bc8a8a6327 New tests for Packed structs.
llvm-svn: 35685
2007-04-05 17:07:48 +00:00
Anton Korobeynikov
ceb6667a6f Fix test
llvm-svn: 35683
2007-04-05 16:43:09 +00:00
Reid Spencer
6eb55df794 Implement the llvm.bit.part_select.iN.iN.iN overloaded intrinsic.
llvm-svn: 35678
2007-04-04 23:48:25 +00:00
Reid Spencer
73f3f886ff Ignore some things generated by bugpoint.
llvm-svn: 35677
2007-04-04 22:47:38 +00:00
Jeff Cohen
6a9efef91d Fix some FreeBSD/amd64 regressions.
llvm-svn: 35675
2007-04-04 22:07:44 +00:00
Anton Korobeynikov
018c52ef1b Fix test
llvm-svn: 35673
2007-04-04 21:28:36 +00:00
Anton Korobeynikov
e16f421e0e Properly emit range comparisons for switch cases, where neighbour cases
go to the same destination. Now we're producing really good code for
switch-lower-feature.ll testcase

llvm-svn: 35672
2007-04-04 21:14:49 +00:00
Jeff Cohen
a42a5cc03c Any add is wrong, regardless of type.
llvm-svn: 35671
2007-04-04 20:40:44 +00:00
Jeff Cohen
20800076a6 Get it right...
llvm-svn: 35670
2007-04-04 20:35:31 +00:00
Dale Johannesen
66c0a2b9e6 Test for transformConstExprCastCall fix.
llvm-svn: 35669
2007-04-04 19:18:16 +00:00
Jeff Cohen
bf47c569c7 Add new test.
llvm-svn: 35664
2007-04-04 16:11:23 +00:00
Evan Cheng
89768803e7 Better still.
llvm-svn: 35663
2007-04-04 08:49:40 +00:00
Evan Cheng
8cd7d8dc77 Fix test case.
llvm-svn: 35662
2007-04-04 07:41:33 +00:00
Evan Cheng
3af3f8e696 These got better.
llvm-svn: 35661
2007-04-04 07:41:15 +00:00
Evan Cheng
5bd266a791 New asm test case.
llvm-svn: 35641
2007-04-04 00:15:17 +00:00
Evan Cheng
8a281b1e57 New test case.
llvm-svn: 35636
2007-04-03 23:40:54 +00:00
Chris Lattner
9b114928f7 move these to FrontendAda
llvm-svn: 35631
2007-04-03 21:48:02 +00:00
Chris Lattner
57b592a607 testcase for recent bugfix
llvm-svn: 35630
2007-04-03 21:47:36 +00:00
Chris Lattner
3888505be5 move ada tests
llvm-svn: 35629
2007-04-03 21:46:22 +00:00
Evan Cheng
f9da057ef8 New test case.
llvm-svn: 35628
2007-04-03 21:38:03 +00:00
Chris Lattner
2083adbfb8 new testcase for PR1253
llvm-svn: 35611
2007-04-03 01:45:32 +00:00
Chris Lattner
caf2381689 new testcase, where we should use a negative stride
llvm-svn: 35608
2007-04-03 00:13:16 +00:00
Chris Lattner
03edb8b08e Add a regtest for cases we now recognize as rotates, thanks to Scott Michel's
recent dagcombine patch

llvm-svn: 35606
2007-04-02 22:08:54 +00:00
Chris Lattner
d4258ba56c fix this testcase so it passes
llvm-svn: 35604
2007-04-02 20:46:28 +00:00
Chris Lattner
3d0eeb2046 fix this testcase on ppc hosts
llvm-svn: 35603
2007-04-02 20:39:48 +00:00
Evan Cheng
b114ed90de New test case.
llvm-svn: 35599
2007-04-02 18:47:13 +00:00
Chris Lattner
c597fc9196 new testcase.
llvm-svn: 35591
2007-04-02 06:33:10 +00:00
Chris Lattner
acb971cbc3 new testcase
llvm-svn: 35589
2007-04-02 05:57:59 +00:00
Chris Lattner
095caddb5e creative way to add one.
llvm-svn: 35583
2007-04-02 05:35:08 +00:00
Chris Lattner
c873153cbd my patch fixed the fixme.
llvm-svn: 35582
2007-04-02 05:08:54 +00:00
Reid Spencer
09cacde5c5 Fix illegal assembly syntax.
llvm-svn: 35581
2007-04-02 03:24:47 +00:00
Reid Spencer
ff0b24925c Add a test case to make sure that constant folding of the bit counting
intrinsics works.

llvm-svn: 35577
2007-04-02 01:45:31 +00:00
Chris Lattner
e431a9d714 new testcase for PR1296
llvm-svn: 35574
2007-04-02 01:32:59 +00:00
Lauro Ramos Venancio
7e21418680 - Divides the comparisons in two types: comparisons that only use N and Z
flags (ARMISD::CMPNZ) and comparisons that use all flags (ARMISD::CMP).
- Defines the instructions: TST, TEQ (ARM) and TST (Thumb).

llvm-svn: 35573
2007-04-02 01:30:03 +00:00
Reid Spencer
6a1841b291 Let llvm-upgrade upgrade the bswap intrinsic.
llvm-svn: 35569
2007-04-02 01:09:19 +00:00
Reid Spencer
13f5561e12 Let llvm-upgrade upgrade bswap intrinsic.
llvm-svn: 35568
2007-04-02 01:08:02 +00:00
Reid Spencer
81c0ac434f Revert the name changes for llvm.bswap to allow (and test) llvm-upgrade of
this intrinsic.

llvm-svn: 35566
2007-04-02 00:51:15 +00:00
Anton Korobeynikov
f9791aa611 Add testcase for correct sret handling.
llvm-svn: 35562
2007-04-01 22:03:04 +00:00
Duncan Sands
2f6b651059 Testcase for the problem worked around in
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070319/046204.html

llvm-svn: 35554
2007-04-01 15:29:02 +00:00
Reid Spencer
f5e95d339f For PR1297:
Update these test cases to use proper signatures for bswap which is now
and overloaded intrinsic. Its name must be of the form llvm.bswap.i32.i32
since both the parameter and the result or of type "iAny". Also, the
bit counting intrinsics changed to always return i32.

llvm-svn: 35548
2007-04-01 07:36:28 +00:00
Chris Lattner
ce2620850a not not!
llvm-svn: 35537
2007-04-01 06:19:41 +00:00
Chris Lattner
f8977023f4 New testcase
llvm-svn: 35535
2007-04-01 05:34:53 +00:00
Evan Cheng
aca424091b Missing '&&'
llvm-svn: 35519
2007-03-30 22:03:49 +00:00
Chris Lattner
8c48bc4ec0 add a testcase for x86
llvm-svn: 35516
2007-03-30 21:22:46 +00:00
Evan Cheng
972e65f9b0 New test case.
llvm-svn: 35515
2007-03-30 20:41:18 +00:00
Evan Cheng
5e161b7fb5 Test case for PR1279 (part 2).
llvm-svn: 35511
2007-03-30 20:15:22 +00:00
Reid Spencer
705b788a36 For PR1289:
Remove an unneeded instance of "implementation" that soon won't be supported.

llvm-svn: 35498
2007-03-30 01:35:32 +00:00
Reid Spencer
39861bcc6a checkpoint -> implementation. This really needs to just drop the need for
a keyword by having the assembler check for incomplete types and values
upon end-of-file.

llvm-svn: 35474
2007-03-29 18:56:58 +00:00
Chris Lattner
9dca6fc9d4 new testcases
llvm-svn: 35433
2007-03-28 18:11:17 +00:00
Chris Lattner
a22ce41d77 new testcase
llvm-svn: 35432
2007-03-28 18:03:14 +00:00
Reid Spencer
db6235e047 Delete the remanant of an obsolete comment.
llvm-svn: 35415
2007-03-28 03:23:22 +00:00
Reid Spencer
50ee6b8557 Remove use of implementation keyword.
llvm-svn: 35412
2007-03-28 02:38:26 +00:00
Reid Spencer
194756c545 The implementation keyword was replaced with checkpoint.
llvm-svn: 35409
2007-03-28 02:34:53 +00:00
Reid Spencer
6aef51f080 implementation keyword is going .. going .. gone.
llvm-svn: 35404
2007-03-28 01:52:40 +00:00
Chris Lattner
648d359fae don't use 'not' when we can use a positive test
llvm-svn: 35402
2007-03-28 01:43:43 +00:00
Reid Spencer
f7af7d74e6 new test case for PR1280
llvm-svn: 35401
2007-03-28 01:43:35 +00:00
Reid Spencer
f1f6ade2b5 For PR1280:
Remove test cases for and/xor/add -> trunc/sext that use bit widths that
the targets cannot code gen.

llvm-svn: 35399
2007-03-28 01:35:28 +00:00
Evan Cheng
7fc3f900a2 Added a test case for PR1279.
llvm-svn: 35398
2007-03-28 01:32:57 +00:00
Chris Lattner
d95a054122 new testcase
llvm-svn: 35397
2007-03-28 01:31:33 +00:00
Chris Lattner
4b0523c35f upgrade a random test
llvm-svn: 35395
2007-03-28 01:27:12 +00:00
Chris Lattner
a8fd19c832 new testcase
llvm-svn: 35391
2007-03-28 00:03:10 +00:00
Duncan Sands
01d5740f41 Test that a VIEW_CONVERT_EXPR used as an lvalue has the right type.
llvm-svn: 35387
2007-03-27 20:27:25 +00:00
Reid Spencer
9d912513d1 Another test case for PR1271 where bad shift masks were generated.
llvm-svn: 35372
2007-03-26 23:48:52 +00:00
Evan Cheng
ce2097be73 Test case for PR1266.
llvm-svn: 35367
2007-03-26 22:58:35 +00:00
Reid Spencer
5bc306e0ea Fix this test case to match output after a bug was fixed.
llvm-svn: 35359
2007-03-26 18:04:38 +00:00
Duncan Sands
c0e64ed143 Fix testsuite hang.
llvm-svn: 35355
2007-03-26 10:59:13 +00:00
Reid Spencer
e2ada5822c Test case for PR1271 involving construction of a bad mask to replace a
shift instruction.

llvm-svn: 35349
2007-03-26 05:32:16 +00:00
Anton Korobeynikov
e1787d5f46 Add "feature" testcase for new switch lowering code
llvm-svn: 35345
2007-03-25 22:01:14 +00:00
Reid Spencer
c48255bfcf Add a test case for PR1271 (necessary, but not sufficient).
llvm-svn: 35343
2007-03-25 21:30:41 +00:00
Chris Lattner
c5657ac790 new testcase
llvm-svn: 35340
2007-03-25 20:42:40 +00:00
Chris Lattner
99ba969ae3 new testcase
llvm-svn: 35331
2007-03-25 05:00:23 +00:00
Chris Lattner
a01030bcf4 test that the ppc backend can do 64-bit cntlz
llvm-svn: 35328
2007-03-25 04:43:51 +00:00
Chris Lattner
60fa65770f new testcase
llvm-svn: 35326
2007-03-25 04:35:23 +00:00
Chris Lattner
6aa707f1b2 new testcase
llvm-svn: 35323
2007-03-25 02:17:58 +00:00
Chris Lattner
62598bf96c new testcase
llvm-svn: 35317
2007-03-25 01:44:40 +00:00
Reid Spencer
4887aba89f Remove the last vestiges of this directory.
llvm-svn: 35309
2007-03-24 23:07:49 +00:00
Reid Spencer
0a9a2200a6 Flip the srem tests around. Previous commit was to correct an apparent
bug in the srem implementation. Turns out it was a documentation bug
instead.

llvm-svn: 35304
2007-03-24 22:34:10 +00:00
Reid Spencer
ffa19b617d Fix incorrect test cases for srem. The definition of srem is a remainder so
that the sign of the result follows the sign of the divisor.

llvm-svn: 35301
2007-03-24 21:55:26 +00:00
Reid Spencer
a450c790e7 Add more test cases for APIntified InstCombine.
llvm-svn: 35288
2007-03-23 21:57:47 +00:00
Reid Spencer
eebf90ce0b Add test case for testing InstCombine with arbitrary precision integer
types. These tests mimic the integer test cases in the normal InstCombine
test suite but use "strange" integer bit widths.

Most tests written by Zhou Sheng, a few by me.

llvm-svn: 35284
2007-03-23 20:48:34 +00:00
Duncan Sands
bce4648a05 Test handling of switches with wide case ranges.
llvm-svn: 35279
2007-03-23 07:17:52 +00:00
Reid Spencer
91c2777f40 Make this test actually match the generated code.
llvm-svn: 35263
2007-03-22 02:53:05 +00:00
Reid Spencer
648d9f53ca Add tests for nounwind and noreturn function attributes.
llvm-svn: 35261
2007-03-22 02:15:17 +00:00
Evan Cheng
9992bbc5a0 Another test case.
llvm-svn: 35255
2007-03-22 01:55:16 +00:00
Evan Cheng
1a651088b1 Test case for PR1257
llvm-svn: 35253
2007-03-22 01:52:57 +00:00
Reid Spencer
8862d80d67 Test case for PR1248
llvm-svn: 35251
2007-03-22 00:49:40 +00:00
Evan Cheng
ecfd152e0d New test case.
llvm-svn: 35240
2007-03-21 20:14:56 +00:00
Lauro Ramos Venancio
11d7d3fcaf bugfix: When the source register of CALL_NOLINK was LR, the following code was emitted:
mov lr, pc
    bx lr
So, the function was not called.

llvm-svn: 35218
2007-03-20 17:57:23 +00:00
Chris Lattner
797cae1109 llvm-gcc now requires -fnested-functions to enable them in C.
llvm-svn: 35217
2007-03-20 17:34:31 +00:00
Reid Spencer
3e9e08791f Break up huge line so that this file is almost readable.
llvm-svn: 35216
2007-03-20 17:27:19 +00:00
Duncan Sands
1f0efa2270 Test handling of structs with multiple variable-sized fields.
llvm-svn: 35212
2007-03-20 14:13:20 +00:00
Duncan Sands
cdf52c92a9 Ada testcase for structs with multiple variable sized fields.
llvm-svn: 35210
2007-03-20 09:54:02 +00:00
Duncan Sands
0ea571dda0 Test that ARRAY_RANGE_REF returns an array not an element.
llvm-svn: 35209
2007-03-20 09:50:42 +00:00
Chris Lattner
10311baf63 These functions should use shll, not lea.
llvm-svn: 35203
2007-03-20 06:01:41 +00:00
Reid Spencer
923f6b31d4 Make this test a little simpler/faster.
llvm-svn: 35193
2007-03-19 23:36:19 +00:00
Reid Spencer
86f1c2f59d Add test case for PR1261, currently XFAILed.
llvm-svn: 35192
2007-03-19 23:28:16 +00:00
Reid Spencer
42136f760d Test case noticed by Sheng that fails because negative values that are
greater than 64-bits don't have the sign bits extended on construction of
the APInt.

llvm-svn: 35178
2007-03-19 20:35:26 +00:00
Duncan Sands
12e31a7121 Test handling of ARRAY_REF when the component type is of unknown size.
llvm-svn: 35176
2007-03-19 19:56:18 +00:00
Reid Spencer
35ebf3dffc For PR1258:
Test that invalid numbered value references get an error message.

llvm-svn: 35175
2007-03-19 18:41:37 +00:00
Reid Spencer
c124adcc12 For PR1258:
Revise numeric value references to accommodate collapsed type planes.

llvm-svn: 35170
2007-03-19 18:27:35 +00:00
Reid Spencer
b552bbd876 Use opt instead of gccas.
llvm-svn: 35168
2007-03-19 18:25:55 +00:00
Chris Lattner
e13d458bd7 add a testcase the resent patches fail on.
llvm-svn: 35167
2007-03-19 18:25:48 +00:00
Reid Spencer
0782164cf7 Don't upgrade these.
llvm-svn: 35166
2007-03-19 18:08:42 +00:00
Chris Lattner
9623388b12 add PR#
llvm-svn: 35151
2007-03-19 00:17:19 +00:00
Chris Lattner
bafeb87ca6 add pr#
llvm-svn: 35149
2007-03-19 00:15:43 +00:00
Chris Lattner
a068bd03cf new testcase
llvm-svn: 35148
2007-03-19 00:11:30 +00:00
Chris Lattner
6e0b0d4a3a testcase for SROA with memset etc
llvm-svn: 35147
2007-03-19 00:09:00 +00:00
Chris Lattner
6d1afd847e new testcase
llvm-svn: 35144
2007-03-18 22:50:57 +00:00
Nick Lewycky
41f13d431a Propagate ValueRanges across equality.
Add some more micro-optimizations: x * 0 = 0, a - x = a --> x = 0.

llvm-svn: 35138
2007-03-18 01:09:32 +00:00
Evan Cheng
283468b827 GEP index sink test case.
llvm-svn: 35131
2007-03-17 03:18:32 +00:00
Devang Patel
f215bd701b Test case for X86 inline asm constraint 'I'
llvm-svn: 35130
2007-03-17 00:14:52 +00:00
Bill Wendling
8ced23ee5a And now support for MMX logical operations.
llvm-svn: 35125
2007-03-16 09:44:46 +00:00
Bill Wendling
feaff80149 Multiplication support for MMX.
llvm-svn: 35118
2007-03-15 21:24:36 +00:00
Evan Cheng
1464c63d5d ARM isel should match ldr x +/- x * (2^n) to ldr [x, +/- x, lsl #log2(n)].
llvm-svn: 35114
2007-03-14 23:26:40 +00:00
Reid Spencer
a8d6ff8dc9 Test case for PR1256.
llvm-svn: 35110
2007-03-14 23:07:24 +00:00
Duncan Sands
b3cbeb6a4a Test that the size of a view converted object is determined by the target
type, not the source type.

llvm-svn: 35106
2007-03-14 20:24:53 +00:00
Evan Cheng
0fe7224a46 New test.
llvm-svn: 35091
2007-03-13 23:31:47 +00:00
Evan Cheng
64f09e6241 This got better.
llvm-svn: 35090
2007-03-13 23:26:41 +00:00
Duncan Sands
c56601a219 Test support for arrays with non-zero first index.
llvm-svn: 35084
2007-03-13 15:12:35 +00:00
Chris Lattner
0f75a6cc7f testcase for PR1244
llvm-svn: 35081
2007-03-13 14:25:35 +00:00
Anton Korobeynikov
0c2d312725 Use range tests in LowerSwitch, where possible
llvm-svn: 35057
2007-03-10 16:46:28 +00:00
Bill Wendling
236cfc4344 Adding more arithmetic operators to MMX. This is an almost exact copy of
the addition. Please let me know if you have suggestions.

llvm-svn: 35055
2007-03-10 09:57:05 +00:00
Evan Cheng
8685e7d770 Test inline asm modifier 'c'.
llvm-svn: 35036
2007-03-08 22:45:31 +00:00
Chris Lattner
cec3666863 upgrade this testcase, add test for fp immediate to memory operand.
llvm-svn: 35034
2007-03-08 22:33:06 +00:00
Bill Wendling
4fbc327c54 Add MMX arithmetic testcase.
llvm-svn: 35032
2007-03-08 22:14:51 +00:00
Evan Cheng
511c8f6a24 Fix test case.
llvm-svn: 35029
2007-03-08 19:27:32 +00:00
Evan Cheng
5196ecbf5c New test case.
llvm-svn: 35006
2007-03-07 08:12:39 +00:00
Reid Spencer
9558369d33 Fix the pattern.
llvm-svn: 34994
2007-03-07 00:39:11 +00:00
Reid Spencer
61cd993904 Make this test more reliable across platforms.
llvm-svn: 34993
2007-03-07 00:32:12 +00:00
Evan Cheng
7dccc59e5b New test case.
llvm-svn: 34991
2007-03-07 00:13:48 +00:00
Reid Spencer
bfe9246bfc Don't run lli in llvm-test. Instead just check that the datalayout string
is the right length.

llvm-svn: 34973
2007-03-06 17:48:25 +00:00
Reid Spencer
9dd9f5295b Fix this to put its output in the output directory.
llvm-svn: 34971
2007-03-06 17:44:43 +00:00