Commit Graph

3007 Commits

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