Commit Graph

3773 Commits

Author SHA1 Message Date
Reid Spencer 2441c0ae3e Fix a test test llvm.exp found.
llvm-svn: 36006
2007-04-14 18:33:31 +00:00
Reid Spencer 7e4bde71c5 bool -> i1 (found by llvm.exp)
llvm-svn: 36005
2007-04-14 18:30:06 +00:00
Reid Spencer 26f762270f Fix a syntax error that llvm.exp found.
llvm-svn: 36004
2007-04-14 18:28:16 +00:00
Reid Spencer 0c0fe0afa7 Fix an "already-upgraded" test that llvm.exp found.
llvm-svn: 36003
2007-04-14 18:26:02 +00:00
Reid Spencer 64f7a5ea86 Simplify this test and correct redirection for Tcl exec.
llvm-svn: 36001
2007-04-14 17:49:06 +00:00
Reid Spencer 5c59cf718d Don't try to interpret a fictitious file.
llvm-svn: 36000
2007-04-14 17:41:12 +00:00
Reid Spencer 6e0ffa8c43 Print full errorInfo when a failure occurs.
llvm-svn: 35999
2007-04-14 17:36:20 +00:00
Reid Spencer a9aad5685b No need to quote things, shell isn't interpreting any more.
llvm-svn: 35997
2007-04-14 17:12:21 +00:00
Reid Spencer c516c723b1 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 89956dc90f 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 437520719e 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 d30ad3f9b2 FIx this test, thanks to llvm.exp
llvm-svn: 35992
2007-04-14 16:19:26 +00:00
Reid Spencer e33f02f0bb 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 8a1a84f96e 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 e105f3f4c4 Fix a missing -f that the new llvm.exp found.
llvm-svn: 35988
2007-04-14 09:45:16 +00:00
Reid Spencer f7396d1c11 Fix a missing -f caught by the new llvm.exp script.
llvm-svn: 35987
2007-04-14 09:43:30 +00:00
Reid Spencer 155171c566 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 ebf3cfccdb new testcase
llvm-svn: 35983
2007-04-14 01:17:38 +00:00
Chris Lattner a930c3d4e4 testcase for PR1201
llvm-svn: 35980
2007-04-14 00:19:36 +00:00
Dale Johannesen 036cd14ecb tests for struct/union as input operands to asm.
llvm-svn: 35976
2007-04-13 22:54:11 +00:00
Reid Spencer 9f9fe70b11 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 d0b3e7b0b4 xfail this for now
llvm-svn: 35973
2007-04-13 22:20:27 +00:00
Chris Lattner 03bf40e70e new lsr testcase
llvm-svn: 35971
2007-04-13 20:38:14 +00:00
Chris Lattner 26d9e9c452 New testcase
llvm-svn: 35969
2007-04-13 20:28:08 +00:00
Anton Korobeynikov e288040abf Fix PR1323 : we haven't updated phi nodes in good manner :)
llvm-svn: 35963
2007-04-13 06:53:51 +00:00
Dale Johannesen 5c87869622 testcases for function linkage
llvm-svn: 35955
2007-04-12 21:01:53 +00:00
Chris Lattner ce10cd22c8 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 4c964c3aed make this really work on linux :)
llvm-svn: 35948
2007-04-12 18:10:16 +00:00
Chris Lattner 028974508b make this happier on linux hosts
llvm-svn: 35947
2007-04-12 18:09:06 +00:00
Chris Lattner 9bab80543a new testcase
llvm-svn: 35942
2007-04-12 05:58:21 +00:00
Reid Spencer 09f5000873 Make the shlibext and llvmlibsdir variables accessible.
llvm-svn: 35939
2007-04-12 02:49:30 +00:00
Reid Spencer b817ba74f1 The hello pass actually requires a function to chew on!
llvm-svn: 35937
2007-04-12 01:12:54 +00:00
Devang Patel 180ff253ed New test case for PR 1321.
llvm-svn: 35934
2007-04-12 00:32:43 +00:00
Chris Lattner 8aa5b4545f new testcase.
llvm-svn: 35931
2007-04-11 23:45:16 +00:00
Reid Spencer d646073027 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 6d87faf14f new testcase
llvm-svn: 35927
2007-04-11 22:36:10 +00:00
Reid Spencer 45fc9400ad 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 5f89562811 Add a test case for PR1318.
llvm-svn: 35923
2007-04-11 21:14:53 +00:00
Reid Spencer 645d5a9f4f Use the new %link variable to make this test portable.
llvm-svn: 35921
2007-04-11 21:00:00 +00:00
Reid Spencer 641527f3e2 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 8e25101211 The "implementation" keyword is no more!
llvm-svn: 35919
2007-04-11 20:06:03 +00:00
Reid Spencer d029c7e666 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 f29754c7b9 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 669c7e58b0 Make sure upgrade doesn't fail on this.
llvm-svn: 35916
2007-04-11 19:36:27 +00:00
Reid Spencer 60012ded54 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 7a311b86e1 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 2feb7abbd5 this got better
llvm-svn: 35908
2007-04-11 16:12:27 +00:00
Chris Lattner 45ae13bb41 adjust test
llvm-svn: 35907
2007-04-11 16:04:04 +00:00
Chris Lattner 7345e56885 change test name.
llvm-svn: 35904
2007-04-11 15:24:04 +00:00
Reid Spencer f4fd92907e 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 e165d7c3d7 Fix to not give false positives.
llvm-svn: 35895
2007-04-11 12:04:33 +00:00
Chris Lattner 81f14c63da sext of compares.
llvm-svn: 35892
2007-04-11 06:57:54 +00:00
Chris Lattner 764ec15b3f new testcase
llvm-svn: 35889
2007-04-11 06:52:24 +00:00
Chris Lattner 05362ffdce new testcase
llvm-svn: 35882
2007-04-11 05:32:13 +00:00
Chris Lattner 9f780e339e new testcases for integer abs function
llvm-svn: 35880
2007-04-11 05:02:57 +00:00
Devang Patel 6d474cd37c New test case.
llvm-svn: 35868
2007-04-10 21:43:01 +00:00
Devang Patel d284fd1145 Add test case for PR 1154.
llvm-svn: 35865
2007-04-10 16:57:08 +00:00
Chris Lattner ec0020433b new testcase
llvm-svn: 35851
2007-04-09 23:51:49 +00:00
Devang Patel 4ccfdd7465 Add check for opt crash.
llvm-svn: 35849
2007-04-09 23:40:15 +00:00
Devang Patel 5391501f05 Add Loop Rotate test cases.
llvm-svn: 35838
2007-04-09 22:22:42 +00:00
Anton Korobeynikov 506eaf7915 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 ea1369275b add another test
llvm-svn: 35801
2007-04-09 05:26:48 +00:00
Chris Lattner 8a06ca02d8 The x constraint allows scalar FP values as well as vectors.
llvm-svn: 35798
2007-04-09 05:11:03 +00:00
Chris Lattner e04c652f5d new testcase for PR1304
llvm-svn: 35791
2007-04-09 01:37:35 +00:00
Chris Lattner 418bf4eb1c new testcase for PR1286
llvm-svn: 35787
2007-04-09 01:10:13 +00:00
Chris Lattner e505615531 new testcase for PR1308
llvm-svn: 35784
2007-04-09 00:45:42 +00:00
Chris Lattner d733c17fce testcase for PR1314
llvm-svn: 35778
2007-04-08 22:22:53 +00:00
Nick Lewycky ecff285e49 Fix this testcase to fail if the bug were reintroduced.
llvm-svn: 35776
2007-04-08 21:49:13 +00:00
Owen Anderson fe507270ac Remove DomSet completely. This concludes work on PR1171.
llvm-svn: 35775
2007-04-08 21:30:05 +00:00
Chris Lattner 659ff4ca8d this xform is correct, not an xfail
llvm-svn: 35766
2007-04-08 08:02:39 +00:00
Chris Lattner 92e2de78dd make xfail info more nice
llvm-svn: 35764
2007-04-08 07:58:41 +00:00
Chris Lattner b79728b1ae tweak this to test the right thing.
llvm-svn: 35762
2007-04-08 07:52:40 +00:00
Chris Lattner ef09cea4fb testrunner should print out xfail info.
llvm-svn: 35761
2007-04-08 07:49:19 +00:00
Chris Lattner 8ca3d48984 new testcase, should simplify down to a xor/and/xor sequence.
llvm-svn: 35759
2007-04-08 07:45:36 +00:00
Chris Lattner 5106a68bfc these test a pass that no longer exists.
llvm-svn: 35750
2007-04-07 20:25:30 +00:00
Chris Lattner 35aa06eb6a xfail these until owen can figure out the right fix
llvm-svn: 35748
2007-04-07 20:00:36 +00:00
Chris Lattner 3dc477d5e3 testcase for PR1307
llvm-svn: 35705
2007-04-06 23:36:59 +00:00
Chris Lattner 992b451e33 new testcase, update old one.
llvm-svn: 35699
2007-04-06 18:56:54 +00:00
Reid Spencer 91b273ae39 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 cf1f986099 new testcase that crashes globalopt
llvm-svn: 35688
2007-04-05 21:09:29 +00:00
Dale Johannesen 0a3d673b4a testcase for padding before zero-length fields.
llvm-svn: 35687
2007-04-05 19:05:43 +00:00
Devang Patel 9feae5c4d8 New tests for Packed structs.
llvm-svn: 35686
2007-04-05 17:14:21 +00:00
Devang Patel bc09c71159 New tests for Packed structs.
llvm-svn: 35685
2007-04-05 17:07:48 +00:00
Anton Korobeynikov 506d8db8a4 Fix test
llvm-svn: 35683
2007-04-05 16:43:09 +00:00
Reid Spencer cce90f55ed Implement the llvm.bit.part_select.iN.iN.iN overloaded intrinsic.
llvm-svn: 35678
2007-04-04 23:48:25 +00:00
Reid Spencer 9797fee9a1 Ignore some things generated by bugpoint.
llvm-svn: 35677
2007-04-04 22:47:38 +00:00
Jeff Cohen b4470fb0bf Fix some FreeBSD/amd64 regressions.
llvm-svn: 35675
2007-04-04 22:07:44 +00:00
Anton Korobeynikov 029ea7ee74 Fix test
llvm-svn: 35673
2007-04-04 21:28:36 +00:00
Anton Korobeynikov 915e61736b 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 9da1cde86c Any add is wrong, regardless of type.
llvm-svn: 35671
2007-04-04 20:40:44 +00:00
Jeff Cohen 62c300a415 Get it right...
llvm-svn: 35670
2007-04-04 20:35:31 +00:00
Dale Johannesen 9234629e60 Test for transformConstExprCastCall fix.
llvm-svn: 35669
2007-04-04 19:18:16 +00:00
Jeff Cohen 6f98cd3710 Add new test.
llvm-svn: 35664
2007-04-04 16:11:23 +00:00
Evan Cheng 8f61b79d60 Better still.
llvm-svn: 35663
2007-04-04 08:49:40 +00:00
Evan Cheng 06df995e9f Fix test case.
llvm-svn: 35662
2007-04-04 07:41:33 +00:00
Evan Cheng ee06655d6b These got better.
llvm-svn: 35661
2007-04-04 07:41:15 +00:00
Evan Cheng 07d353c9d7 New asm test case.
llvm-svn: 35641
2007-04-04 00:15:17 +00:00
Evan Cheng 10a25d43fa New test case.
llvm-svn: 35636
2007-04-03 23:40:54 +00:00
Chris Lattner 85b0927c4b move these to FrontendAda
llvm-svn: 35631
2007-04-03 21:48:02 +00:00
Chris Lattner 349987ed2c testcase for recent bugfix
llvm-svn: 35630
2007-04-03 21:47:36 +00:00
Chris Lattner 412c70ed8a move ada tests
llvm-svn: 35629
2007-04-03 21:46:22 +00:00
Evan Cheng 2c2ec5f138 New test case.
llvm-svn: 35628
2007-04-03 21:38:03 +00:00
Chris Lattner d4594adf43 new testcase for PR1253
llvm-svn: 35611
2007-04-03 01:45:32 +00:00
Chris Lattner 67f99e955b new testcase, where we should use a negative stride
llvm-svn: 35608
2007-04-03 00:13:16 +00:00
Chris Lattner d9eb0d9f5a 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 a7152a90d1 fix this testcase so it passes
llvm-svn: 35604
2007-04-02 20:46:28 +00:00
Chris Lattner dd59227a73 fix this testcase on ppc hosts
llvm-svn: 35603
2007-04-02 20:39:48 +00:00
Evan Cheng f7f8e349d6 New test case.
llvm-svn: 35599
2007-04-02 18:47:13 +00:00
Chris Lattner be96c646dc new testcase.
llvm-svn: 35591
2007-04-02 06:33:10 +00:00
Chris Lattner 745f59bfde new testcase
llvm-svn: 35589
2007-04-02 05:57:59 +00:00
Chris Lattner 2d81c6d706 creative way to add one.
llvm-svn: 35583
2007-04-02 05:35:08 +00:00
Chris Lattner 0a844d8df1 my patch fixed the fixme.
llvm-svn: 35582
2007-04-02 05:08:54 +00:00
Reid Spencer e51961b5ba Fix illegal assembly syntax.
llvm-svn: 35581
2007-04-02 03:24:47 +00:00
Reid Spencer a3bc850712 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 4cb30067c2 new testcase for PR1296
llvm-svn: 35574
2007-04-02 01:32:59 +00:00
Lauro Ramos Venancio 6be85337b0 - 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 84c90a9431 Let llvm-upgrade upgrade the bswap intrinsic.
llvm-svn: 35569
2007-04-02 01:09:19 +00:00
Reid Spencer 0b544372d4 Let llvm-upgrade upgrade bswap intrinsic.
llvm-svn: 35568
2007-04-02 01:08:02 +00:00
Reid Spencer a5f996bd27 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 ecc769e4f2 Add testcase for correct sret handling.
llvm-svn: 35562
2007-04-01 22:03:04 +00:00
Duncan Sands 2e45201769 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 c3d87685ad 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 f517e9578d not not!
llvm-svn: 35537
2007-04-01 06:19:41 +00:00
Chris Lattner 9729bdd8e3 New testcase
llvm-svn: 35535
2007-04-01 05:34:53 +00:00
Evan Cheng 67a49736af Missing '&&'
llvm-svn: 35519
2007-03-30 22:03:49 +00:00
Chris Lattner d1440c429f add a testcase for x86
llvm-svn: 35516
2007-03-30 21:22:46 +00:00
Evan Cheng 1d78d3deeb New test case.
llvm-svn: 35515
2007-03-30 20:41:18 +00:00
Evan Cheng 9ca63d605c Test case for PR1279 (part 2).
llvm-svn: 35511
2007-03-30 20:15:22 +00:00
Reid Spencer 3c401f0613 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 b9d7f2a3ba 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 17331da6bd new testcases
llvm-svn: 35433
2007-03-28 18:11:17 +00:00
Chris Lattner 66cb5db76f new testcase
llvm-svn: 35432
2007-03-28 18:03:14 +00:00
Reid Spencer 8cd7e8190b Delete the remanant of an obsolete comment.
llvm-svn: 35415
2007-03-28 03:23:22 +00:00
Reid Spencer 44259a29c0 Remove use of implementation keyword.
llvm-svn: 35412
2007-03-28 02:38:26 +00:00
Reid Spencer bad2921deb The implementation keyword was replaced with checkpoint.
llvm-svn: 35409
2007-03-28 02:34:53 +00:00
Reid Spencer de7e7122cd implementation keyword is going .. going .. gone.
llvm-svn: 35404
2007-03-28 01:52:40 +00:00
Chris Lattner 4ba1036a34 don't use 'not' when we can use a positive test
llvm-svn: 35402
2007-03-28 01:43:43 +00:00
Reid Spencer 90bb12c2e7 new test case for PR1280
llvm-svn: 35401
2007-03-28 01:43:35 +00:00
Reid Spencer 94a8cb4b4e 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 1f4acbfea9 Added a test case for PR1279.
llvm-svn: 35398
2007-03-28 01:32:57 +00:00
Chris Lattner 4776ebc195 new testcase
llvm-svn: 35397
2007-03-28 01:31:33 +00:00
Chris Lattner ae0f8dcd61 upgrade a random test
llvm-svn: 35395
2007-03-28 01:27:12 +00:00
Chris Lattner 517886963f new testcase
llvm-svn: 35391
2007-03-28 00:03:10 +00:00
Duncan Sands 62574103d1 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 e01d0e8c39 Another test case for PR1271 where bad shift masks were generated.
llvm-svn: 35372
2007-03-26 23:48:52 +00:00
Evan Cheng 44a7f3a65d Test case for PR1266.
llvm-svn: 35367
2007-03-26 22:58:35 +00:00
Reid Spencer d9fe01c7a4 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 820ae03fda Fix testsuite hang.
llvm-svn: 35355
2007-03-26 10:59:13 +00:00
Reid Spencer 0bfa19eb13 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 6e30008249 Add "feature" testcase for new switch lowering code
llvm-svn: 35345
2007-03-25 22:01:14 +00:00