Commit Graph

3195 Commits

Author SHA1 Message Date
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