Commit Graph

4067 Commits

Author SHA1 Message Date
Chris Lattner 54ea1ec249 llvm upgrade doesn't accept 'define'
llvm-svn: 32891
2007-01-05 03:03:27 +00:00
Chris Lattner ce0f91ebd6 new testcase
llvm-svn: 32889
2007-01-05 02:16:36 +00:00
Chris Lattner a0e341f429 add missing flags
llvm-svn: 32885
2007-01-04 23:18:14 +00:00
Chris Lattner 447a9dd56e new testcase
llvm-svn: 32883
2007-01-04 22:22:07 +00:00
Chris Lattner 354a911b90 remove xfailed test that depends on obsolete argument to lli
llvm-svn: 32876
2007-01-04 17:47:42 +00:00
Reid Spencer 2c3d9e64b7 Remove a manual renaming of a variable that was introduced before
llvm-upgrade could properly handle collapsed type planes.

llvm-svn: 32875
2007-01-04 16:46:46 +00:00
Lauro Ramos Venancio 4464d208de Add test for constructor and destructor sections.
llvm-svn: 32873
2007-01-04 14:41:33 +00:00
Lauro Ramos Venancio 697f86bbe3 Add extload(i1) test.
llvm-svn: 32872
2007-01-04 14:27:21 +00:00
Lauro Ramos Venancio 8c45da0664 Add test for FCOPYSIGN.
llvm-svn: 32871
2007-01-04 14:24:32 +00:00
Reid Spencer 1434f95410 XFAIL this test until such time that code gen can handle a comparison of
packed types.

llvm-svn: 32863
2007-01-04 03:06:23 +00:00
Reid Spencer 836567a9d8 Add a test to ensure that we can assembly comparisons of packed values.
llvm-svn: 32854
2007-01-04 00:29:09 +00:00
Reid Spencer 6fb16b1bce Test @zext and @sext fully as well as testing the "short" call syntax.
llvm-svn: 32851
2007-01-04 00:03:37 +00:00
Reid Spencer 724ffc6cd0 Add a test case to test parameter attributes feature.
llvm-svn: 32850
2007-01-03 23:54:02 +00:00
Reid Spencer db879b6013 Update test cases that grepped for register names that have now changed
as a result of llvm-upgrade handling collapsed type planes better.

llvm-svn: 32849
2007-01-03 23:47:29 +00:00
Reid Spencer 95c466a52b It is no longer permissible to have undefined types in function parameters.
Just fix it by defining the type as opaque.

llvm-svn: 32838
2007-01-03 17:03:48 +00:00
Reid Spencer 98fd5eb48c Fix this test case. It is no longer permissible to have undefined types
in function parameters. Fix by just defining the type as opaque.

llvm-svn: 32837
2007-01-03 17:01:18 +00:00
Reid Spencer a6fda18b13 Fix this test cases to use parameter attributes for its parameter and
result types. These tests are checking for sext behavior and it won't
happen unless requested with the parameter attribute.

llvm-svn: 32828
2007-01-03 04:20:23 +00:00
Reid Spencer ab2fccd9eb This test case previously passed the assembler without error even though
it used an undefined type name as a parameter argument. This bug in the
assembler has been fixed and it is now necessary to define the type.

llvm-svn: 32826
2007-01-02 21:56:26 +00:00
Reid Spencer 42a1cb7c0c Add a test case for abstract parameter and result types in function
definitions. The assembler should produce an error on this input.

llvm-svn: 32819
2007-01-02 20:47:51 +00:00
Jim Laskey a131cf78ad PR1068 - Unbounded array debug info.
llvm-svn: 32818
2007-01-02 11:53:52 +00:00
Reid Spencer e9da1b0ae0 For PR1070:
Tweak the RUN: lines of these tests to accommodate the renaming of
variables done by llvm-upgrade. The renaming occurs as a result of avoiding
name collisons for collapsed type planes. Conflicting names have a .u
(unsigned) or .s (signed) suffix added. This patch updates the grep
expression to accommodate the new names.

llvm-svn: 32815
2007-01-02 05:55:05 +00:00
Reid Spencer 9f7ab3a3cd For PR1070:
Revert previous patch now that llvm-upgrade can handle collapsed type
plane conversion properly.

llvm-svn: 32814
2007-01-02 05:53:06 +00:00
Reid Spencer 5b353d3116 Manually upgrade this test case to make sure that the new cast-to-bool
semantics are retained.

llvm-svn: 32813
2007-01-02 05:50:11 +00:00
Reid Spencer f8e060f589 For PR1070:
Add a test case to ensure that llvm-upgrade retains correct semantics
for the previous definition of "cast to bool" which compared against null.

llvm-svn: 32812
2007-01-02 05:48:32 +00:00
Reid Spencer 51397401ba Reverse last patch, committed by accident.
llvm-svn: 32809
2007-01-02 04:30:40 +00:00
Reid Spencer 8218de2f01 Fix this test case to be legal. There is no ubyte %tmp ever defined!
llvm-svn: 32808
2007-01-02 04:19:32 +00:00
Reid Spencer 7b25bf07af Back out last revision now that llvm-upgrade can remove useless bitcasts.
This serves as a test of that feature.

llvm-svn: 32806
2007-01-01 01:22:53 +00:00
Rafael Espindola fd68718467 implement missing compares
patch by Lauro
bug fixed by me

llvm-svn: 32795
2006-12-31 18:52:39 +00:00
Reid Spencer deb4d5ab46 For PR950:
Update the test suite to accommodate the change from signed integer types
to signless integer types. The changes were of only a few kinds:

1. Make sure llvm-upgrade is run on the source which does the bulk of the
   changes automatically.

2. Change things like "grep 'int'" to "grep 'i32'"

3. In several tests bitcasting caused the same name to be reused in the
   same type plane. These had to be manually fixed. The fix was (generally)
   to leave the bitcast and provide the instruction with a new name. This
   should not affect the semantics of the test. In a few cases, the
   bitcasts were known to be superfluous and irrelevant to the test case
   so they were removed.

4. One test case uses a bytecode file which needed to be updated to the
   latest bytecode format.

llvm-svn: 32789
2006-12-31 06:02:00 +00:00
Reid Spencer 399b10a48c Run llvm-upgrade on test to prepare for new assembly syntax.
llvm-svn: 32769
2006-12-29 20:21:51 +00:00
Reid Spencer 640509924e Update tests that need to be run through llvm-upgrade. This is necessary
for upcoming changes to the llvm assembly grammar.

llvm-svn: 32768
2006-12-29 20:01:32 +00:00
Reid Spencer 208099bbee Test case for PR1065.
llvm-svn: 32755
2006-12-23 19:14:10 +00:00
Reid Spencer 266e42b312 For PR950:
This patch removes the SetCC instructions and replaces them with the ICmp
and FCmp instructions. The SetCondInst instruction has been removed and
been replaced with ICmpInst and FCmpInst.

llvm-svn: 32751
2006-12-23 06:05:41 +00:00
Chris Lattner 70e09a2148 add a generic component to this test
llvm-svn: 32747
2006-12-22 22:48:44 +00:00
Chris Lattner b3fbcbea8f let this pass for ppc/linux
llvm-svn: 32746
2006-12-22 22:38:38 +00:00
Reid Spencer ba2297ca7c Integer constants now print out as signed values in the assembly,
regardless of the signedness of the associated type.

llvm-svn: 32734
2006-12-21 19:14:49 +00:00
Jim Laskey 39377e4594 These tests all rely on using register mnemonics and thus must behave in the
world of darwin.

llvm-svn: 32725
2006-12-21 00:01:42 +00:00
Reid Spencer 21278e9932 Add some tests for negative constants to unsigned and large positive
constants to signed.

llvm-svn: 32717
2006-12-20 17:27:58 +00:00
Chris Lattner aef35566f5 new testcase
llvm-svn: 32714
2006-12-20 06:20:23 +00:00
Reid Spencer 38ea551520 Update this test because constant integers are always printed signed now.
llvm-svn: 32699
2006-12-19 22:42:17 +00:00
Reid Spencer 1e9d4977b6 For PR950:
Test needs to be upgraded for the forthcoming FCmpInst patch.

llvm-svn: 32683
2006-12-19 19:55:17 +00:00
Reid Spencer 98679b56a1 This test needs to be upgraded for the forthcoming FCmpInst patch.
llvm-svn: 32682
2006-12-19 19:50:30 +00:00
Reid Spencer fb5e766bea This test needs to be upgraded for the FCmpInst patch.
llvm-svn: 32677
2006-12-19 19:30:58 +00:00
Reid Spencer 60544284e8 Make sure linker output is overwritten so this test can pass multiple times.
llvm-svn: 32675
2006-12-19 19:29:50 +00:00
Chris Lattner 8826afd893 testcase for pr1061
llvm-svn: 32674
2006-12-19 19:29:50 +00:00
Reid Spencer 56fd357f5e Back out last revision, a bit premature, its not an upgrade-only change.
llvm-svn: 32670
2006-12-19 02:17:23 +00:00
Reid Spencer 60ea16cd6d For PR950:
Upgrade this test in preparation for the SETCC patch.

llvm-svn: 32669
2006-12-19 02:14:08 +00:00
Reid Spencer 2fff0acab4 For PR950:
These tests need to be upgraded in preparation for the SETCC patch.

llvm-svn: 32668
2006-12-19 02:09:20 +00:00
Reid Spencer fe0cda3de8 This test needs to be upgraded in preparation for the SETCC patch.
llvm-svn: 32667
2006-12-19 02:07:11 +00:00
Reid Spencer c136005f32 This test needs to be upgraded.
llvm-svn: 32666
2006-12-19 02:03:04 +00:00
Reid Spencer 0e60d55519 Add a couple little tests for SExt/ZExt of constants of a sign that doesn't
match.

llvm-svn: 32647
2006-12-18 01:11:46 +00:00
Chris Lattner 5ffb07839d testcase for pr1049
llvm-svn: 32632
2006-12-16 21:12:49 +00:00
Chris Lattner cbc280f559 Fix one more broken testcase
llvm-svn: 32631
2006-12-16 20:27:43 +00:00
Chris Lattner a07e363aae Fix borken testcase
llvm-svn: 32627
2006-12-16 02:30:24 +00:00
Chris Lattner cf1eac3535 fix buggy testcase
llvm-svn: 32626
2006-12-16 02:29:22 +00:00
Chris Lattner cff7b8a9ca testcases for PR1042
llvm-svn: 32625
2006-12-16 02:26:57 +00:00
Andrew Lenharth 54de5be0b4 extern_weak link test
llvm-svn: 32602
2006-12-15 17:34:37 +00:00
Chris Lattner 43662ef02b reenable these
llvm-svn: 32596
2006-12-15 07:32:49 +00:00
Chris Lattner bb39cc4631 New testcase for llvm-gcc bugfix
llvm-svn: 32594
2006-12-15 06:49:20 +00:00
Rafael Espindola 3b7544e24c avoid using a constant table when a constant can be used inline
llvm-svn: 32580
2006-12-14 18:58:37 +00:00
Rafael Espindola 09e2921d9a Avoid creating invalid sub/add instructions on the prolog/epilog
patch by Lauro

llvm-svn: 32577
2006-12-14 13:31:27 +00:00
John Criswell 21a589beba Remove DSA tests.
llvm-svn: 32549
2006-12-13 19:39:27 +00:00
John Criswell 62813edc67 Remove DSA tests.
llvm-svn: 32547
2006-12-13 18:05:30 +00:00
Chris Lattner e612d336d9 xfail these until I recommit the scalarrepl patch
llvm-svn: 32545
2006-12-13 17:42:40 +00:00
John Criswell f9e355c7f1 Remove DSA tests.
llvm-svn: 32543
2006-12-13 17:02:04 +00:00
Chris Lattner fc069248f7 New testcase for PR1047
llvm-svn: 32528
2006-12-13 04:30:18 +00:00
Rafael Espindola 67d1c8ae0e more general matching of the MVN instruction
llvm-svn: 32484
2006-12-12 17:10:13 +00:00
Rafael Espindola 470d61d82c don't use "ordinary" addressing mode 1 when mvn is appropriate
llvm-svn: 32482
2006-12-12 14:03:29 +00:00
Chris Lattner f65ce046db new testcase for pr1045
llvm-svn: 32467
2006-12-12 04:24:17 +00:00
Chris Lattner f929e81d37 This should check for darwin literal sections as well.
llvm-svn: 32464
2006-12-12 03:59:46 +00:00
Rafael Espindola 9fa0a26808 use MVN to handle small negative constants
llvm-svn: 32459
2006-12-12 01:03:11 +00:00
Reid Spencer aabebbbf2e Don't bother upgrading this.
llvm-svn: 32458
2006-12-12 00:53:31 +00:00
Rafael Espindola 1bbe581d0f add mvn
llvm-svn: 32454
2006-12-12 00:37:38 +00:00
Reid Spencer 840cc9e1a9 Test case for ensuring correct reading back of cast constant expressions.
llvm-svn: 32449
2006-12-11 23:19:53 +00:00
Reid Spencer 0fdba212a7 Add a test for constant folding of bitcast to/from floating point.
llvm-svn: 32446
2006-12-11 21:25:10 +00:00
Reid Spencer 025ca90b7a Provide a test for int<->float and long<->double bitcasts.
llvm-svn: 32445
2006-12-11 20:40:28 +00:00
Chris Lattner 2a39f55e24 constant folding of bitcast is broken.
llvm-svn: 32437
2006-12-11 18:29:07 +00:00
Chris Lattner e9c430c5d8 the xform is done by scalarrepl not the code generator.
llvm-svn: 32425
2006-12-11 01:03:32 +00:00
Chris Lattner ac57792106 new testcase
llvm-svn: 32421
2006-12-11 00:34:27 +00:00
Chris Lattner a571d211ae testcase for a regression introduced by the recent cast patch
llvm-svn: 32419
2006-12-11 00:12:07 +00:00
Chris Lattner a4121981ce new testcase
llvm-svn: 32417
2006-12-10 23:52:28 +00:00
Rafael Espindola b8ada08b26 .align is in bits
.comm is in bytes
:-(

llvm-svn: 32408
2006-12-10 02:53:14 +00:00
Rafael Espindola b313efb0cd fix test/Regression/CodeGen/X86/weak.ll
if a variable has no initialization, I->getInitializer() will fail

llvm-svn: 32407
2006-12-09 23:14:08 +00:00
Rafael Espindola 839bcb4af2 use a . instead of a % in the grep expression
llvm-svn: 32406
2006-12-09 21:21:06 +00:00
Reid Spencer 2fee8a99e2 Fix the run line and make this test more specific.
llvm-svn: 32403
2006-12-09 19:39:56 +00:00
Reid Spencer 1d3dbd34b7 Add a check to catch an incorrect upgrade.
llvm-svn: 32402
2006-12-09 19:35:43 +00:00
Reid Spencer b558b57e75 Too soon to commit, revert.
llvm-svn: 32397
2006-12-09 05:13:50 +00:00
Reid Spencer 0606d15530 New test cases for regressions in the SetCC -> ICmp patch.
llvm-svn: 32396
2006-12-09 05:13:01 +00:00
Rafael Espindola d12d2250a7 %progbits not @progbits
llvm-svn: 32376
2006-12-08 22:06:02 +00:00
Rafael Espindola 735a27246c add missing &&
llvm-svn: 32374
2006-12-08 21:43:02 +00:00
Rafael Espindola 94f29f129d add \"aw\",@progbits" to ctors and dtors
llvm-svn: 32373
2006-12-08 21:24:58 +00:00
Andrew Lenharth 60be4775ff test packed struct codegen on x86
llvm-svn: 32367
2006-12-08 18:54:15 +00:00
Andrew Lenharth ae5733ba6a packed initializers too in the test
llvm-svn: 32365
2006-12-08 18:45:38 +00:00
Andrew Lenharth 23469cca1a feature test for packed structs
llvm-svn: 32363
2006-12-08 18:36:24 +00:00
Reid Spencer 3c63db7138 This test needs to be upgraded.
llvm-svn: 32359
2006-12-08 17:39:49 +00:00
Reid Spencer ed644771ea For PR950:
Add a test for a regression in combining of ICmp instructions.

llvm-svn: 32358
2006-12-08 17:38:55 +00:00
Rafael Espindola 265fa68bd8 fix alignment
llvm-svn: 32337
2006-12-07 22:38:06 +00:00
Chris Lattner f843356150 new testcase
llvm-svn: 32335
2006-12-07 22:36:14 +00:00
Chris Lattner 0cd35b2884 new testcase
llvm-svn: 32330
2006-12-07 22:15:20 +00:00
Rafael Espindola 219a796475 make sure that we don't use a common symbol if a section was specified
llvm-svn: 32310
2006-12-07 18:33:58 +00:00
Andrew Lenharth 2997019c62 Copy ARM's weak symbol test
llvm-svn: 32307
2006-12-07 17:37:54 +00:00
Reid Spencer 581a07a34d This now passes on Linux/x86
llvm-svn: 32306
2006-12-07 16:28:32 +00:00
Reid Spencer bee1306634 Manually convert this to new assembly.
llvm-svn: 32301
2006-12-07 04:20:23 +00:00
Jim Laskey 7fb08347ea Failing linux.
llvm-svn: 32292
2006-12-06 21:36:07 +00:00
Rafael Espindola 776abee608 print weak references
llvm-svn: 32276
2006-12-06 13:35:10 +00:00
Chris Lattner bbbb1c5e78 this is a subset of Codegen/X86/bitcast.ll, remove it.
llvm-svn: 32248
2006-12-06 00:46:14 +00:00
Chris Lattner 83830075f6 Instcombine shouldn't fold these casts.
llvm-svn: 32243
2006-12-05 23:43:20 +00:00
Chris Lattner b6e14a0e10 new testcase
llvm-svn: 32227
2006-12-05 18:21:52 +00:00
Rafael Espindola b5dee63958 expand memmove and memcpy
llvm-svn: 32226
2006-12-05 17:57:23 +00:00
Rafael Espindola 96fd6447c7 add support for the "r" asm constraint
patch by Lauro Ramos Venancio

llvm-svn: 32224
2006-12-05 17:37:31 +00:00
Rafael Espindola 2369a024d7 add support for weak linkage
llvm-svn: 32222
2006-12-05 17:00:17 +00:00
Reid Spencer 300aae721e Ignore the Output directory.
llvm-svn: 32221
2006-12-05 16:10:16 +00:00
Chris Lattner c92921f939 new testcase
llvm-svn: 32210
2006-12-05 01:29:01 +00:00
Devang Patel 21efc73161 SCCP does not handle Packed Type properly. Disable Packed Type handling
for now.

llvm-svn: 32208
2006-12-04 23:54:59 +00:00
Chris Lattner 9a5a838c98 Testcase for PR1029, patch by Rafael vila de Espíndola
llvm-svn: 32205
2006-12-04 22:37:48 +00:00
Reid Spencer a6cfd60a8c These pass on Linux now.
llvm-svn: 32195
2006-12-04 20:46:05 +00:00
Reid Spencer 332109374a Fix the intrinsic debug call to make this match current definition.
llvm-svn: 32190
2006-12-04 20:13:49 +00:00
Reid Spencer d5d0529259 Make this test succeed on both Darwin and Linux
llvm-svn: 32189
2006-12-04 20:09:02 +00:00
Reid Spencer d82ba83a63 XFAIL until PR1033 is fixed.
llvm-svn: 32187
2006-12-04 18:39:14 +00:00
Reid Spencer a4d2d788ad Test case for PR1033, x86-64 code gen fails on bitcast.
llvm-svn: 32185
2006-12-04 18:24:56 +00:00
Evan Cheng a6b4c4b4f8 Fix test.
llvm-svn: 32183
2006-12-04 18:06:24 +00:00
Jim Laskey c963b6ffae Purpose of test is lost in upgrade.
llvm-svn: 32182
2006-12-04 17:54:29 +00:00
Jim Laskey d0d464950e Remove debug info.
llvm-svn: 32181
2006-12-04 17:06:15 +00:00
Jim Laskey 3082ed5364 Fixed to use current debug info.
llvm-svn: 32177
2006-12-04 12:23:17 +00:00
Jim Laskey 486c0adacd Moving to DebugInfo.
llvm-svn: 32176
2006-12-04 12:21:23 +00:00
Jim Laskey 0faad3925c Duplicate of Regression/Debugger/funccall.ll.
llvm-svn: 32175
2006-12-04 10:50:32 +00:00
Reid Spencer fb6ce95002 Use weak_import on linux, weak everywhere else. Makes test pass on Linux.
Checking for __APPLE_CC__ is useless as this just checks to see if the
compiler is llvm-gcc, which we know it is.

llvm-svn: 32158
2006-12-03 16:40:08 +00:00
Reid Spencer 0f1725e68c These tests need llvm-upgrade. This fixes last night's nightly test fallout.
llvm-svn: 32154
2006-12-03 16:17:19 +00:00
Reid Spencer 6ad23bdf9d Upgrade to version 7 bytecode format.
llvm-svn: 32143
2006-12-03 04:40:09 +00:00
Reid Spencer 39bfeeeceb Make sure this file gets upgraded with llvm-upgrade
llvm-svn: 32138
2006-12-02 20:42:32 +00:00
Reid Spencer e812408695 Upgrade intrinsic function calls manually.
llvm-svn: 32137
2006-12-02 20:41:53 +00:00
Reid Spencer 6faf0cbf13 These files need llvm-upgrade.
llvm-svn: 32136
2006-12-02 20:40:30 +00:00
Reid Spencer 4ee2f08386 Rearrange code so that llvm-upgrade doesn't break the optimization this
test is trying to verify.

llvm-svn: 32135
2006-12-02 20:39:25 +00:00
Reid Spencer 19738b0b5a Upgrade intrinsic function calls
llvm-svn: 32134
2006-12-02 20:38:37 +00:00
Reid Spencer ed3471a8cc Run llvm-upgrade on this test and/or upgrade intrinsic function calls.
llvm-svn: 32133
2006-12-02 20:38:10 +00:00
Reid Spencer fc0618e2db Remove tests for checking bytecode upgrade. Bytecode upgrade is being
replaced in 2.0 with assembly upgrade via the llvm-upgrade tool.

llvm-svn: 32132
2006-12-02 20:35:50 +00:00
Reid Spencer c58764b57b Upgrade old intrinsic function calls manually.
llvm-svn: 32131
2006-12-02 20:34:57 +00:00
Reid Spencer 107b4b79c4 Use llvm-upgrade these tests as they all use old assembly.
llvm-svn: 32130
2006-12-02 20:34:08 +00:00
Reid Spencer 7d4eb03ceb Remove old intrinsic declarations and usage.
llvm-svn: 32129
2006-12-02 20:30:20 +00:00
Reid Spencer 9d91281573 Remove a redundant RUN: line.
llvm-svn: 32126
2006-12-02 17:49:38 +00:00
Reid Spencer 8100d27982 Prevent a GEP from getting upgraded to avoid resulting test failure.
llvm-svn: 32123
2006-12-02 16:25:20 +00:00
Reid Spencer 8b0cb8cf03 Update this test to use llvm-update.
llvm-svn: 32117
2006-12-02 05:02:46 +00:00
Reid Spencer d0e30dc5be Use the llvm-upgrade program to upgrade llvm assembly.
llvm-svn: 32115
2006-12-02 04:23:10 +00:00
Chris Lattner 72239930e0 new testcase
llvm-svn: 32111
2006-12-02 00:12:32 +00:00
Chris Lattner 3a279ecc65 fix incorrectly translated testcase
llvm-svn: 32093
2006-12-01 21:38:02 +00:00
Chris Lattner 6dde72735e test1 is miscompiled
llvm-svn: 32086
2006-12-01 19:50:04 +00:00
Jim Laskey b0862be332 wrong spot
llvm-svn: 32084
2006-12-01 19:39:32 +00:00
Jim Laskey ba0f15c676 Test for float varargs.
llvm-svn: 32083
2006-12-01 19:29:20 +00:00
Chris Lattner 635ed246d7 new 'cast' miscompilation, reduced from perlbmk by Evan
llvm-svn: 32079
2006-12-01 19:02:56 +00:00
Chris Lattner e6b2c29c27 enable this now that codegen support is in place
llvm-svn: 32076
2006-12-01 18:04:08 +00:00
Evan Cheng 80361a9297 This test is meant for X86 CPU which does not support SSE2.
llvm-svn: 32072
2006-12-01 10:17:36 +00:00
Evan Cheng 3fe5331483 Add a extern weak test case.
llvm-svn: 32070
2006-12-01 09:18:20 +00:00
Chris Lattner 8bbf5e20cc new testcase to verify external weak continues to work
llvm-svn: 32064
2006-12-01 07:14:26 +00:00
Chris Lattner 18f6fe36ce new testcase for PR1027
llvm-svn: 32063
2006-12-01 06:34:56 +00:00
Chris Lattner 5145977cd8 new testcase
llvm-svn: 32061
2006-12-01 05:54:48 +00:00
Reid Spencer 6c0676d4e6 The InstCombine hack has been removed, no need to XFAIL this any more.
llvm-svn: 32058
2006-12-01 01:50:45 +00:00
Evan Cheng 6104a1aa9e Add X86-64 load / store codegen tests.
llvm-svn: 32047
2006-11-30 22:07:00 +00:00
Jim Laskey b12ab5fadb Add compile unit size test
llvm-svn: 32040
2006-11-30 15:36:44 +00:00
Jim Laskey e6f6890438 Correct comment
llvm-svn: 32039
2006-11-30 15:31:49 +00:00
Jim Laskey 030b840234 Pubnames test
llvm-svn: 32038
2006-11-30 15:25:59 +00:00
Evan Cheng 983ac81fb0 New LSR test case.
llvm-svn: 32029
2006-11-29 23:48:37 +00:00
Chris Lattner c386b40714 new testcase
llvm-svn: 32023
2006-11-29 19:57:55 +00:00
Evan Cheng e2e0a33e6c Add x86-64 llvm.readcyclecounter test.
llvm-svn: 32018
2006-11-29 08:29:59 +00:00
Evan Cheng c24ce795a3 Fix test.
llvm-svn: 32015
2006-11-29 08:22:59 +00:00
Chris Lattner aeddf5f077 new bswap idiom
llvm-svn: 32012
2006-11-29 07:21:08 +00:00
Chris Lattner 19d72c9f4f new testcase
llvm-svn: 32010
2006-11-29 07:17:32 +00:00
Chris Lattner 544dfa013c new testcase
llvm-svn: 32008
2006-11-29 07:03:00 +00:00
Chris Lattner 7b34c1391a This fails on mainline.
llvm-svn: 32007
2006-11-29 05:19:32 +00:00
Chris Lattner e7f83dcf4b new testcase, bswaps should be eliminated.
llvm-svn: 32005
2006-11-29 05:00:14 +00:00
Evan Cheng 79ca238966 Add test cases for PR1022, 1023.
llvm-svn: 32002
2006-11-29 01:57:06 +00:00
Reid Spencer 21052cd48f Fix a typo.
llvm-svn: 31959
2006-11-28 06:14:06 +00:00
Chris Lattner e88ff3a961 testcase for pr1016
llvm-svn: 31951
2006-11-28 01:26:37 +00:00
Chris Lattner f36cc15a84 this doesn't pass with CVS HEAD.
llvm-svn: 31942
2006-11-27 20:01:48 +00:00
Reid Spencer 5fb4da8c5d Add 3 more test cases for ptrtoint, fptoui and fptosi
llvm-svn: 31940
2006-11-27 19:54:23 +00:00
Chris Lattner 2c2e34b2c4 testcase for PR1014
llvm-svn: 31939
2006-11-27 19:47:22 +00:00
Reid Spencer 141519fbc0 Alter these tests to ensure they match a "test $1, X" X86 instruction that
is now generated by the LLVM backend for "trunc to bool" instructions.

llvm-svn: 31935
2006-11-27 05:08:03 +00:00
Reid Spencer b3281892d9 Add a test to ensure a bitcast/and/trunc combination eliminates the bitcast.
llvm-svn: 31934
2006-11-27 05:06:58 +00:00
Reid Spencer 6c38f0bb07 For PR950:
The long awaited CAST patch. This introduces 12 new instructions into LLVM
to replace the cast instruction. Corresponding changes throughout LLVM are
provided. This passes llvm-test, llvm/test, and SPEC CPUINT2000 with the
exception of 175.vpr which fails only on a slight floating point output
difference.

llvm-svn: 31931
2006-11-27 01:05:10 +00:00
Reid Spencer afbc00bc38 Don't use bitcast yet!
llvm-svn: 31930
2006-11-26 21:22:01 +00:00
Reid Spencer 2dd1741565 Make this test case easier to read. No functional changes.
llvm-svn: 31929
2006-11-26 18:27:09 +00:00
Reid Spencer 3c3324c7fa Fix some typos.
llvm-svn: 31897
2006-11-23 16:45:52 +00:00
Reid Spencer 0e43e15fc9 Promote GEP ubyte indices to uint. Backwards compatibility for 1.2 and
older features will be dropped soon and these test cases must not rely
on the upgrade capability.

llvm-svn: 31896
2006-11-23 15:14:52 +00:00
Nick Lewycky 09b7e4d3ab Update to new predicate simplifier VRP design. Fixes PR966 and PR967.
Remove predicate simplifier from default gcc3 pipeline. New design is too
slow to enable by default.
Add new testcases for problems encountered in development.

llvm-svn: 31895
2006-11-22 23:49:16 +00:00
Jim Laskey efcaa4a8f5 Test for PR1013.
llvm-svn: 31886
2006-11-20 21:58:02 +00:00
Chris Lattner e06180bab8 new testcase
llvm-svn: 31885
2006-11-20 21:20:57 +00:00
Chris Lattner bffbec4482 Testcase for PR1011
llvm-svn: 31877
2006-11-20 18:05:26 +00:00
Chris Lattner 2ae1230764 Testcase for pr1012
llvm-svn: 31875
2006-11-20 17:55:30 +00:00
Chris Lattner bfbc7ace7d converting massive blocks of phis into selects like this is silly.
llvm-svn: 31852
2006-11-18 19:17:52 +00:00
Reid Spencer e7c6fcdbf3 Fix bugs in this. What was I thinking??? :)
llvm-svn: 31848
2006-11-18 08:06:17 +00:00
Reid Spencer d8bd8def37 Fail even if opt doesn't print anything.
llvm-svn: 31844
2006-11-18 06:08:21 +00:00
Reid Spencer 178afb1f9c Add a simple test to make sure getModRefInfo is 1/2 way sane.
llvm-svn: 31842
2006-11-18 05:52:18 +00:00
Evan Cheng bae950131c Add a x86-64 test case: movb %sil, %ah is illegal.
llvm-svn: 31829
2006-11-17 20:41:55 +00:00
Jim Laskey 716f64c30b Case sensitive not.
llvm-svn: 31827
2006-11-17 18:00:39 +00:00
Jim Laskey 63228b3450 Check for MaxAlign.
llvm-svn: 31826
2006-11-17 17:19:49 +00:00
Jim Laskey 6684f2f0a7 Tests to verify PowerPC ABI.
llvm-svn: 31825
2006-11-17 16:54:21 +00:00
Chris Lattner 0727eeaeac New testcase.
llvm-svn: 31808
2006-11-17 06:09:49 +00:00
Evan Cheng 538e9cafae New test case.
llvm-svn: 31796
2006-11-16 23:38:21 +00:00
Chris Lattner 2ccd16c0af make this harder
llvm-svn: 31779
2006-11-16 01:22:52 +00:00
Chris Lattner c348c50c38 new testcase
llvm-svn: 31728
2006-11-14 07:45:36 +00:00
Chris Lattner 9adf8294ef new testcase
llvm-svn: 31726
2006-11-14 06:04:35 +00:00
Reid Spencer 1b89a7bcc1 Discard code that supported old bytecode formats. This makes the Bytecode
Reader code much easier to read and maintain. Backwards compatibility from
version 5 format has been retained. Older formats will produce an error.

llvm-svn: 31723
2006-11-14 04:47:22 +00:00
Reid Spencer 3d1027193f For PR950:
Changes for new cast instructions that are backwards compatible.

llvm-svn: 31707
2006-11-13 18:00:52 +00:00
Reid Spencer 7354395590 Don't hard code test names into the test.
llvm-svn: 31706
2006-11-13 17:55:34 +00:00
Reid Spencer 83c7a1e710 Fix 80 cols violations.
llvm-svn: 31705
2006-11-13 16:21:09 +00:00
Reid Spencer 5953e4e805 For PR950:
Use the notcast script in preparation for 12 casts.

llvm-svn: 31704
2006-11-13 16:13:38 +00:00
Reid Spencer 6170dff047 For PR950:
Use the notcast script in preparation for 12 cast instructions.

llvm-svn: 31703
2006-11-13 16:12:25 +00:00
Reid Spencer 7debe5e948 Make it handle plain old cast too, for old assembly.
llvm-svn: 31702
2006-11-13 16:11:14 +00:00
Reid Spencer 6f406f91d2 Handle ptrtoint and inttoptr
llvm-svn: 31701
2006-11-13 16:09:37 +00:00
Jim Laskey a3262ee8ec XFAIL All but powerpc
llvm-svn: 31689
2006-11-11 22:14:46 +00:00
Jim Laskey ebdf6f46eb Works for PowerPC with frame pointers.
llvm-svn: 31679
2006-11-11 10:22:56 +00:00
Reid Spencer e183ed753f Instruction name changes.
llvm-svn: 31663
2006-11-11 01:04:13 +00:00
Reid Spencer 279a3aefc3 Enable path completion when typing the TESTSUITE= option by allowing the
test directory to precede the test suite name. That is, it will strip off
test/ from TESTSUITE which allows path completion from the command line.

llvm-svn: 31662
2006-11-11 01:02:45 +00:00
Chris Lattner e15018b8b7 enable this test, check ppc64 as well.
llvm-svn: 31657
2006-11-11 00:13:07 +00:00
Chris Lattner d530a503da This testcase is miscompiled by instcombine, reduced from 176.gcc
llvm-svn: 31652
2006-11-10 23:37:54 +00:00
Chris Lattner 82a85b66a3 new testcase
llvm-svn: 31643
2006-11-10 21:36:07 +00:00
Jim Laskey bc60d34748 Must have a frame pointer argument fixed. Now fails on PowerPC.
llvm-svn: 31639
2006-11-10 17:56:29 +00:00
Jim Laskey 11ba2bf721 Must have a frame pointer.
llvm-svn: 31638
2006-11-10 17:51:25 +00:00
Reid Spencer 8488eac9d7 This is XFAILed on i[0-9]86 systems not Linux
llvm-svn: 31636
2006-11-10 17:47:28 +00:00
Anton Korobeynikov a1561d4fdf Adding target triple to test
llvm-svn: 31630
2006-11-10 06:59:53 +00:00
Tanya Lattner 1537ecce93 xfail for llvmgcc3
llvm-svn: 31629
2006-11-10 04:53:50 +00:00
Chris Lattner 7a82314782 make this test more interesting
llvm-svn: 31619
2006-11-10 02:04:52 +00:00
Anton Korobeynikov b9c91c265c Fixing PR990: http://llvm.org/PR990.
This should unbreak csretcc on Linux & mingw targets. Several tests from
llvm-test should be also restored (fftbench, bigfib).

llvm-svn: 31613
2006-11-10 00:48:11 +00:00
Chris Lattner 8511bd95f5 new testcases for PR992/993
llvm-svn: 31609
2006-11-09 23:35:01 +00:00
Chris Lattner 92fc0c0651 new testcases
llvm-svn: 31585
2006-11-09 05:11:23 +00:00
Tanya Lattner 01167a7eff Should be xfailed for llvmgcc3
llvm-svn: 31578
2006-11-08 23:26:16 +00:00
Tanya Lattner 8a01d7a820 Should be xfailed for llvmgcc4 and NOT *. * means all platforms regardless of what llvmgcc you use.
llvm-svn: 31577
2006-11-08 23:25:58 +00:00
Reid Spencer eacb043c0a Ensure we don't regress on reading version 6 bytecode.
llvm-svn: 31574
2006-11-08 21:28:30 +00:00
Tanya Lattner fd6e54439a Should be xfailed for llvm-gcc3.4
llvm-svn: 31568
2006-11-08 20:16:05 +00:00
Jim Laskey 050747fc8c Make it work on Darwin.
llvm-svn: 31551
2006-11-08 16:38:45 +00:00
Reid Spencer fdff938a7e For PR950:
This patch converts the old SHR instruction into two instructions,
AShr (Arithmetic) and LShr (Logical). The Shr instructions now are not
dependent on the sign of their operands.

llvm-svn: 31542
2006-11-08 06:47:33 +00:00
Reid Spencer 41f6c7cfb2 XFAIL this on Linux until Jim gets Darwin ship shape.
llvm-svn: 31541
2006-11-08 06:43:16 +00:00
Chris Lattner 71cd8cf478 now that we handle single mbb loops better, one branch is allowed
llvm-svn: 31540
2006-11-08 06:42:42 +00:00
Chris Lattner 543572716b preincrement case we miss. xfail until we catch it
llvm-svn: 31534
2006-11-08 01:44:35 +00:00
Chris Lattner 2d7a5d9b5d scalarrepl should not split the two elements of the vsiidx array:
int func(vFloat v0, vFloat v1) {
	int ii;
	vSInt32 vsiidx[2];
	vsiidx[0] = _mm_cvttps_epi32(v0);
	vsiidx[1] = _mm_cvttps_epi32(v1);
	ii = ((int *) vsiidx)[4];
	return ii;
}

llvm-svn: 31523
2006-11-07 22:42:29 +00:00
Evan Cheng 847adeebb8 New test case.
llvm-svn: 31520
2006-11-07 22:18:14 +00:00
Andrew Lenharth 0e9c437f0b Got a little ahead of myself here
llvm-svn: 31502
2006-11-07 16:40:19 +00:00
Andrew Lenharth 3b18505d9f Fix this test
llvm-svn: 31501
2006-11-07 16:32:55 +00:00
Reid Spencer eb5bbd1ac8 Make some corrections to this test case.
llvm-svn: 31497
2006-11-07 07:58:02 +00:00
Reid Spencer 17ea4ec127 Ignore the Output dir.
llvm-svn: 31496
2006-11-07 07:34:56 +00:00
Reid Spencer 3b1d1b5262 Add a test case for making sure gdb can get a stack trace with our debug
information.

llvm-svn: 31495
2006-11-07 07:31:37 +00:00
Chris Lattner 5a2bc5c71b wrong bug #
llvm-svn: 31488
2006-11-07 04:12:03 +00:00
Chris Lattner e553746e49 new testcase
llvm-svn: 31486
2006-11-07 04:11:14 +00:00
Chris Lattner 569531ebbd xfail this for the 1.9 release. This is PR984.
llvm-svn: 31471
2006-11-05 23:27:36 +00:00
Reid Spencer de6bce9e02 Okay, need a pattern before and after the cast pattern.
llvm-svn: 31443
2006-11-04 01:11:19 +00:00
Reid Spencer 260a93abc2 Allow the regular expression to be extended by a parameter.
llvm-svn: 31442
2006-11-04 00:58:39 +00:00
Reid Spencer c533824a9e For PR950:
A little script to return 1 if it encounters any of the cast instructions
on the stdin.

llvm-svn: 31441
2006-11-04 00:49:52 +00:00
Andrew Lenharth 95a1c854d3 add a regression for memmove
llvm-svn: 31430
2006-11-03 22:45:09 +00:00
Chris Lattner 2d242aba18 this started failing due to Reid's changes in the bc format. insulate it
from future changes.

llvm-svn: 31428
2006-11-03 22:01:15 +00:00
Chris Lattner 67af941db1 new testcase
llvm-svn: 31426
2006-11-03 21:58:14 +00:00
Reid Spencer 68e1b240b4 Add some documentation about the arguments.
llvm-svn: 31372
2006-11-02 03:37:39 +00:00
Andrew Lenharth 96e251ca23 a regression :(
llvm-svn: 31370
2006-11-02 03:04:37 +00:00
Chris Lattner 57382066e8 new testcase
llvm-svn: 31368
2006-11-02 01:45:28 +00:00
Devang Patel 9db6b328cd Testcase from http://llvm.org/bugs/show_bug.cgi?id=979
llvm-svn: 31357
2006-11-01 22:25:48 +00:00
Chris Lattner 487fda068a extra pass is required now
llvm-svn: 31353
2006-11-01 18:30:25 +00:00
Chris Lattner 6b8fa7f6fd new testcase that crashes global opt, reduced from chomp
llvm-svn: 31351
2006-11-01 18:02:53 +00:00
Chris Lattner 268ae93f46 remove a testcase for a marginal feature
llvm-svn: 31345
2006-11-01 07:15:44 +00:00
Chris Lattner fdb64518d6 This test should compile down to one comparison, not two.
llvm-svn: 31329
2006-10-31 23:05:16 +00:00
Chris Lattner 13d62d5efa new testcase for PR882
llvm-svn: 31324
2006-10-31 20:11:14 +00:00
Andrew Lenharth c24140f8a7 make one giant add and sub tester
llvm-svn: 31321
2006-10-31 19:50:55 +00:00
Chris Lattner d739064b20 another testcase for PR977
llvm-svn: 31316
2006-10-31 18:56:24 +00:00
Chris Lattner 0f2e89fcf3 testcase for PR977
llvm-svn: 31314
2006-10-31 17:51:36 +00:00
Rafael Espindola 4e825336a0 add support for calling functions when the caller has variable sized objects
llvm-svn: 31312
2006-10-31 13:03:26 +00:00
Chris Lattner 59bf47217e add a note
llvm-svn: 31309
2006-10-31 06:26:10 +00:00
Chris Lattner c1d413972d new testcase
llvm-svn: 31308
2006-10-31 06:25:13 +00:00
Chris Lattner f66ab9f6f1 new testcase
llvm-svn: 31307
2006-10-31 06:15:14 +00:00
Chris Lattner cf8dc24305 fix this regtest
llvm-svn: 31291
2006-10-30 05:24:03 +00:00
Chris Lattner 4d377fec3b new testcase
llvm-svn: 31283
2006-10-29 21:20:56 +00:00
Chris Lattner 6f3c76384d new testcase
llvm-svn: 31280
2006-10-29 21:00:55 +00:00
Chris Lattner 5217111abe new testcase
llvm-svn: 31259
2006-10-28 17:04:16 +00:00
Nick Lewycky 1e075d9a40 Emitting raw bytecode is awfully rude. Add -disable-output.
Clarify the test.

llvm-svn: 31251
2006-10-28 02:34:41 +00:00
Chris Lattner b722c1375e new testcase
llvm-svn: 31241
2006-10-27 23:47:34 +00:00
Chris Lattner feaa76a3cc new testcase
llvm-svn: 31231
2006-10-27 21:52:39 +00:00
Chris Lattner 4b19a4b203 new testcase
llvm-svn: 31229
2006-10-27 21:32:10 +00:00
Evan Cheng 2252fb211a Add a new vextract test case.
llvm-svn: 31227
2006-10-27 21:05:18 +00:00
Reid Spencer a98dac4715 Improve cvs ignoring of test results.
llvm-svn: 31217
2006-10-27 16:43:34 +00:00
Reid Spencer 180a453a6b Add a run line to this test.
llvm-svn: 31211
2006-10-27 05:30:23 +00:00
Chris Lattner 1ddbd94a7b new testcase, should not reassoc fp vector
llvm-svn: 31199
2006-10-26 18:26:53 +00:00
Rafael Espindola a23166d6a4 initial support for frame pointers
llvm-svn: 31197
2006-10-26 13:31:26 +00:00
Reid Spencer 7e80b0b31e For PR950:
Make necessary changes to support DIV -> [SUF]Div. This changes llvm to
have three division instructions: signed, unsigned, floating point. The
bytecode and assembler are bacwards compatible, however.

llvm-svn: 31195
2006-10-26 06:15:43 +00:00
Nick Lewycky a1ce6dcbf3 Handling of setlt/le/gt/ge is broken at the moment; predsimplify removes
the call the pass2.

llvm-svn: 31192
2006-10-26 02:33:51 +00:00
Nick Lewycky 314ee3ecf0 This testcase was logically wrong! Fixing, and including the test for the
mistake that I made in the file too.

llvm-svn: 31190
2006-10-26 00:51:58 +00:00
Evan Cheng f8e7d8ce99 New shuffle test case.
llvm-svn: 31187
2006-10-25 21:59:00 +00:00
Chris Lattner f1a1773fb7 Allow this to pass on ppc
llvm-svn: 31178
2006-10-25 16:37:47 +00:00
Chris Lattner 07b93954d7 Modernize the testcase, allow it to pass on ppc
llvm-svn: 31177
2006-10-25 16:35:10 +00:00
Rafael Espindola bd29281e97 expand ISD::VACOPY
llvm-svn: 31170
2006-10-24 20:15:21 +00:00
Chris Lattner bc53eee534 new testcase
llvm-svn: 31163
2006-10-24 17:09:20 +00:00
Chris Lattner 793dab3c9c New testcase that crashes scalarrepl
llvm-svn: 31150
2006-10-24 06:26:08 +00:00
Evan Cheng 02a2a5eb3c Update test case.
llvm-svn: 31139
2006-10-23 21:47:11 +00:00
Rafael Espindola b43efe86f5 implement STRB and STRH
llvm-svn: 31138
2006-10-23 20:34:27 +00:00
Andrew Lenharth 3cd1a452c6 restore these tests
llvm-svn: 31133
2006-10-23 19:52:27 +00:00
Chris Lattner ce7906922d new testcase
llvm-svn: 31131
2006-10-23 18:54:35 +00:00
Evan Cheng 7838d655ca Fix test case.
llvm-svn: 31127
2006-10-23 05:11:09 +00:00
Nick Lewycky 2c734f3fc1 Handle "if ((x|y) != 0)" for ints like we do for bools. Fixes missed
optimization opportunity pointed out by Chris Lattner.

llvm-svn: 31118
2006-10-22 21:36:41 +00:00
Chris Lattner 76dd3bb34a new testcase for PR964
llvm-svn: 31117
2006-10-22 21:36:06 +00:00
Nick Lewycky f345008339 AllocaInst can't return a null pointer. Fixes missed optimization
opportunity pointed out by Andrew Lewycky.

llvm-svn: 31115
2006-10-22 19:53:27 +00:00
Bill Wendling c5c11a8070 Changed the pattern matching so that it will hopefully work on Linux.
llvm-svn: 31069
2006-10-20 18:15:24 +00:00
Devang Patel 4f4d3ec985 Test case for
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20061016/038780.html

llvm-svn: 31068
2006-10-20 18:06:37 +00:00
Chris Lattner 51e9632ea5 new testcase for PR957
llvm-svn: 31060
2006-10-20 00:41:31 +00:00
Bill Wendling b5d19927c9 Testcase for P926
llvm-svn: 31058
2006-10-19 23:21:59 +00:00
Devang Patel 5d6df959e3 It is OK to remove extra cast if operation is EQ/NE even though source
and destination sign may not match but other conditions are met.

llvm-svn: 31056
2006-10-19 20:59:13 +00:00
Devang Patel b42aef4925 Fix bug in PR454 resolution. Added new test case.
This fixes llvmAsmParser.cpp miscompile by llvm on PowerPC Darwin.

llvm-svn: 31053
2006-10-19 18:54:08 +00:00
Rafael Espindola ea67b973c2 print common symbols
llvm-svn: 31048
2006-10-19 13:30:40 +00:00
Rafael Espindola bad440742e add blx
llvm-svn: 31037
2006-10-18 16:21:43 +00:00
Rafael Espindola b21e8d2e12 implement CallingConv::Fast as CallingConv::C
llvm-svn: 31034
2006-10-18 12:03:07 +00:00
Chris Lattner 0ff257353c new testcase
llvm-svn: 31029
2006-10-18 01:21:35 +00:00
Chris Lattner 51746a3bee new testcase, miscompilation of llvm with itself.
llvm-svn: 31018
2006-10-17 21:23:20 +00:00
Rafael Espindola ba8f296167 expand ISD::SDIV, ISD::UDIV, ISD::SREM and ISD::UREM
llvm-svn: 31014
2006-10-17 21:05:33 +00:00
Rafael Espindola 99bf133d58 add FABSS and FABSD
llvm-svn: 31012
2006-10-17 20:33:13 +00:00
Rafael Espindola 391af581f0 cleanup some tests
llvm-svn: 31010
2006-10-17 20:20:07 +00:00
Rafael Espindola 2d7d14262a remove extra [] in stores
llvm-svn: 31008
2006-10-17 18:29:14 +00:00
Chris Lattner b7f67a23e0 new testcase
llvm-svn: 31005
2006-10-17 18:14:39 +00:00
Rafael Espindola 19398ec86e initial implementation of addressing mode 5
llvm-svn: 31002
2006-10-17 18:04:53 +00:00
Rafael Espindola feb50708eb add the immediate to the Offset in eliminateFrameIndex
llvm-svn: 30998
2006-10-17 14:34:02 +00:00
Rafael Espindola 418c8e69bb add FSTD and FSTS
llvm-svn: 30996
2006-10-17 13:36:07 +00:00
Rafael Espindola afdd47ace4 add fdivs e fdivd
llvm-svn: 30988
2006-10-16 21:50:04 +00:00
Rafael Espindola f719c5f43d expand ISD::SHL_PARTS, ISD::SRA_PARTS and ISD::SRL_PARTS
llvm-svn: 30987
2006-10-16 21:10:32 +00:00
Rafael Espindola 677ee8390d implement LDRB, LDRSB, LDRH and LDRSH
llvm-svn: 30976
2006-10-16 17:17:22 +00:00
Rafael Espindola 595dc4c884 implement smull and umull
llvm-svn: 30975
2006-10-16 16:33:29 +00:00
Chris Lattner 7fce911edd testcase that causes the asmparser to assert
llvm-svn: 30969
2006-10-15 23:26:28 +00:00
Rafael Espindola 4c1baf1528 fix some fp condition codes
use non trapping comparison instructions

llvm-svn: 30962
2006-10-14 13:42:53 +00:00
Evan Cheng 5384fc9676 One cyclic dag a day is good for ya...
llvm-svn: 30960
2006-10-14 08:35:02 +00:00
Chris Lattner d0cc3bdfc3 testcase for recent dag combiner patch. Before the entry bb was:
_test:
        stwu r1, -80(r1)
        stw r1, 76(r1)
        mflr r11
        stw r11, 88(r1)
        rlwinm r2, r4, 0, 30, 31
        cmplwi cr7, r2, 2
        mfcr r2
        rlwinm r2, r2, 30, 31, 31
        cmplwi cr0, r2, 0
        bne cr0, LBB1_2 ;UnifiedReturnBlock

after it is:

_test:
        stwu r1, -80(r1)
        stw r1, 76(r1)
        mflr r11
        stw r11, 88(r1)
        rlwinm r2, r4, 0, 30, 31
        cmplwi cr0, r2, 2
        bgt cr0, LBB1_2 ;UnifiedReturnBlock

llvm-svn: 30954
2006-10-14 03:40:02 +00:00
Chris Lattner 52e298b700 testcase for recent selectiondag patch
llvm-svn: 30949
2006-10-13 23:54:16 +00:00
Rafael Espindola 5ab3166f74 add FNEGS and FNEGD
llvm-svn: 30932
2006-10-13 17:37:35 +00:00
Rafael Espindola d6050c3149 add SBCS and SUBS
llvm-svn: 30930
2006-10-13 17:19:20 +00:00
Rafael Espindola 79d9807c87 implement calls to functions that return long
llvm-svn: 30929
2006-10-13 16:47:22 +00:00
Rafael Espindola 3874a168d0 implement unordered floating point compares
llvm-svn: 30928
2006-10-13 13:14:59 +00:00
Chris Lattner ce34aa8fd7 new testcase
llvm-svn: 30919
2006-10-12 20:56:15 +00:00
Evan Cheng 88bf1625fa Add another cyclic dag test case.
llvm-svn: 30918
2006-10-12 20:38:45 +00:00
Evan Cheng e415f196a3 Update tests.
llvm-svn: 30895
2006-10-12 01:42:03 +00:00
Chris Lattner 4b77688d14 new testcase
llvm-svn: 30893
2006-10-11 22:07:38 +00:00
Chris Lattner ddf7347283 add test for mdef in a let
llvm-svn: 30886
2006-10-11 18:12:14 +00:00
Jim Laskey 5684eda9e8 Explict processor.
llvm-svn: 30882
2006-10-11 17:14:14 +00:00
Jim Laskey b41de440b5 Make sure combiner alias analysis does it's thing.
llvm-svn: 30879
2006-10-11 13:42:49 +00:00
Evan Cheng ac72dc81f4 Test case for the recently fixed FindModifiedNodeSlot bug.
llvm-svn: 30877
2006-10-11 07:01:37 +00:00
Chris Lattner a821fe2da1 new testcase, this should turn into zap
llvm-svn: 30874
2006-10-11 05:10:19 +00:00
Andrew Lenharth a6bbf33cbf Jimptables working again on alpha.
As a bonus, use the GOT node instead of the AlphaISD::GOT for internal stuff.

llvm-svn: 30873
2006-10-11 04:29:42 +00:00
Chris Lattner ee0435680b Both of these functions should turn into cmpbge instructions, even though
the second has an and of 254 not 255.

llvm-svn: 30870
2006-10-11 03:59:48 +00:00
Chris Lattner 291a868823 new testcase for zap generation, from the alpha readme
llvm-svn: 30865
2006-10-11 01:47:08 +00:00
Rafael Espindola 8429e1f6c3 uint <-> double conversion
llvm-svn: 30862
2006-10-10 20:38:57 +00:00
Rafael Espindola b5f1ff336a add fp sub
llvm-svn: 30859
2006-10-10 19:35:01 +00:00
Rafael Espindola 57d109fb08 add double <-> int conversion
llvm-svn: 30858
2006-10-10 18:55:14 +00:00
Rafael Espindola d1a4ea41c9 compare doubles
llvm-svn: 30856
2006-10-10 16:33:47 +00:00
Rafael Espindola 639450ea83 add some tests for floating point compare
llvm-svn: 30855
2006-10-10 14:26:06 +00:00
Evan Cheng 6d37137e4f Add test case from PR940.
llvm-svn: 30852
2006-10-10 04:33:46 +00:00
Evan Cheng 16488647d8 shufps with load folding is better than movaps; movsd.
llvm-svn: 30849
2006-10-09 22:42:31 +00:00
Rafael Espindola 4d03bf8f43 add some tests for floating point arithmetic
llvm-svn: 30840
2006-10-09 19:15:17 +00:00
Rafael Espindola 9e29ec371a add float -> double and double -> float conversion
llvm-svn: 30835
2006-10-09 17:50:29 +00:00
Chris Lattner fb257818c4 xfail this until andrew has a chance to implement the alpha TM method.
llvm-svn: 30833
2006-10-09 17:34:40 +00:00
Rafael Espindola 0e44ed293f add a test for adds adcs
llvm-svn: 30832
2006-10-09 17:30:15 +00:00
Chris Lattner 7440e23eb2 new testcase for PR892
llvm-svn: 30824
2006-10-08 23:52:06 +00:00
Chris Lattner 7a36ae4361 new testcase for SROA for stuff like "union { int*, float* }".
llvm-svn: 30822
2006-10-08 23:27:37 +00:00
Chris Lattner f8fa10a6bb new testcase we miscompile
llvm-svn: 30816
2006-10-07 21:54:08 +00:00
Rafael Espindola b50938866b implement FUITOS and FUITOD
llvm-svn: 30803
2006-10-07 14:24:52 +00:00
Rafael Espindola 58c368bc4f implement FLDD
llvm-svn: 30802
2006-10-07 14:03:39 +00:00
Rafael Espindola 671f25281d add support for calling functions that return double
llvm-svn: 30771
2006-10-06 19:10:05 +00:00
Rafael Espindola ef01656ea4 fix some bugs affecting functions with no arguments
llvm-svn: 30767
2006-10-06 17:26:30 +00:00
Rafael Espindola 5fe7909e18 add support for calling functions that have double arguments
llvm-svn: 30765
2006-10-06 12:50:22 +00:00
Rafael Espindola e04df41ca2 implement a ArgumentLayout class to factor code common to LowerFORMAL_ARGUMENTS and LowerCALL
implement FMDRR
add support for f64 function arguments

llvm-svn: 30754
2006-10-05 16:48:49 +00:00
Chris Lattner 3d5e9818bd new testcase
llvm-svn: 30751
2006-10-05 06:51:54 +00:00
Andrew Lenharth 16b8f95831 Check that jump tables wind up in the rodata section
llvm-svn: 30747
2006-10-05 03:27:52 +00:00
Chris Lattner bfe59e87e5 Verify that jump tables are emitted to the same section as the function is,
when codegen'ing in pic mode.  This fixes a miscompilation of a switch stmt
in a template, as the template goes to a non-.text section.

llvm-svn: 30743
2006-10-05 03:12:36 +00:00
Chris Lattner 1e21d3a5ae pattern match min/max nodes
llvm-svn: 30718
2006-10-04 06:56:02 +00:00
Rafael Espindola 68d238801c Implement floating point constants
llvm-svn: 30704
2006-10-03 17:27:58 +00:00
Chris Lattner 70a12ec8f8 testcase for PR933
llvm-svn: 30702
2006-10-03 17:17:54 +00:00
Nick Lewycky 755f801adc Move break-crit-edges before the predicate simplifier. Allows us to
optimize in more cases.

llvm-svn: 30699
2006-10-03 14:52:23 +00:00
Chris Lattner 2a7e3c29a1 New testcase for PR932
llvm-svn: 30695
2006-10-03 07:00:13 +00:00
Rafael Espindola d55c0a41df fix the names of the 64bit fp register
initial support for returning 64bit floating point numbers

llvm-svn: 30692
2006-10-02 19:30:56 +00:00
Chris Lattner bfc049ae3f New testcase
llvm-svn: 30683
2006-10-01 22:35:45 +00:00
Chris Lattner c82477f3a8 new testcase, malloc should be promoted to [2 x double].
llvm-svn: 30681
2006-10-01 19:39:45 +00:00
Rafael Espindola 53f78be49e add floating point registers
implement SINT_TO_FP

llvm-svn: 30673
2006-09-29 21:20:16 +00:00
Chris Lattner 754c8cf702 Adjust this to the wonky syntax that GCC expects.
llvm-svn: 30670
2006-09-29 17:34:56 +00:00
Reid Spencer 5f2b79ec4c Use the -emit-llvm switch to generate LLVM assembly that can be parsed
by the test case.

llvm-svn: 30654
2006-09-28 21:36:21 +00:00
Reid Spencer 4fde7faeb0 Add a test case for PR902.
llvm-svn: 30653
2006-09-28 21:20:05 +00:00
Chris Lattner a3542a82be new testcase
llvm-svn: 30651
2006-09-28 20:48:17 +00:00
Chris Lattner 83fb402291 Testcase for PR924
llvm-svn: 30649
2006-09-28 18:58:02 +00:00
Jim Laskey 3bbf884855 Make sure C++ protection shows up in debug info
llvm-svn: 30626
2006-09-27 16:55:19 +00:00
Devang Patel ce73ac3089 Add http://llvm.org/bugs/show_bug.cgi?id=923 test case.
llvm-svn: 30622
2006-09-27 02:58:44 +00:00
Chris Lattner ae7ff8b0c6 test that the no_dead_strip directive is emitted on darwin-x86
llvm-svn: 30607
2006-09-26 03:44:20 +00:00
John Criswell 437d9a3fb2 Regression test for PR#922.
llvm-svn: 30599
2006-09-25 19:12:01 +00:00
Andrew Lenharth 6d8e227ac7 Fix
llvm-svn: 30596
2006-09-25 14:04:53 +00:00
Andrew Lenharth 3cec4952ab basic jump table test
llvm-svn: 30592
2006-09-24 19:42:02 +00:00
Bill Wendling fc0e612b65 Use "%llvmgxx" instead of "llvm-g++".
llvm-svn: 30580
2006-09-22 07:09:01 +00:00
Nate Begeman 9007f5a48d Testcase for better rotate left and mask support
llvm-svn: 30579
2006-09-22 05:49:57 +00:00
Bill Wendling fe95123f58 Regression testcase for PR855.
llvm-svn: 30578
2006-09-22 05:34:25 +00:00
Rafael Espindola 7b700e517a more condition codes
llvm-svn: 30567
2006-09-21 13:06:26 +00:00
Rafael Espindola 0c71a5adc8 if a constant can't be an immediate, add it to the constant pool
llvm-svn: 30566
2006-09-21 11:29:52 +00:00
Chris Lattner 6597e053e1 new testcase
llvm-svn: 30554
2006-09-21 05:11:01 +00:00
Nick Lewycky d74c55f483 Once we're down to "setcc type constant1, constant2", at least come up
with the right answer.

llvm-svn: 30550
2006-09-20 23:02:24 +00:00
Nick Lewycky cfff1c3f86 Use a total ordering to compare instructions.
Fixes infinite loop in resolve().

llvm-svn: 30540
2006-09-20 17:04:01 +00:00
Andrew Lenharth b04e899bb4 catch another constant
llvm-svn: 30533
2006-09-20 15:04:55 +00:00
Chris Lattner 2b09e1d2fc new testcase
llvm-svn: 30516
2006-09-20 06:40:37 +00:00
Andrew Lenharth 731f2d52a3 Inspired by the linux kernel, the more we keep adds in the pointer realm, the better pointer analysis works.
llvm-svn: 30495
2006-09-19 18:23:39 +00:00
Rafael Espindola f7d4a9900c Implement a MachineFunctionPass to fix the mul instruction
llvm-svn: 30485
2006-09-19 15:49:25 +00:00
Chris Lattner dc892c6221 number test right
llvm-svn: 30484
2006-09-19 06:19:19 +00:00
Chris Lattner aa0ad47e97 make this harder
llvm-svn: 30481
2006-09-19 06:17:55 +00:00
Chris Lattner db4fbdd1a6 new testcases
llvm-svn: 30480
2006-09-19 06:16:46 +00:00
Nick Lewycky 5cc1e9b51d Enable dejagnu tests for predicate simplifier.
llvm-svn: 30475
2006-09-19 00:31:54 +00:00
Chris Lattner 165f344721 new testcase
llvm-svn: 30471
2006-09-18 22:28:07 +00:00
Chris Lattner 3425123ced new testcase
llvm-svn: 30464
2006-09-18 18:07:51 +00:00
Chris Lattner 5c1bfd0311 new testcase
llvm-svn: 30458
2006-09-18 07:01:39 +00:00
Chris Lattner 52d170fc94 new testcase
llvm-svn: 30455
2006-09-18 05:25:10 +00:00
Chris Lattner 00a07af638 New testcase, can be an srl instead of sra
llvm-svn: 30449
2006-09-18 04:31:18 +00:00
Chris Lattner 5772ba4f50 Testcase for PR913
llvm-svn: 30404
2006-09-16 03:13:22 +00:00
Chris Lattner 1bcb3d16cc xfail this for now
llvm-svn: 30398
2006-09-15 17:25:22 +00:00
Chris Lattner 84890d2da1 The inliner strips dead allocas now. Add a use to allow this test to
test the right thing.

llvm-svn: 30393
2006-09-15 16:53:11 +00:00
Chris Lattner 4c4e077546 New testcase
llvm-svn: 30378
2006-09-14 21:10:06 +00:00
Chris Lattner 73eedf0a05 new testcase
llvm-svn: 30302
2006-09-13 19:23:43 +00:00
Chris Lattner 8ed3cd4e90 The sense of this branch was backwards
llvm-svn: 30296
2006-09-13 17:58:57 +00:00
Chris Lattner 256aeb321b new testcase
llvm-svn: 30289
2006-09-13 05:59:25 +00:00
Chris Lattner 7789e938b6 New testcase
llvm-svn: 30287
2006-09-13 04:43:26 +00:00
Chris Lattner ecd9bfb303 new testcase
llvm-svn: 30282
2006-09-13 03:21:27 +00:00
Chris Lattner 726bc70c43 testcase for PR908
llvm-svn: 30274
2006-09-12 19:16:04 +00:00
Chris Lattner 2655c59a7b Testcase that crashes the C++ FE.
llvm-svn: 30273
2006-09-12 16:28:14 +00:00
Chris Lattner 3592523342 new testcase for PR906
llvm-svn: 30267
2006-09-11 22:48:23 +00:00
Chris Lattner 3faf86e4f4 new testcase for PR905
llvm-svn: 30265
2006-09-11 21:41:56 +00:00
Evan Cheng e9d1a2fcae Rename a test-not-cmp.ll to cmp-test.ll; add a test.
llvm-svn: 30243
2006-09-11 02:33:29 +00:00
Chris Lattner 33ce390fce add a testcase for this commit: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20050606/026673.html
llvm-svn: 30238
2006-09-10 18:52:25 +00:00
Nick Lewycky 9a22d7b60f Replace EquivalenceClasses with a custom-built data structure. Many common
operations (like findProperties) should be faster, at the expense of
unionSets being slower in cases that are rare in practise.

Don't erase a dead Instruction. This fixes a memory corruption issue.

llvm-svn: 30235
2006-09-10 02:27:07 +00:00
Chris Lattner 0d38df3e87 new testcase
llvm-svn: 30233
2006-09-09 22:02:25 +00:00
Chris Lattner b6118b0ad6 new testcase
llvm-svn: 30229
2006-09-09 20:26:04 +00:00
Chris Lattner a4b7de8669 (indirect) test for the __builtin_powi builtin which we now support.
llvm-svn: 30224
2006-09-09 06:02:16 +00:00
Rafael Espindola d11fb5d13b implement shl and sra
llvm-svn: 30191
2006-09-08 17:36:23 +00:00
Rafael Espindola 384a4a9480 fix select.ll to always test a select node
llvm-svn: 30187
2006-09-08 12:52:50 +00:00
Rafael Espindola 778769aafb implement unconditional branches
fix select.ll

llvm-svn: 30186
2006-09-08 12:47:03 +00:00
Evan Cheng 8a29d206c2 New test case.
llvm-svn: 30179
2006-09-08 07:24:20 +00:00
Evan Cheng 5988288494 Add a new test case for 'undef' shuffles.
llvm-svn: 30172
2006-09-08 01:54:32 +00:00
Chris Lattner dc22b97b9a new testcase
llvm-svn: 30157
2006-09-07 21:29:32 +00:00
Chris Lattner f9ed9f60ef This fails
llvm-svn: 30148
2006-09-07 17:43:59 +00:00
Chris Lattner 6a7b824ded New testcase for a switch lowering bug.
llvm-svn: 30141
2006-09-07 01:59:05 +00:00
Chris Lattner 0b5fb52b0e testcase, ensure this never breaks.
llvm-svn: 30137
2006-09-06 21:54:59 +00:00
Chris Lattner 65df0ffadd make this harder
llvm-svn: 30120
2006-09-05 20:27:06 +00:00
Rafael Espindola 8386105f3f add support for returning 64bit values
llvm-svn: 30103
2006-09-04 19:05:01 +00:00
Rafael Espindola 5328ba96e1 add the SETULT condition code
llvm-svn: 30067
2006-09-03 13:19:16 +00:00
Chris Lattner 798e9658d7 Testcase (distilled from crafty) that crashed the local RA on X86.
llvm-svn: 30063
2006-09-03 07:14:47 +00:00
Owen Anderson bcb301c4a2 Make this testcase actually recursive. I accidentally committed the wrong copy last time.
llvm-svn: 30059
2006-09-02 22:46:58 +00:00
Owen Anderson 19b80e76df Make ArgumentPromotion handle recursive functions that pass pointers in their recursive calls.
llvm-svn: 30057
2006-09-02 21:19:44 +00:00
Rafael Espindola c585b6919b add more condition codes
llvm-svn: 30056
2006-09-02 20:24:25 +00:00
Nick Lewycky 8e5599354a Improve handling of SelectInst.
Reorder operations to remove duplicated work.
Fix to leave floating-point types out of the optimization.
Add tests to predsimplify.ll for SwitchInst and SelectInst handling.

llvm-svn: 30055
2006-09-02 19:40:38 +00:00
Evan Cheng 1f15185cbc Another "cyclic DAG" test case.
llvm-svn: 30043
2006-09-01 23:50:17 +00:00
Chris Lattner 315f02a6e5 Make this harder
llvm-svn: 30036
2006-09-01 22:07:00 +00:00
Chris Lattner 4b975e8eea simple multiclass example
llvm-svn: 30028
2006-09-01 21:14:37 +00:00
Nick Lewycky a24fdaea0b This program crashes the PredicateSimplifier. Not marked XFAIL because
the PredicateSimplifier is skipped in make check anyways.

llvm-svn: 29992
2006-08-31 03:13:05 +00:00
Chris Lattner f5da261701 Bugfix for recent coallescer crash
llvm-svn: 29990
2006-08-30 23:03:35 +00:00
Chris Lattner faa6355510 new testcase for pr687
llvm-svn: 29967
2006-08-29 23:09:59 +00:00
Evan Cheng 8dd79a4c14 This is also a 32-bit only test. x86-64 would pass fp parameters through XMM registers.
llvm-svn: 29964
2006-08-29 22:01:39 +00:00
Evan Cheng 65c4409e63 Fix test case so it passes on x86-64.
llvm-svn: 29963
2006-08-29 21:49:58 +00:00
Evan Cheng abb02a35cf Undo xfail.
llvm-svn: 29958
2006-08-29 18:49:41 +00:00
Nick Lewycky b2e8ae1700 Add PredicateSimplifier pass. Collapses equal variables into one form
and simplifies expressions. This implements the optimization described
in PR807.

llvm-svn: 29947
2006-08-28 22:44:55 +00:00
Chris Lattner ac23219233 Update tests now that opt no longer reads .ll files
llvm-svn: 29927
2006-08-27 22:47:14 +00:00
Chris Lattner 358fe85ab4 Adjust tests now that opt doesn't read .ll files.
llvm-svn: 29926
2006-08-27 22:44:20 +00:00
Chris Lattner c7cff24f40 opt no longer reads .ll files. Run llvm-as explicitly.
llvm-svn: 29924
2006-08-27 22:41:58 +00:00
Chris Lattner 77443b7dc0 Move this test from Codegen/PowerPC to CodeGen/Generic. It fails on ia64,
but that's not the ppc backend's fault.

llvm-svn: 29914
2006-08-27 20:52:00 +00:00
Evan Cheng f0b7f06b63 Improved codegen due to Chris' live interval joining changes.
llvm-svn: 29899
2006-08-26 07:38:36 +00:00
Rafael Espindola 9a173c937a test case for varargs functions
llvm-svn: 29877
2006-08-25 17:57:36 +00:00
Owen Anderson e001d811ba Implement unrolling of multiblock loops. This significantly improves the
utility of the LoopUnroll pass.

Also, add a testcase for multiblock-loop unrolling.

llvm-svn: 29859
2006-08-24 21:28:19 +00:00
Rafael Espindola e08b9853cc initial support for branches
llvm-svn: 29854
2006-08-24 13:45:55 +00:00
Rafael Espindola 7930e898b2 run llc with -march=arm in select.ll
llvm-svn: 29821
2006-08-22 16:19:54 +00:00
Chris Lattner 3b944e97af This passes.
llvm-svn: 29813
2006-08-22 06:43:24 +00:00
Reid Spencer f69a17123b Use the correct syntax.
Note to self: test before committing things!

llvm-svn: 29810
2006-08-22 05:40:51 +00:00
Reid Spencer cc2c12feef Add a simple RUN line so this doesn't always fail. XFAIL this until
Rafael can get a chance to fix it.

llvm-svn: 29809
2006-08-22 05:37:43 +00:00
Bill Wendling 568dca96c9 Modified the RUN line from "analyze ..." to "opt -analyze ..." because
Reid removed the analyze tool and incorporated it into the opt tool.

llvm-svn: 29807
2006-08-22 04:37:51 +00:00
Rafael Espindola d0dee77718 initial support for select
llvm-svn: 29802
2006-08-21 22:00:32 +00:00
Bill Wendling 04f2246400 Added a check so that if we have two machine instructions in this form
MOV R0, R1
    MOV R1, R0

the second machine instruction is removed. Added a regression test.

llvm-svn: 29792
2006-08-21 07:33:33 +00:00
Reid Spencer 378f7d5d20 For PR872:
Shrinkify LLVM's footprint by removing the analyze tool and moving its
functionality into the opt tool. THis eliminates one of the largest tools
from LLVM and doesn't make opt much bigger because it already included
most of the analysis passes.  To get the old analyze functionality pass
the -analyze option to opt. Note that the integeration here is dead
simple. The "main" of analyze was just copied to opt and invoked if the
-analyze option was given. There may be opportunities for further
integration such as removing the distinction between transform passes
and analysis passes.

To use the analysis functionality, if you previously did this:
  analyze $FNAME -domset -disable-verify
you would now do this:
  opt -analyze $FNAME -domset -disable-verify
Pretty simple.

llvm-svn: 29762
2006-08-18 06:34:30 +00:00
Chris Lattner ac2610a94a Temporarily xfail this test, evan will look at it in a week or so.
llvm-svn: 29760
2006-08-18 00:18:38 +00:00
Rafael Espindola c3ed77e1b9 add a "load effective address"
llvm-svn: 29748
2006-08-17 17:09:40 +00:00
Evan Cheng 0742d58864 Another cyclic dag test case.
llvm-svn: 29742
2006-08-17 00:00:46 +00:00
Chris Lattner 75b5713bc8 New testcase
llvm-svn: 29714
2006-08-15 23:45:28 +00:00
Chris Lattner c5bbda70e3 new testcase from PR877
llvm-svn: 29672
2006-08-14 21:37:32 +00:00
Rafael Espindola 157971b04a select code like
ldr rx, [ry, #offset]

llvm-svn: 29664
2006-08-14 19:01:24 +00:00
Chris Lattner 54faca1d70 New testcase, this used to take hours to loopsimplify.
llvm-svn: 29646
2006-08-12 05:23:27 +00:00
Chris Lattner 25d0d5c9e0 New testcase
llvm-svn: 29606
2006-08-11 16:46:38 +00:00
Rafael Espindola f5ce475540 fix the spill code
llvm-svn: 29583
2006-08-09 16:41:12 +00:00
Rafael Espindola 39083e7836 initial support for variable number of arguments
llvm-svn: 29567
2006-08-08 13:02:29 +00:00
Evan Cheng bb7dc538c7 New test case.
llvm-svn: 29558
2006-08-07 23:58:47 +00:00
Chris Lattner cd4ff2b36f converge on the right number of %'s :)
llvm-svn: 29527
2006-08-04 18:09:27 +00:00
Reid Spencer 661f62625a Use the %llvm-gcc% variable to find llvm-gcc for those of us that don't
have it in our path and to ensure it uses the configured llvm-gcc not just
any one randomly placed in the path.

llvm-svn: 29522
2006-08-04 17:35:18 +00:00
Rafael Espindola 2bcb8c0f05 use a 'register pressure reducing' scheduler
make sure only one move is used in a hello world

llvm-svn: 29520
2006-08-04 12:48:42 +00:00
Chris Lattner 64de8fb7e8 new testcase for pr867
llvm-svn: 29514
2006-08-03 21:39:41 +00:00
Jim Laskey 79bf4c67fc Applying for all.
llvm-svn: 29512
2006-08-03 20:56:35 +00:00
Jim Laskey d9f2969cdb Make all the schedulers continue to work.
llvm-svn: 29510
2006-08-03 20:49:29 +00:00
Chris Lattner aba76b76b1 If dejagnu is not found, tell the user instead of bombing out with an
obscure error.

llvm-svn: 29421
2006-08-01 00:07:58 +00:00
Chris Lattner 9e3d4c2693 New testcase for PR850.
llvm-svn: 29419
2006-07-31 23:25:17 +00:00
Chris Lattner 8f5dcd716a testcase for PR854.
llvm-svn: 29412
2006-07-31 17:31:48 +00:00
Chris Lattner f0fe42350f Testcase for GCC bug28417, ensuring that we don't start getting it wrong
somehow.

llvm-svn: 29410
2006-07-30 17:46:37 +00:00
Chris Lattner 47925f2e6c New testcase for PR853
llvm-svn: 29407
2006-07-29 01:50:53 +00:00
Chris Lattner 698913e6c5 allow this to pass on non-x86 machines
llvm-svn: 29303
2006-07-26 20:44:24 +00:00
Chris Lattner da72978e1e Don't test an example
llvm-svn: 29301
2006-07-26 20:33:20 +00:00
Rafael Espindola 8902fd702b implement function calling of functions with up to 4 arguments
llvm-svn: 29274
2006-07-25 20:17:20 +00:00
Evan Cheng d5b5c97364 XFAIL for now.
llvm-svn: 29272
2006-07-24 07:37:33 +00:00
Evan Cheng f406ae17a1 New vector shuffle test case.
llvm-svn: 29237
2006-07-20 23:51:01 +00:00
Evan Cheng 1504b298ec Fix a broken test.
llvm-svn: 29236
2006-07-20 23:50:13 +00:00
Chris Lattner 9b10424aa8 New testcase for PR833
llvm-svn: 29225
2006-07-20 19:04:36 +00:00
Chris Lattner 4f501620ff new testcase
llvm-svn: 29207
2006-07-19 17:14:23 +00:00
Jim Laskey 611ceb7848 Regression test for PR834.
llvm-svn: 29206
2006-07-19 16:37:15 +00:00
Chris Lattner c7012cc9e9 testcase for PR827
llvm-svn: 29119
2006-07-12 18:27:13 +00:00
Chris Lattner ed5a82b63e Testcase for PR828.
llvm-svn: 29117
2006-07-12 16:59:09 +00:00
Evan Cheng e910c355d3 Fix test failure on non-Apple systems.
llvm-svn: 29116
2006-07-12 06:48:47 +00:00
Chris Lattner 7a00b86720 Testcase for PR826
llvm-svn: 29111
2006-07-11 20:29:21 +00:00
Chris Lattner 6f5d3531c7 New testcase for PR825.
llvm-svn: 29100
2006-07-11 02:52:37 +00:00
Chris Lattner 14f6c70eeb This is fixed
llvm-svn: 29098
2006-07-11 01:39:30 +00:00
Evan Cheng fbc80692e4 Update.
llvm-svn: 29092
2006-07-10 21:49:09 +00:00
Chris Lattner a0449c2936 New testcase for folding bswaps into i16/i32 loads and stores.
llvm-svn: 29088
2006-07-10 20:53:53 +00:00
Chris Lattner 3f8aee5fdf Add tests for 16-bit byteswaps.
llvm-svn: 29086
2006-07-10 20:25:01 +00:00
Owen Anderson 638d6b914d Add a test for the LCSSA issue I just fixed.
llvm-svn: 29077
2006-07-09 08:17:30 +00:00
Chris Lattner c20367a548 Testcase for PR820
llvm-svn: 29070
2006-07-07 21:36:42 +00:00
Evan Cheng 7f6b788f24 Add a 64-bit test case.
llvm-svn: 29069
2006-07-07 21:36:24 +00:00
Evan Cheng 6e69d60fb0 New vector shuffle test case.
llvm-svn: 29060
2006-07-07 17:54:24 +00:00
Evan Cheng c2c6a921be Update
llvm-svn: 29059
2006-07-07 17:54:10 +00:00
Chris Lattner a5b884caa2 Xfail this
llvm-svn: 29040
2006-07-07 04:43:24 +00:00
Evan Cheng 6e0af524c4 Update test case.
llvm-svn: 28994
2006-07-05 20:46:27 +00:00
Andrew Lenharth 3f3cc10d88 Legalize does not handle this correctly
llvm-svn: 28991
2006-07-03 22:46:02 +00:00
Andrew Lenharth c327932ac1 not really XFailing these, as only incompleteness is wrong in the graph
llvm-svn: 28967
2006-06-28 20:14:30 +00:00
Andrew Lenharth 48b2b0c444 change I flag on test
llvm-svn: 28966
2006-06-28 20:07:36 +00:00
Chris Lattner 924963b604 Testcase that crashes the ppc backend.
llvm-svn: 28964
2006-06-28 18:29:33 +00:00
Chris Lattner 4c6f86816e Infinite loop in instcombine that nate hit.
llvm-svn: 28960
2006-06-28 17:34:28 +00:00
Chris Lattner 5f49a00b9f New testcase, reduced by nate, which crashes DSE
llvm-svn: 28949
2006-06-27 23:47:39 +00:00
Owen Anderson c3b1a220a7 Testcase that Nate found where LoopUnswitch chokes on eliminating a dead case
from a switch instruction.

llvm-svn: 28946
2006-06-27 22:24:59 +00:00
Chris Lattner 66e9513625 testcase that crashes dead arg elim.
llvm-svn: 28942
2006-06-27 20:58:41 +00:00
Rafael Espindola a88966fd5e initial implementation of ARMRegisterInfo::eliminateFrameIndex
fixes test/Regression/CodeGen/ARM/ret_arg5.ll

llvm-svn: 28854
2006-06-18 00:08:07 +00:00
Chris Lattner 0b2652027b Just a minor tweak so you can run things like:
TestRunner.sh Foo/Bar/test.ll

instead of just

TestRunner.sh test.ll

which is convenient in conjunction with find.

llvm-svn: 28852
2006-06-17 08:06:33 +00:00
Chris Lattner fefc14d891 new testcase that crashes indvars
llvm-svn: 28849
2006-06-17 01:01:30 +00:00
Jim Laskey c1066841bd PR# not associated with XFAIL
llvm-svn: 28822
2006-06-16 16:57:43 +00:00
Jim Laskey fd4b2e234a debug info is alive again
llvm-svn: 28821
2006-06-16 16:50:24 +00:00
Chris Lattner 9cce4a54aa This test isn't implemented yet
llvm-svn: 28820
2006-06-16 16:36:50 +00:00
Chris Lattner e9ad44e8b1 New testcase, the linker is not merging alignments right.
llvm-svn: 28811
2006-06-16 01:20:58 +00:00
Jim Laskey 9095eec0a2 Make sure global doubles and vectors are aligned properly.
llvm-svn: 28805
2006-06-15 19:35:07 +00:00
Chris Lattner c09a6ea07a new testcase, instcombine should turn these into llvm.bswap intrinsics.
llvm-svn: 28802
2006-06-15 19:06:42 +00:00
Chris Lattner 4fce8940b0 new testcase, not currently working.
llvm-svn: 28786
2006-06-14 21:24:57 +00:00
Chris Lattner d3c7db5fa8 new testcase, distilled from povray
llvm-svn: 28778
2006-06-14 04:45:45 +00:00
Jim Laskey a48a176321 My original test case was bogus. Reverting to crasher case.
llvm-svn: 28767
2006-06-13 15:22:49 +00:00
Jim Laskey fe25b30c6d Tests to make sure that ComputeMaskedBits discards bits for shifts.
llvm-svn: 28766
2006-06-13 13:10:44 +00:00
Chris Lattner 9c4ddf8314 TEstcase that makes simplifycfg infloop.
llvm-svn: 28757
2006-06-12 20:17:44 +00:00
Chris Lattner eecff6c21f New testcase that crashes llc
llvm-svn: 28754
2006-06-12 18:24:32 +00:00
Owen Anderson ecb8036e60 Make sure that LCSSA works properly when it encounters an exit block that has
more than one predecessor inside the loop.

llvm-svn: 28749
2006-06-12 07:05:47 +00:00
Chris Lattner 38b318d436 Add new testcase
llvm-svn: 28732
2006-06-08 18:26:48 +00:00
Chris Lattner 1b66dd690c New testcase, using "AX" as i32.
llvm-svn: 28730
2006-06-08 18:20:13 +00:00
Owen Anderson 9e69c67ebe Update the regression tests, and add a new one encountered while compiling crtend.
llvm-svn: 28681
2006-06-04 00:56:30 +00:00
Rafael Espindola a124c91242 added some tests for argument passing
llvm-svn: 28644
2006-06-01 22:01:25 +00:00
Chris Lattner 3f1c2c0e66 testcase for the recent inliner improvement.
llvm-svn: 28643
2006-06-01 21:54:58 +00:00
Reid Spencer 569f3913a9 No, libLLVMbzip2 does not have a .a suffix.
llvm-svn: 28624
2006-06-01 07:23:32 +00:00
Reid Spencer d661a4c218 Fix gcc command line options after LLVMCore and LLVMbzip2 became archive
libraries.

llvm-svn: 28623
2006-06-01 07:19:28 +00:00
Evan Cheng 6821bbb1ea Update vector extract test cases.
llvm-svn: 28580
2006-05-31 00:48:09 +00:00
Reid Spencer b5ddb66ce0 1. No need to thwart this test with an environment variable. Turning it off
is the default and handled by the makefile system and runtest
2. Redirect stderr of llvm-as and llvm2cpp so that warning messages about
   instrinsics don't cause Tcl to report the run as failed.

llvm-svn: 28576
2006-05-30 23:07:17 +00:00
Evan Cheng baace007a3 Added a test case for parameter passing of vector values.
llvm-svn: 28567
2006-05-30 20:37:00 +00:00
Evan Cheng 1ec0e4233e Fix the test failure on non-Darwin targets.
llvm-svn: 28566
2006-05-30 20:35:46 +00:00
Evan Cheng 905e88caaa Add a lea instruction selection test case.
llvm-svn: 28549
2006-05-30 06:53:55 +00:00
Reid Spencer 131ca2869c Fix a bug with diffing the wrong files. Make output more readable.
llvm-svn: 28542
2006-05-29 18:09:38 +00:00
Owen Anderson a03aa6f37f Require both tests to pass.
llvm-svn: 28531
2006-05-29 01:28:16 +00:00
Owen Anderson c01e7bde40 Update the testcase to check the full extent of LCSSA.
llvm-svn: 28530
2006-05-29 01:07:04 +00:00
Reid Spencer 497120ef63 Fix a problem where dejagnu won't accept the value of global tcl variable
"libdir" for some reason. Changing to llvmlibsdir instead fixes it.

llvm-svn: 28526
2006-05-28 07:22:42 +00:00
Reid Spencer 633301acea Provide an infrastructure for testing the llvm2cpp program (yet to be
committed). This infrastructure is only activated when RUNLLVM2CPP=1 is
specified on the make command line. Currently it is only supported in the
Feature test suite.

llvm-svn: 28525
2006-05-28 04:21:40 +00:00
Chris Lattner 1a2a101359 New testcase: check that the inliner constant folds instructions on the
fly if it can.

llvm-svn: 28515
2006-05-27 01:16:22 +00:00
Owen Anderson f980a7478f Trivial testcase that LCSSA can already handle.
llvm-svn: 28508
2006-05-26 21:59:20 +00:00
Chris Lattner 158dd8aca8 New testcase for trivial DSE
llvm-svn: 28502
2006-05-26 19:18:40 +00:00
Chris Lattner 49e7f56e7f New testcase, check that the bc file correctly encodes varargs nonccc calls.
llvm-svn: 28500
2006-05-26 18:41:26 +00:00
Chris Lattner cdfb4cbad8 new testcase
llvm-svn: 28486
2006-05-25 23:23:22 +00:00
Chris Lattner f322bf6297 new testcases
llvm-svn: 28484
2006-05-25 22:52:49 +00:00
Chris Lattner d0754ad9e6 The patch corresponding to this test had to be reverted as unsafe.
llvm-svn: 28479
2006-05-25 21:25:54 +00:00
Evan Cheng 29ba01f214 New test case. x86 isel was creating a cycle in the DAG.
llvm-svn: 28477
2006-05-25 20:21:19 +00:00
Rafael Espindola b14e20733e create test/Regression/CodeGen/ARM/ and add a minimal test to it
llvm-svn: 28468
2006-05-25 10:49:19 +00:00
Evan Cheng 9414021779 -sched-commute-nodes is now on by default.
llvm-svn: 28467
2006-05-25 08:39:25 +00:00
Chris Lattner ea03ef1624 Update testcase with recent cbe change
llvm-svn: 28455
2006-05-24 20:52:08 +00:00
Chris Lattner fb5fc76063 Testcase for a new instcombine xform, patch contributed by Nick Lewycky!
llvm-svn: 28449
2006-05-24 17:34:02 +00:00
Chris Lattner 5114596467 One of these xforms is only safe with unsafe math enabled.
llvm-svn: 28446
2006-05-24 00:49:32 +00:00
Chris Lattner de6909734d New testcase
llvm-svn: 28444
2006-05-24 00:12:50 +00:00
Evan Cheng a9194a8dbd Added a test case for FP equality check.
llvm-svn: 28434
2006-05-23 06:41:23 +00:00
Chris Lattner c4e9aff50f new testcase for csretcc
llvm-svn: 28413
2006-05-19 22:00:54 +00:00
Chris Lattner 4203df25b8 new testcase
llvm-svn: 28396
2006-05-19 19:34:09 +00:00
Reid Spencer 8d88fc5ee4 Improve error output. Use the third parameter of the "catch" command to
capture the error output from the exec option. This generally will capture
the stderr messages generated by the tools. This information is then
printed if the test fails. This helps to recognize more quickly what the
error was. Otherwise, this information is lost.

llvm-svn: 28385
2006-05-18 19:42:16 +00:00
Chris Lattner b848c2457e This test is buggy: printf is a varargs function. This fixes the test with
the PPC JIT

llvm-svn: 28375
2006-05-17 23:43:56 +00:00
Evan Cheng fabc691ce4 PR736 has already been fixed. Remove XFAIL marker.
llvm-svn: 28362
2006-05-17 20:21:44 +00:00
Evan Cheng 961ef9363d New test case for vector type argument pass by value.
llvm-svn: 28361
2006-05-17 20:20:04 +00:00
Andrew Lenharth f8e448f06f Added regression that breaks gcc4 build
llvm-svn: 28358
2006-05-17 19:23:31 +00:00
Chris Lattner f897d2f274 add an external symbol testcase
llvm-svn: 28345
2006-05-17 04:20:13 +00:00
Chris Lattner 174db05199 new test for various forms of calls
llvm-svn: 28344
2006-05-17 03:57:31 +00:00
Chris Lattner 5a37460533 test for support to pass/return vectors to calls.
llvm-svn: 28343
2006-05-17 00:18:23 +00:00
Chris Lattner f4d08dd0d3 Another testcase that shouldn't need vrsave twiddling
llvm-svn: 28332
2006-05-16 18:23:55 +00:00
Chris Lattner a1f0b95ce4 Remove this xfail-d test, which doesn't make any sense
llvm-svn: 28328
2006-05-16 17:22:42 +00:00
Chris Lattner 4edab0f7a7 New testcase for instcombine
llvm-svn: 28272
2006-05-13 02:00:07 +00:00
Chris Lattner 6372a2acde new testcase for a recent rlwimi crash.
llvm-svn: 28242
2006-05-12 16:28:13 +00:00
Evan Cheng 1501b9f829 New scheduling test case.
llvm-svn: 28232
2006-05-12 01:59:17 +00:00
Evan Cheng 47a57ac4f9 Update test case
llvm-svn: 28216
2006-05-10 19:53:05 +00:00
Chris Lattner 1a0e0c1c9e New testcase, check that dead code doesn't pessimize instcombine
llvm-svn: 28214
2006-05-10 18:56:04 +00:00
Evan Cheng 43ddc376fb Another instruction scheduling test case
llvm-svn: 28203
2006-05-09 07:20:24 +00:00
Evan Cheng c39ab4575e Test case for PR770
llvm-svn: 28198
2006-05-09 06:48:12 +00:00
Chris Lattner 536c83f25d new testcase
llvm-svn: 28173
2006-05-08 20:58:58 +00:00
Chris Lattner 21c85bc790 This test passes now, remove xfail marker
Change test to be a positive test instead of a negative test

llvm-svn: 28159
2006-05-07 18:16:31 +00:00
Chris Lattner 0b8c57ec2b new testcase we handle right now.
llvm-svn: 28147
2006-05-06 18:15:50 +00:00
Chris Lattner cbeb178e14 new testcase
llvm-svn: 28142
2006-05-06 09:09:47 +00:00
Chris Lattner 44f121abc1 new testcase from ghostscript that inf looped instcombine
llvm-svn: 28140
2006-05-06 08:58:06 +00:00
Chris Lattner c9043ef728 New testcase
llvm-svn: 28125
2006-05-05 06:38:40 +00:00
Chris Lattner 618ff2dc4e new testcase that crashes the instcombine pass
llvm-svn: 28100
2006-05-04 17:33:24 +00:00
Evan Cheng 8b1cde2bbe Use movsd to shuffle in the lowest two elements of a v4f32 / v4i32 vector when
movlps cannot be used (e.g. when load from m64 has multiple uses).

llvm-svn: 28089
2006-05-03 20:32:03 +00:00
Evan Cheng 7bd487fe41 A few instruction scheduling test cases.
llvm-svn: 28077
2006-05-03 02:11:36 +00:00
Chris Lattner 5104e3b833 New testcase that crashes the new CFE.
llvm-svn: 28042
2006-05-01 23:18:55 +00:00
Chris Lattner 78d9ae3f0c Intel mode no longer uses %'s on registers
llvm-svn: 28028
2006-05-01 05:56:51 +00:00
Chris Lattner 00aaa76da3 new testcase miscompiled by instcombine
llvm-svn: 28018
2006-04-28 22:17:20 +00:00
Chris Lattner a2cef87a30 testcase that crashes the ppc backend, which can't sextinreg(i1)
llvm-svn: 28016
2006-04-28 21:52:24 +00:00
Evan Cheng e3ca069d35 Update. It should use two shufps, not three!
llvm-svn: 28013
2006-04-28 18:55:34 +00:00
Chris Lattner 7abfb81e30 new testcase
llvm-svn: 28006
2006-04-28 04:14:29 +00:00
Evan Cheng c4d77c46b8 Test case for PR748
llvm-svn: 28000
2006-04-28 01:21:37 +00:00
Chris Lattner 51fecaa8b3 This should turn into one vector shuffle instruction.
llvm-svn: 27996
2006-04-27 21:13:58 +00:00
Chris Lattner fb1ab10337 new testcase
llvm-svn: 27986
2006-04-27 05:00:43 +00:00
Chris Lattner 684a8546f4 new testcase
llvm-svn: 27981
2006-04-26 18:32:59 +00:00
Andrew Lenharth a3f7583408 another c99 style problem
llvm-svn: 27969
2006-04-25 19:27:56 +00:00
Evan Cheng 347a5a7afa Added a movq test case.
llvm-svn: 27962
2006-04-24 23:03:22 +00:00
Evan Cheng 40ff2928ed Two more build_vector tests.
llvm-svn: 27944
2006-04-22 06:19:11 +00:00
Evan Cheng 236d23b88e movddup is a SSE3 instruction.
llvm-svn: 27932
2006-04-21 16:42:47 +00:00
Evan Cheng 9c2707ad5a Add && to each RUN: line (except the last one).
llvm-svn: 27927
2006-04-21 04:58:23 +00:00
Evan Cheng 8ef22ae8af More build_vector tests.
llvm-svn: 27926
2006-04-21 01:22:41 +00:00
Evan Cheng 5ddb6f991f Check for llc crash.
llvm-svn: 27925
2006-04-21 01:21:23 +00:00
Evan Cheng b3864a0ce4 To be replaced with another test.
llvm-svn: 27924
2006-04-21 01:12:32 +00:00
Chris Lattner c11f4f4214 new testcase
llvm-svn: 27911
2006-04-20 20:48:32 +00:00
Evan Cheng 968db7ffb7 Don't know what I was thinking...
llvm-svn: 27909
2006-04-20 19:47:28 +00:00
Evan Cheng 73b12f2f53 Vector extract element test case.
llvm-svn: 27892
2006-04-20 17:59:30 +00:00
Evan Cheng aecd41384f Vector insert test case.
llvm-svn: 27890
2006-04-20 17:50:10 +00:00
Chris Lattner ec86eace63 allow this dir to get pruned
llvm-svn: 27889
2006-04-20 17:45:33 +00:00
Chris Lattner 1798687dba Remove this target's reg tests
llvm-svn: 27888
2006-04-20 17:44:51 +00:00
Chris Lattner 5197dfadf2 Fails with all sparcs
llvm-svn: 27887
2006-04-20 17:43:41 +00:00
Andrew Lenharth b950dbea0b can we cast between pointers and IntPtrType
llvm-svn: 27879
2006-04-20 14:54:17 +00:00
Evan Cheng 3ee104c852 v16i8 splat with 2 punpcklbw and a single pshufd.
llvm-svn: 27877
2006-04-20 09:05:16 +00:00
Evan Cheng f2c5fe9139 Another shuffle test. For 4-wide shuffle, no more than 3 {p}shuf*.
llvm-svn: 27876
2006-04-20 09:01:54 +00:00
Evan Cheng 2bd632a02a Added a test case for , e.g. xform pand <0, 0, -1, -1> to a shuffle.
llvm-svn: 27872
2006-04-20 08:51:03 +00:00
Evan Cheng 059676f77b Added a movhlps, movlhps test case.
llvm-svn: 27871
2006-04-20 08:47:47 +00:00
Chris Lattner 4ae41a3556 New testcase for a codegen crash
llvm-svn: 27867
2006-04-20 05:57:43 +00:00
Chris Lattner 11a9ac51e8 new testcase
llvm-svn: 27803
2006-04-18 17:56:30 +00:00
Chris Lattner 48786e4887 Add tests for v8i16 and v16i8
llvm-svn: 27791
2006-04-18 03:54:50 +00:00
Chris Lattner 2dea154035 new testcase
llvm-svn: 27787
2006-04-18 03:22:16 +00:00
Chris Lattner efe2b3f2fc New testcase, shouldn't touch vrsave
llvm-svn: 27776
2006-04-17 21:48:03 +00:00
Chris Lattner e757ae6534 New testcase
llvm-svn: 27766
2006-04-17 20:32:27 +00:00
Chris Lattner 8cdba16d5e Some more cases that can be generated with two instructions
llvm-svn: 27759
2006-04-17 17:54:18 +00:00
Chris Lattner 9a3859b339 New testcases
llvm-svn: 27753
2006-04-17 06:58:16 +00:00
Chris Lattner 02440a996b new testcase
llvm-svn: 27751
2006-04-17 06:06:50 +00:00
Chris Lattner 31b7d89e66 New testcase
llvm-svn: 27749
2006-04-17 05:58:22 +00:00
Chris Lattner 6e98b49b54 new testcase, these shuffles can be implemented with discrete instructions,
and shouldn't be lowered to vperm.

llvm-svn: 27747
2006-04-17 05:27:31 +00:00
Evan Cheng c6f665f5f3 Better way to splat v2f64
llvm-svn: 27735
2006-04-16 18:16:43 +00:00
Chris Lattner 1c0ef4385d New testcase, checking to see we can turn this code:
void test(vector float *F, float f) {
  vector float G = *F + *F;
  *((float*)&G) = f;
  *F = G + G;
}

void test2(vector float *F, float f) {
  vector float G = *F + *F;
  ((float*)&G)[2] = f;
  *F = G + G;
}

void test3(vector float *F, float *f) {
  vector float G = *F + *F;
  *f = ((float*)&G)[2];
}

void test4(vector float *F, float *f) {
  vector float G = *F + *F;
  *f = *((float*)&G);
}

into insert/extract element operations with no memory traffic.

llvm-svn: 27709
2006-04-14 21:41:54 +00:00
Chris Lattner 174bccb676 Force a specific config, because this test fails in certain configs otherwise.
llvm-svn: 27694
2006-04-14 06:06:51 +00:00
Chris Lattner 1c4ecc0c73 new testcase, vector operations should be CSE'd
llvm-svn: 27690
2006-04-14 05:09:53 +00:00
Chris Lattner 326ff4eb93 Remove this test, there is no need to test GCC's bugs
llvm-svn: 27689
2006-04-14 04:47:26 +00:00
Chris Lattner 548ee45cac My addition of the xfail marker threw off the line #. move it.
llvm-svn: 27678
2006-04-13 21:19:13 +00:00
Reid Spencer fabdf8087e Use quotes properly so that the possibility of a null variable set is
eliminated. This can happen, for example, if LLVM is configured without
llvm-gcc in which case things like LLVMGCC_VERSION will be empty. In
such cases, deja-gnu fails with:
can't read "llvmgcc_version": no such variable
because it sees:
set llvmgcc_version
instead of:
set llvmgcc_version ""

llvm-svn: 27676
2006-04-13 20:33:59 +00:00
Andrew Lenharth d911f0d545 from the linux kernel
llvm-svn: 27674
2006-04-13 19:50:07 +00:00
Chris Lattner 612e84dd8b Fix this regex to match what llvmgcc4 produces also
llvm-svn: 27673
2006-04-13 19:46:16 +00:00
Chris Lattner ce5ee73be6 Try xfailing this
llvm-svn: 27669
2006-04-13 18:15:24 +00:00
Andrew Lenharth 4819ab573d fix this for the more restrictive linkage
llvm-svn: 27667
2006-04-13 17:52:32 +00:00
Chris Lattner d76ecc9678 These tests are now xfailed for llvmgcc4. This is PR735, unlikely to be
resolved before 1.7 :(

llvm-svn: 27666
2006-04-13 17:35:36 +00:00
Chris Lattner c8be43885e Only look at .ll files in this directory
llvm-svn: 27665
2006-04-13 17:32:53 +00:00
Chris Lattner ee98069488 This file is an invalid C file, test that it is properly rejected
llvm-svn: 27664
2006-04-13 17:32:03 +00:00
Chris Lattner 49c1dc2466 Another case where a dead cast was causing the test to spuriously
fail with the new front-end.

llvm-svn: 27663
2006-04-13 17:28:28 +00:00
Chris Lattner 2d2f3ef792 Don't get confused by dead casts.
llvm-svn: 27662
2006-04-13 17:26:54 +00:00
Chris Lattner 3b84d9a162 Fix an accidental commit.
llvm-svn: 27661
2006-04-13 17:21:49 +00:00
Chris Lattner 138058166f This test fails and I don't know why, xfail it until andrew gets a chance to
look at it.

llvm-svn: 27660
2006-04-13 17:19:34 +00:00
Chris Lattner 954ea6e2fc Oops, move misplaced test
llvm-svn: 27659
2006-04-13 17:18:42 +00:00
Chris Lattner b8ec695455 These are only XFAILs with llvmgcc3, they pass with llvmgcc4
llvm-svn: 27658
2006-04-13 17:16:21 +00:00
Chris Lattner b88cb094ff Add a run with an unusual target triple, revert the patch that sent output to
dev null as it broke the test and doesn't add anything.

llvm-svn: 27656
2006-04-13 17:10:03 +00:00
Chris Lattner 02b7e1128a Update a count, this test now passes.
llvm-svn: 27655
2006-04-13 16:52:13 +00:00
Tanya Lattner 27fba1761d Added the ability to xfail based on llvmgcc version
llvm-svn: 27635
2006-04-12 21:57:40 +00:00
Reid Spencer 7579237536 Don't dump the llc assembly output to stdout.
llvm-svn: 27631
2006-04-12 21:03:04 +00:00
Chris Lattner 226eb56d2f new testcase
llvm-svn: 27622
2006-04-12 19:04:27 +00:00
Tanya Lattner bd4a203208 Added llvmgcc version to allow tests to be xfailed by frontend version.
llvm-svn: 27619
2006-04-12 18:08:25 +00:00
Chris Lattner 2122424fc1 These casts should turn into gep instructions
llvm-svn: 27618
2006-04-12 18:07:41 +00:00
Chris Lattner 21d74e7287 two equivalent vsplti*s in different types should be CSEd.
llvm-svn: 27613
2006-04-12 17:36:04 +00:00
Chris Lattner bd766cb681 Rename this file
llvm-svn: 27611
2006-04-12 17:01:11 +00:00
Chris Lattner ef18ab2bca Make this test more interesting by checking that the 0.0 used to implement vector fmul gets cse'd also.
llvm-svn: 27610
2006-04-12 16:57:39 +00:00
Chris Lattner e4f274a291 new testcase
llvm-svn: 27608
2006-04-12 16:49:16 +00:00
Chris Lattner 8d67500533 new testcase
llvm-svn: 27601
2006-04-12 03:24:46 +00:00
Chris Lattner 81d32507c2 new testcase
llvm-svn: 27572
2006-04-10 23:06:18 +00:00
Chris Lattner 76b0813040 New testcase
llvm-svn: 27570
2006-04-10 22:45:37 +00:00
Evan Cheng 23d33f1c47 Add a vselect test case.
llvm-svn: 27557
2006-04-10 07:30:13 +00:00
Chris Lattner 89b371195d add new testcase
llvm-svn: 27537
2006-04-08 07:13:46 +00:00
Chris Lattner a348351da3 new testcase for shufflevector
llvm-svn: 27508
2006-04-08 01:17:42 +00:00
Evan Cheng c447d87424 Doh!
llvm-svn: 27500
2006-04-07 21:52:15 +00:00
Evan Cheng 085c61d825 Added more shuffle tests
llvm-svn: 27481
2006-04-07 05:35:45 +00:00
Chris Lattner b8fc537634 Add testcases for vpku[hw]um(x,x)
llvm-svn: 27466
2006-04-06 22:27:59 +00:00
Reid Spencer c5aca114a0 Add the variable llvmgccmajvers to the site.exp file. This will contain
the major version number of llvm-gcc, as configured.

llvm-svn: 27465
2006-04-06 22:22:08 +00:00
Chris Lattner 8688b6befc Add vmrg(x,x) tests
llvm-svn: 27462
2006-04-06 22:02:11 +00:00
Chris Lattner ab7e530133 Add tests for vmrg[hl]*
llvm-svn: 27459
2006-04-06 21:19:37 +00:00
Chris Lattner 13f01c8a3d test vperm promotion
llvm-svn: 27454
2006-04-06 19:21:02 +00:00
Chris Lattner 0373789c92 new testcase
llvm-svn: 27449
2006-04-06 18:26:13 +00:00
Chris Lattner aa53021e91 new testcase that was miscompiled to vspltisb
llvm-svn: 27438
2006-04-05 17:38:50 +00:00
Chris Lattner cc06fa67f1 new testcase
llvm-svn: 27435
2006-04-05 06:54:14 +00:00
Evan Cheng b806a7fe8a Separate out to 2 test cases
llvm-svn: 27430
2006-04-05 04:40:55 +00:00
Andrew Lenharth 8db061ae49 make this test less exacting
llvm-svn: 27429
2006-04-05 03:31:45 +00:00
Evan Cheng aca1a925ba Add a new shuffle test case that requires pshuflw / pshufhw pair.
llvm-svn: 27426
2006-04-05 01:44:57 +00:00
Chris Lattner d5ed3789dd New testcase
llvm-svn: 27401
2006-04-04 17:38:31 +00:00
Chris Lattner 821fec195a new testcase
llvm-svn: 27397
2006-04-04 17:20:45 +00:00
Andrew Lenharth 2636d2ac89 test powers of 2
llvm-svn: 27369
2006-04-03 04:14:39 +00:00
Andrew Lenharth 0288ba764a test some more mul by constant removal
llvm-svn: 27366
2006-04-03 03:16:09 +00:00
Andrew Lenharth 04a8429572 Make sure mul by constant 5 is turned into a s4addq
llvm-svn: 27365
2006-04-02 21:47:07 +00:00
Chris Lattner a13540b896 New testcase that crashes the compiler.
llvm-svn: 27333
2006-04-02 00:23:59 +00:00
Chris Lattner 11739f7589 New testcase that caused instcombine to infinitely loop (with my recent
patch), distilled from Applications/JM/ldecod

llvm-svn: 27329
2006-04-01 22:04:40 +00:00
Chris Lattner 2b11adcf5c new testcases
llvm-svn: 27327
2006-04-01 08:02:51 +00:00
Chris Lattner 36504b7256 new testcase for PR726
llvm-svn: 27325
2006-04-01 04:47:17 +00:00
Chris Lattner c4f4e8f150 An identity shuffle shouldn't generate any permute code.
llvm-svn: 27316
2006-03-31 22:16:19 +00:00
Chris Lattner 376ee782c0 new testcase
llvm-svn: 27311
2006-03-31 21:53:01 +00:00
Chris Lattner a2834fa967 Make this test harder, always check generic x86 and SSE-enabled x86.
llvm-svn: 27295
2006-03-31 17:59:16 +00:00
Chris Lattner 5f0744d677 new testcase
llvm-svn: 27289
2006-03-31 06:01:48 +00:00
Chris Lattner 11ab8a9d3b Dag operator should be able to be template params.
llvm-svn: 27262
2006-03-30 22:49:59 +00:00
Chris Lattner dab5696f84 new testcase that crashes instcombine
llvm-svn: 27260
2006-03-30 22:01:08 +00:00
Evan Cheng 177501cbda Add a pshufhw test case.
llvm-svn: 27251
2006-03-29 22:51:28 +00:00
Evan Cheng 5dc61c9076 Use unpcklpd for v2f64 splat.
llvm-svn: 27249
2006-03-29 18:59:48 +00:00
Chris Lattner 3cf15bde79 new testcase
llvm-svn: 27242
2006-03-29 00:12:08 +00:00
Chris Lattner 112cee1182 new testcase
llvm-svn: 27234
2006-03-28 20:32:12 +00:00
Evan Cheng 844a45d59b Use movhpd is even better than movlhps.
llvm-svn: 27217
2006-03-28 06:40:57 +00:00
Jim Laskey 2ea724cddf Regression test for the handling of nulls as arguments to debug intrinsics.
llvm-svn: 27204
2006-03-28 01:34:14 +00:00
Andrew Lenharth 4a89e2e9ec Adding links to a node collapsed during type merging crashes.
llvm-svn: 27193
2006-03-27 23:38:48 +00:00
Chris Lattner 6691ca3775 Correct the vandc testcase
llvm-svn: 27137
2006-03-25 23:12:47 +00:00
Chris Lattner f66831e751 new testcases
llvm-svn: 27134
2006-03-25 23:04:34 +00:00
Evan Cheng 361c9f8274 Add a BUILD_VECTOR with unpack and interleave testcase.
llvm-svn: 27121
2006-03-25 09:48:14 +00:00
Chris Lattner 5359171003 New tests for vsplti*
llvm-svn: 27105
2006-03-25 06:11:56 +00:00
Evan Cheng f4729d1052 Added a scalar to vector with zero extension testcase
llvm-svn: 27101
2006-03-25 05:58:52 +00:00
Chris Lattner c576661131 New testcase
llvm-svn: 27067
2006-03-24 17:57:24 +00:00
Evan Cheng 70848e8e56 Zero vector testcase
llvm-svn: 27061
2006-03-24 08:02:50 +00:00
Chris Lattner 23fd653efd new testcase
llvm-svn: 27058
2006-03-24 07:47:53 +00:00
Chris Lattner c097dae155 fix two spellos
llvm-svn: 27050
2006-03-24 07:13:29 +00:00
Evan Cheng e843f59d4f Add a v2f64 shuffle case.
llvm-svn: 27038
2006-03-24 02:56:00 +00:00
Evan Cheng e66be95ce2 Add a vector shuffle test case
llvm-svn: 27027
2006-03-24 01:22:25 +00:00
Reid Spencer edde6be3d8 Tired of wading through cvs's list ? files that are generated when building
with srcdir = objdir to see what's okay and what's cruft. So, in goes a
bunch of .cvsignore files to shut cvs up about known output from running
"make check".

llvm-svn: 27009
2006-03-23 23:41:57 +00:00
Reid Spencer ce8a2b9603 Ignore some files that occur when srcdir = objdir.
llvm-svn: 27007
2006-03-23 23:24:46 +00:00
Chris Lattner 64b7e9ad91 add some tests for typecasts and extract_element
llvm-svn: 26998
2006-03-23 21:15:57 +00:00
Evan Cheng 8e4c9ff3dc Replace vector splat test case.
llvm-svn: 26963
2006-03-22 21:39:25 +00:00
Evan Cheng fce9a3396b Add a v2f64 splat (using movlhps) test case.
llvm-svn: 26962
2006-03-22 20:29:11 +00:00
Chris Lattner 35079019fc test that vspltw is generated for test cases
llvm-svn: 26955
2006-03-22 19:12:46 +00:00
Chris Lattner a7afeff875 Add an integer splat test
llvm-svn: 26923
2006-03-21 18:27:27 +00:00
Chris Lattner 38f0894066 new testcase
llvm-svn: 26906
2006-03-20 22:37:05 +00:00
Evan Cheng 9197775968 Option -enable-x86-lsr has been removed
llvm-svn: 26903
2006-03-20 18:26:11 +00:00
Chris Lattner 2a028e2f95 new testcase, contributed by Eric Kidd.
llvm-svn: 26871
2006-03-19 19:36:32 +00:00
Chris Lattner 131cfed1c3 add a new testcase. This insertelement should be a noop on SSE.
llvm-svn: 26859
2006-03-19 05:46:51 +00:00
Chris Lattner 1d09681edb add another testcase, explicitly check stuff works with G5 and G3 codegen on
PPC.

llvm-svn: 26854
2006-03-19 04:45:11 +00:00
Chris Lattner 891af0b15e add two new insert_element tests
llvm-svn: 26850
2006-03-19 01:27:04 +00:00
Chris Lattner a982c7ee87 Add three new testcases
llvm-svn: 26844
2006-03-19 00:20:03 +00:00
Chris Lattner 544dab3a35 update testcases for x86 fastcc changes.
llvm-svn: 26842
2006-03-18 23:48:54 +00:00
Nate Begeman 41767dd142 Add a missing testcase
llvm-svn: 26834
2006-03-17 22:39:45 +00:00
Chris Lattner da2b6ee1d6 new testcase
llvm-svn: 26832
2006-03-17 20:04:40 +00:00
Evan Cheng e28ad7eaf1 Add a lsr common loop invariant hoisting test case
llvm-svn: 26827
2006-03-17 19:45:54 +00:00
Chris Lattner 8aa2b66653 new testcase that broke the new f.e.
llvm-svn: 26826
2006-03-17 18:01:17 +00:00
Chris Lattner cce5eef431 New testcase, the new CFE compiles this into insertelement instructions, the
old one crashes.

llvm-svn: 26794
2006-03-16 18:47:51 +00:00
Reid Spencer 0d42f696a6 Add a RUN: line so this test doesn't fail.
llvm-svn: 26790
2006-03-16 03:05:57 +00:00
Andrew Lenharth 18e788e452 better check
llvm-svn: 26780
2006-03-15 19:02:54 +00:00
Evan Cheng f49357f81d Also requires -mattr=-sse3
llvm-svn: 26778
2006-03-15 18:05:13 +00:00
Chris Lattner e5a2155be9 new testcase from a FIXME in the code
llvm-svn: 26756
2006-03-14 08:13:09 +00:00
Chris Lattner c714f268bf Test that we can reassociate (x<<1)+(y<<1) -> (X+Y)<<1.
llvm-svn: 26752
2006-03-14 06:54:32 +00:00
Jim Laskey e1421afc72 Remove the use of llvm.dbg.declare.
llvm-svn: 26744
2006-03-14 01:53:11 +00:00
Chris Lattner 9f02a3f456 new testcase
llvm-svn: 26726
2006-03-13 06:50:47 +00:00
Chris Lattner 22d1d651ea Simplify this testcase
llvm-svn: 26699
2006-03-10 22:32:18 +00:00
Chris Lattner 0a171d33ca weak globals on darwin require an extra load, breaking this test
llvm-svn: 26695
2006-03-10 17:55:10 +00:00
Evan Cheng bee0b5b83e Add a test case for (store (op (load ..) ..) ..) folding.
llvm-svn: 26656
2006-03-09 19:04:30 +00:00
Chris Lattner f133c26a0b Update these tests (which use autoupgrade) to run constprop and check
that the file parses.

llvm-svn: 26655
2006-03-09 18:43:07 +00:00
Chris Lattner fd9bf36070 Automatically pass -emit-llvm to llvmgcc when using %llvmgcc
llvm-svn: 26623
2006-03-08 22:32:20 +00:00
Chris Lattner 78b4fc15bb Pass -emit-llvm automatically to %llvmgcc and %llvmg++ to fix regression
tests with the new f.e.

llvm-svn: 26622
2006-03-08 22:28:19 +00:00
Chris Lattner d312f73022 new testcase that should have been added long ago.
llvm-svn: 26601
2006-03-07 22:33:00 +00:00
Chris Lattner f118a41fb0 new testcase
llvm-svn: 26596
2006-03-07 17:56:31 +00:00
Chris Lattner 9b4ebee871 new regression test
llvm-svn: 26579
2006-03-06 23:52:37 +00:00
Chris Lattner cbde100850 new testcase I forgot to check in earlier
llvm-svn: 26565
2006-03-05 23:53:04 +00:00
Chris Lattner 818c54925e new testcase for vector narrowing.
llvm-svn: 26537
2006-03-05 00:21:28 +00:00
Chris Lattner ca7e9664a7 new testcase
llvm-svn: 26534
2006-03-04 23:31:49 +00:00
Chris Lattner f97c7f5dbb new testcase
llvm-svn: 26525
2006-03-04 09:35:02 +00:00
Chris Lattner ba66f8e1ad new testcase
llvm-svn: 26518
2006-03-04 06:02:36 +00:00
Chris Lattner 05285fbf5b new testcase
llvm-svn: 26514
2006-03-04 02:05:07 +00:00
Chris Lattner efef036443 New testcase, make sure nate doesn't vanish
llvm-svn: 26511
2006-03-04 00:47:12 +00:00
Evan Cheng 9929793411 Add another test case for instruction scheduling.
llvm-svn: 26507
2006-03-03 18:58:09 +00:00
Chris Lattner f7d616278e Remove these testcases. These intrinsics are going away
llvm-svn: 26478
2006-03-03 00:16:23 +00:00
Chris Lattner 3c2733b090 new testcases
llvm-svn: 26473
2006-03-02 23:56:23 +00:00
Evan Cheng dc41f80f70 Add a regression test for bug 478.
llvm-svn: 26471
2006-03-02 21:48:34 +00:00
Chris Lattner dad25c7f22 add a couple more cases
llvm-svn: 26468
2006-03-02 06:50:04 +00:00
Chris Lattner c652c30772 testcase that crashed the new CFE
llvm-svn: 26465
2006-03-01 22:45:12 +00:00
Chris Lattner 4a6d29d008 new testcase
llvm-svn: 26458
2006-03-01 21:46:53 +00:00
Chris Lattner 0454b2d080 load (x|y) -> load (x+y) iff x and y have no common bits.
llvm-svn: 26449
2006-03-01 07:13:56 +00:00
Chris Lattner 160cc92461 new testcase. These functions shouldn't touch the stack if stfiwx use
is enabled.

llvm-svn: 26446
2006-03-01 05:49:05 +00:00
Chris Lattner 21d44e6dfe new testcase. There should be no accesses to the stack for these functions.
llvm-svn: 26444
2006-03-01 04:56:33 +00:00
Chris Lattner e8ddd8a72f new testcase
llvm-svn: 26439
2006-03-01 03:43:38 +00:00
Evan Cheng 2a78abd411 Add a test case for left shift by 1. We should not be using lea for this.
llvm-svn: 26431
2006-02-28 23:57:45 +00:00
Chris Lattner 8c5f04d212 new testcase
llvm-svn: 26426
2006-02-28 19:46:56 +00:00
Chris Lattner 408fee7ad4 evan's recent x86 isel improvements have fixed this, though not in the way
originally envisioned :)

llvm-svn: 26422
2006-02-28 16:39:56 +00:00
Chris Lattner d786b0e033 new testcases
llvm-svn: 26420
2006-02-28 06:54:19 +00:00
Chris Lattner 3059128d02 new testcases for PR712
llvm-svn: 26414
2006-02-28 05:48:56 +00:00
Chris Lattner 626f96431b new testcase
llvm-svn: 26412
2006-02-28 05:30:48 +00:00
Chris Lattner a8bd74d5d0 new testcases
llvm-svn: 26395
2006-02-27 02:36:19 +00:00
Chris Lattner 7422e470f3 New testcases
llvm-svn: 26393
2006-02-27 01:43:02 +00:00
Chris Lattner 3af2da1f3d Reenable this
llvm-svn: 26391
2006-02-27 01:00:12 +00:00
Chris Lattner 255ab33177 new testcase
llvm-svn: 26387
2006-02-27 00:20:23 +00:00
Chris Lattner 69c68c3c3e new testcase
llvm-svn: 26384
2006-02-26 19:55:30 +00:00
Evan Cheng 74de65aacd New test case: use lea for imul by some constants.
llvm-svn: 26378
2006-02-25 10:16:10 +00:00
Evan Cheng 5c1e1ca29f lea.ll is XFAIL until we implement convertToThreeAddress.
llvm-svn: 26377
2006-02-25 10:15:22 +00:00
Chris Lattner b8d9667087 this fails, mark it as such
llvm-svn: 26370
2006-02-25 08:18:43 +00:00
Evan Cheng 94d5466fa1 Add a test case for 'lea'.
llvm-svn: 26322
2006-02-23 00:12:12 +00:00
Chris Lattner a61d2e8878 new testcase distilled from SPASS
llvm-svn: 26319
2006-02-22 23:54:15 +00:00
Chris Lattner 88b8e3bb71 new testcase that crashes simplifycfg
llvm-svn: 26274
2006-02-18 00:32:44 +00:00
Nate Begeman 8d0e47a017 A few final (for now) tests
llvm-svn: 26267
2006-02-17 21:38:45 +00:00
Nate Begeman 6aee554aa1 Yet another test
llvm-svn: 26266
2006-02-17 21:32:46 +00:00
Nate Begeman 5e176da364 New tests!
llvm-svn: 26265
2006-02-17 21:22:08 +00:00
Nate Begeman 42c9e4df6f Fix a comment sabre noticed :)
llvm-svn: 26257
2006-02-17 06:24:31 +00:00
Nate Begeman 669ad7ea19 A couple new regression tests to make sure we always pattern match the new
opcodes on ppc.

llvm-svn: 26256
2006-02-17 06:16:56 +00:00
Jim Laskey 1fcabe2016 Code sufficiently protected against this test.
llvm-svn: 26213
2006-02-15 17:20:59 +00:00
Chris Lattner 684f911241 new testcase that broke unswitch due to loopsimplify not doing the right thing.
llvm-svn: 26190
2006-02-14 23:07:29 +00:00
Chris Lattner 8081f40b50 new testcase
llvm-svn: 26154
2006-02-13 23:07:02 +00:00
Chris Lattner 5898effde0 testcase reduced from Ptrdist/bc that is miscompiled by recent instcombine changes.
llvm-svn: 26151
2006-02-13 22:31:50 +00:00
Andrew Lenharth a3bc7b8a85 test for improved zap discovery
llvm-svn: 26147
2006-02-13 18:52:01 +00:00
Chris Lattner d062f09026 this passes now, due to Nate's recent efforts
llvm-svn: 26140
2006-02-13 07:26:36 +00:00
Chris Lattner 4c388281c1 Reduce this testcase a bit more, with the help of llvm-extract and some hand tweaks
llvm-svn: 26139
2006-02-13 07:02:50 +00:00
Evan Cheng 0684e9ae6d Added a test case for a libcall insertion bug.
llvm-svn: 26137
2006-02-12 10:24:00 +00:00
Chris Lattner e6ebe1af61 tweaks
llvm-svn: 26133
2006-02-12 08:01:35 +00:00
Chris Lattner 2234a136b3 new testcase
llvm-svn: 26130
2006-02-12 02:06:31 +00:00
Chris Lattner 5e488c9cc2 move a failing testcase from bit-tracking.ll to narrow.ll, and move the
xfail marker with it

llvm-svn: 26129
2006-02-12 02:02:43 +00:00
Chris Lattner 8e99b0baca Make these tests fail if opt crashes.
llvm-svn: 26127
2006-02-12 01:32:58 +00:00
Chris Lattner f3ed03481a Update comments to be actually accurate
llvm-svn: 26124
2006-02-11 09:37:07 +00:00
Chris Lattner 00601c0c7e This is implemented by the simplify-libcalls pass, not instcombine
llvm-svn: 26123
2006-02-11 09:33:28 +00:00
Chris Lattner 11f380962b new testcase
llvm-svn: 26086
2006-02-09 07:38:30 +00:00
Chris Lattner e19b89f59c this apparently passes on linux
llvm-svn: 26082
2006-02-09 07:12:13 +00:00
Jim Laskey 15f9188d73 Disable this test for the time being as debug is brought up to speed.
llvm-svn: 26063
2006-02-08 18:17:06 +00:00
Chris Lattner d82b2036e9 new testcase for more interesting select sccp cases
llvm-svn: 26048
2006-02-08 02:37:40 +00:00
Chris Lattner ee278d9417 new testcase that caused instcombine to crash on 176.gcc last night.
llvm-svn: 26039
2006-02-07 19:07:25 +00:00
Chris Lattner b624bb5f0d new testcases
llvm-svn: 26002
2006-02-05 07:52:47 +00:00
Chris Lattner 90263ea903 These were moved to ../SPARC
llvm-svn: 25987
2006-02-05 05:53:48 +00:00
Chris Lattner a590d80e5b move V8 testcases here
llvm-svn: 25986
2006-02-05 05:52:55 +00:00
Evan Cheng d65461c232 Added a (store (op (load ...) ...) ...) folding test case.
llvm-svn: 25933
2006-02-03 06:46:41 +00:00
Chris Lattner 166ea0eda7 new testcase
llvm-svn: 25897
2006-02-02 06:35:38 +00:00
Andrew Lenharth 14a7d8ff1e test cmov immediate form
llvm-svn: 25881
2006-02-01 19:36:52 +00:00
Chris Lattner 7975f04e1f new testcase for the 'ret double folding with load' opzn
llvm-svn: 25868
2006-02-01 01:45:02 +00:00
Chris Lattner 0fe1e5842f new testcase
llvm-svn: 25835
2006-01-31 06:01:40 +00:00
Evan Cheng cf94750d38 Don't generate (or setp, setae) for SETUGE. Simply flip the operands around and
generate SETULT instead.

llvm-svn: 25823
2006-01-30 23:39:40 +00:00
Chris Lattner 4ea4dba8d9 new testcase for the 'C++' failures last night.
llvm-svn: 25820
2006-01-30 22:43:10 +00:00
Chris Lattner 3ef3dad1af new testcase
llvm-svn: 25813
2006-01-30 06:11:36 +00:00
Evan Cheng 6a92822173 Use Intel assembly syntax to look for ST
llvm-svn: 25713
2006-01-27 22:51:51 +00:00
Evan Cheng 822f629538 X86 dag isel is now (soon) the default.
llvm-svn: 25699
2006-01-27 21:15:22 +00:00
Evan Cheng 7ca86912b7 These are fp stack test cases.
llvm-svn: 25698
2006-01-27 21:14:23 +00:00
Evan Cheng a3b41703f0 XFAIL tailcall test cases until it's implemented.
llvm-svn: 25697
2006-01-27 21:13:27 +00:00
Reid Spencer 6e2135d5f9 A test case for ensuring that conversion of old-format intrinsics with
signed arguments get auto-upgraded correctly.

llvm-svn: 25681
2006-01-27 11:28:48 +00:00
Reid Spencer b3cd77f9c3 This now passes.
llvm-svn: 25680
2006-01-27 11:27:37 +00:00
Andrew Lenharth b0a3ebd766 added a couple test cases, including the new vaarg breakage
llvm-svn: 25648
2006-01-26 17:43:42 +00:00
Chris Lattner 3ccaf6ecb0 new tests for actual inline asm expressions
llvm-svn: 25625
2006-01-25 23:49:54 +00:00
Chris Lattner 317b5d5efb testcase that crashes scalarrepl
llvm-svn: 25586
2006-01-24 19:34:57 +00:00
Chris Lattner 0ff4b9914c This is still broken
llvm-svn: 25583
2006-01-24 06:13:48 +00:00
Chris Lattner 7ecf56aec4 new c front-end testcase
llvm-svn: 25579
2006-01-24 05:01:39 +00:00
Chris Lattner a1280ad4d9 minor syntax change
llvm-svn: 25566
2006-01-24 00:37:20 +00:00
Chris Lattner 243f7296e5 new testcase
llvm-svn: 25562
2006-01-23 23:24:13 +00:00
Chris Lattner c7243b5b70 Testcase that failed due to a legalizer bug
llvm-svn: 25537
2006-01-23 07:30:14 +00:00
Chris Lattner 56b39c0c32 this option is gone, the dag isel is the default now
llvm-svn: 25536
2006-01-23 07:21:12 +00:00
Chris Lattner 117367e974 make this test harder
llvm-svn: 25533
2006-01-23 07:07:51 +00:00
Chris Lattner 4bfe10dab1 add new tests
llvm-svn: 25529
2006-01-23 06:24:17 +00:00
Chris Lattner fdcc0d99cd Make sure this tests the right thing, xfail on solaris, which doesn't have floorf
llvm-svn: 25524
2006-01-23 05:56:34 +00:00
Chris Lattner 48021ed4d4 new testcase that crashes llc for ppc
llvm-svn: 25495
2006-01-21 04:25:07 +00:00
Reid Spencer 855d31f847 Add a test case for PR697, ensuring the linker works with ConstantPacked.
llvm-svn: 25475
2006-01-20 01:31:58 +00:00
Evan Cheng 9a4ab9660f Added a load folding bug test case.
llvm-svn: 25472
2006-01-20 01:12:23 +00:00
Chris Lattner ef25927f4f Add a new testcase for an eliminable cast
llvm-svn: 25451
2006-01-19 07:39:20 +00:00
Reid Spencer 9ce6f39ccb This test passes now.
llvm-svn: 25449
2006-01-19 07:15:47 +00:00
Chris Lattner 800ad5287c make this work for Reid, who renamed his CVS module dir :)
llvm-svn: 25443
2006-01-19 06:49:46 +00:00
Chris Lattner 76a08b2f18 new testcase the autoupgrader in the bc reader fails to handle
llvm-svn: 25442
2006-01-19 06:15:34 +00:00
Reid Spencer e64af05eed Expand test to cover the non-overloaded variants of the arithmetic and
floating point intrinsics.

llvm-svn: 25431
2006-01-19 01:17:06 +00:00
Andrew Lenharth 88f3d3f893 a reduced test case, the GlobalAddress is never legalized
llvm-svn: 25427
2006-01-18 22:59:33 +00:00
Chris Lattner 48e653ea88 new testcase
llvm-svn: 25420
2006-01-18 19:16:07 +00:00
Chris Lattner 4d148f2ece this testcase sent the dag combiner spinning into an infinite loop
llvm-svn: 25418
2006-01-18 19:13:11 +00:00
Robert Bocchino 1763a44ac2 Test case for the insertelement operation.
llvm-svn: 25409
2006-01-17 20:07:30 +00:00
Chris Lattner 514a8f89d0 Ensure that the CFE always emits intrinsics in their unsigned version, not with signed operands
llvm-svn: 25390
2006-01-17 06:24:01 +00:00
Andrew Lenharth 4aa90b347f this is fixed
llvm-svn: 25370
2006-01-16 21:22:42 +00:00
Chris Lattner 45496f0beb Fix these testcases :(
Apparently Andrew hasn't implemented ReadCycleCounter in the new isel and
renamed ornot to eqv

llvm-svn: 25360
2006-01-16 16:34:39 +00:00
Chris Lattner fe5cb66e9d This pass has been removed.
llvm-svn: 25350
2006-01-16 01:06:43 +00:00
Chris Lattner 7eb2947546 New testcase for a regression last night: the -inline pass wasn't updating
callgraph to include new edges do to inserted llvm.stacksave/llvm.stackrestore
calls.

llvm-svn: 25319
2006-01-14 20:07:07 +00:00
Nate Begeman 2fba8a3aaa bswap implementation
llvm-svn: 25312
2006-01-14 03:14:10 +00:00
Nate Begeman 82049eba2c Add bswap intrinsics as documented in the Language Reference
llvm-svn: 25309
2006-01-14 01:25:24 +00:00
Jim Laskey 2d7162aaf4 testcase for PR676: http://llvm.cs.uiuc.edu/PR676
llvm-svn: 25306
2006-01-14 00:29:48 +00:00
Chris Lattner 403a11ca8f testcase for PR691
llvm-svn: 25298
2006-01-13 22:05:36 +00:00
Chris Lattner db8c13acf3 new testcases for the stackrestore instcombine optimizations
llvm-svn: 25297
2006-01-13 22:01:47 +00:00
Chris Lattner accc5bfe92 New testcase that functions with dynamic allocas can be inlined, and are
inlined correctly.

llvm-svn: 25287
2006-01-13 19:35:05 +00:00
Chris Lattner 00720d8ff0 testcase for the llvm.stacksave/llvm.stackrestore intrinsics.
llvm-svn: 25269
2006-01-13 02:25:08 +00:00
Evan Cheng 6d47166964 Test case for a SETCC / BRCOND folding bug.
llvm-svn: 25258
2006-01-13 01:02:22 +00:00
Duraid Madina dd8168d7be verily, sabre did leave
and yea! Saem said "ARRR."

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

llvm-svn: 25240
2006-01-12 02:50:34 +00:00
Nate Begeman c040152f94 Add testcase for rotate by register and rotate by immediate
llvm-svn: 25228
2006-01-11 22:58:12 +00:00
Chris Lattner ed23fdd9cf Testcase the PPC backend is miscompiling.
llvm-svn: 25216
2006-01-11 18:15:37 +00:00
Chris Lattner 7e60169a64 catch all forms of xnor
llvm-svn: 25208
2006-01-11 07:13:22 +00:00
Chris Lattner 13d1474d43 new testcase for extractelement instruction
llvm-svn: 25186
2006-01-10 20:00:20 +00:00
Chris Lattner 6084664580 Modify this test to not depend on the host math.h implementation
llvm-svn: 25138
2006-01-07 01:37:25 +00:00
Chris Lattner 60d3002606 A case that instcombine is not catching.
llvm-svn: 25127
2006-01-06 07:48:28 +00:00
Chris Lattner b844284a05 new tests, derived from cosmics scheme output
llvm-svn: 25111
2006-01-05 07:46:46 +00:00
Andrew Lenharth 0e5ba1d1fe Change this regression so andi is not a valid codegen of it
llvm-svn: 25056
2006-01-01 22:14:31 +00:00
Chris Lattner 4621dc8861 this test fails
llvm-svn: 24994
2005-12-23 16:14:29 +00:00
Chris Lattner e519f065cc this test is malformed
llvm-svn: 24993
2005-12-23 16:13:52 +00:00
Reid Spencer 8f8124edaa Fix PR409:
Implement the suggested check to ensure that out-of-range float constants
don't get accepted by LLVM accidentally. Adjust the supporting test cases
as well.

llvm-svn: 24963
2005-12-22 21:07:29 +00:00
Chris Lattner e5cdb4e6f2 new testcase
llvm-svn: 24902
2005-12-21 17:52:42 +00:00
Chris Lattner c6b578da26 new testcase, fails on X86 and probably others
llvm-svn: 24894
2005-12-21 05:09:57 +00:00
Chris Lattner 0d129ae8b1 A truly trivial testcase to ensure sparcv8 doesn't get completely broken
again.

llvm-svn: 24737
2005-12-16 06:24:55 +00:00
Nate Begeman 7853983b40 Add a case for float just to make sure the patterns for both precisions
are matching

llvm-svn: 24718
2005-12-14 22:51:13 +00:00
Chris Lattner eaee560c96 new testcase, each function should have one extension instr in it
llvm-svn: 24711
2005-12-14 19:24:08 +00:00
Chris Lattner f69abd13d4 new (undefined) testcase, distilled from 126.gcc that scalarrepl crashes on
llvm-svn: 24707
2005-12-14 17:23:20 +00:00
Chris Lattner 1b668bc808 Testcase for a problem that reid ran into
llvm-svn: 24676
2005-12-12 22:27:22 +00:00
Chris Lattner cf510b36c1 new testcase: sra should be able to eliminate all of these alloca's, despite
the presense of pointer casts

llvm-svn: 24666
2005-12-12 07:18:59 +00:00
Chris Lattner 98dcd12c28 new testcase for PR662
llvm-svn: 24618
2005-12-06 17:29:54 +00:00
Chris Lattner b0e9741022 New testcase for PR660
llvm-svn: 24601
2005-12-05 04:48:12 +00:00
Chris Lattner 7b43664aa0 testcase for PR664
llvm-svn: 24600
2005-12-05 03:22:46 +00:00
Chris Lattner 394350dcca new testcase, for PR672
llvm-svn: 24584
2005-12-04 06:03:25 +00:00
Chris Lattner 3339c6a1f6 expand testcase, which has been in my tree for a while now
llvm-svn: 24582
2005-12-03 18:26:41 +00:00
Chris Lattner 2492b74330 new testcase, miscompiled by simplifycfg. This has been distilled from Ptrdist/bc
llvm-svn: 24580
2005-12-03 18:25:32 +00:00
Chris Lattner bd23d34be0 Fix a bug in the testcase
llvm-svn: 24579
2005-12-03 17:20:57 +00:00
Chris Lattner 5d7a0a3aee new testcase for PR672
llvm-svn: 24577
2005-12-03 07:14:47 +00:00
Chris Lattner e4ffb9a57d New testcase that crashes llc
llvm-svn: 24570
2005-12-01 23:14:09 +00:00
Chris Lattner bd065599e6 Test that crashes the ppc backend.
llvm-svn: 24546
2005-11-30 20:40:28 +00:00
Chris Lattner 6299905a06 new testcase dse is miscompiling
llvm-svn: 24544
2005-11-30 19:37:08 +00:00