1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
Commit Graph

2748 Commits

Author SHA1 Message Date
Chris Lattner
055ad7974b new testcase
llvm-svn: 28396
2006-05-19 19:34:09 +00:00
Reid Spencer
16022f0a6a 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
85ad9ed15d 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
b7d690c984 PR736 has already been fixed. Remove XFAIL marker.
llvm-svn: 28362
2006-05-17 20:21:44 +00:00
Evan Cheng
cbaf0e6f8e New test case for vector type argument pass by value.
llvm-svn: 28361
2006-05-17 20:20:04 +00:00
Andrew Lenharth
c5ff8cf4cb Added regression that breaks gcc4 build
llvm-svn: 28358
2006-05-17 19:23:31 +00:00
Chris Lattner
7c87670503 add an external symbol testcase
llvm-svn: 28345
2006-05-17 04:20:13 +00:00
Chris Lattner
1a730975a1 new test for various forms of calls
llvm-svn: 28344
2006-05-17 03:57:31 +00:00
Chris Lattner
26e1420ae9 test for support to pass/return vectors to calls.
llvm-svn: 28343
2006-05-17 00:18:23 +00:00
Chris Lattner
4f7dfb31f3 Another testcase that shouldn't need vrsave twiddling
llvm-svn: 28332
2006-05-16 18:23:55 +00:00
Chris Lattner
8de83accfe Remove this xfail-d test, which doesn't make any sense
llvm-svn: 28328
2006-05-16 17:22:42 +00:00
Chris Lattner
5f2a11f1bf New testcase for instcombine
llvm-svn: 28272
2006-05-13 02:00:07 +00:00
Chris Lattner
436447489d new testcase for a recent rlwimi crash.
llvm-svn: 28242
2006-05-12 16:28:13 +00:00
Evan Cheng
787496ebcd New scheduling test case.
llvm-svn: 28232
2006-05-12 01:59:17 +00:00
Evan Cheng
12417fb32c Update test case
llvm-svn: 28216
2006-05-10 19:53:05 +00:00
Chris Lattner
f99a429a12 New testcase, check that dead code doesn't pessimize instcombine
llvm-svn: 28214
2006-05-10 18:56:04 +00:00
Evan Cheng
0f8516a3e0 Another instruction scheduling test case
llvm-svn: 28203
2006-05-09 07:20:24 +00:00
Evan Cheng
02e8d5f2d6 Test case for PR770
llvm-svn: 28198
2006-05-09 06:48:12 +00:00
Chris Lattner
4d8e0c2a55 new testcase
llvm-svn: 28173
2006-05-08 20:58:58 +00:00
Chris Lattner
0da270237b 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
3da425e496 new testcase we handle right now.
llvm-svn: 28147
2006-05-06 18:15:50 +00:00
Chris Lattner
1038441de5 new testcase
llvm-svn: 28142
2006-05-06 09:09:47 +00:00
Chris Lattner
d689dd7659 new testcase from ghostscript that inf looped instcombine
llvm-svn: 28140
2006-05-06 08:58:06 +00:00
Chris Lattner
953b6c92de New testcase
llvm-svn: 28125
2006-05-05 06:38:40 +00:00
Chris Lattner
058c9af16b new testcase that crashes the instcombine pass
llvm-svn: 28100
2006-05-04 17:33:24 +00:00
Evan Cheng
ef2fbe7460 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
7e45e4d5c8 A few instruction scheduling test cases.
llvm-svn: 28077
2006-05-03 02:11:36 +00:00
Chris Lattner
85ba2cb9bf New testcase that crashes the new CFE.
llvm-svn: 28042
2006-05-01 23:18:55 +00:00
Chris Lattner
db3b029ab9 Intel mode no longer uses %'s on registers
llvm-svn: 28028
2006-05-01 05:56:51 +00:00
Chris Lattner
8665f8644d new testcase miscompiled by instcombine
llvm-svn: 28018
2006-04-28 22:17:20 +00:00
Chris Lattner
6b7d67bb51 testcase that crashes the ppc backend, which can't sextinreg(i1)
llvm-svn: 28016
2006-04-28 21:52:24 +00:00
Evan Cheng
ba1c03668e Update. It should use two shufps, not three!
llvm-svn: 28013
2006-04-28 18:55:34 +00:00
Chris Lattner
c251c24048 new testcase
llvm-svn: 28006
2006-04-28 04:14:29 +00:00
Evan Cheng
b44e984d41 Test case for PR748
llvm-svn: 28000
2006-04-28 01:21:37 +00:00
Chris Lattner
7fd4f0d367 This should turn into one vector shuffle instruction.
llvm-svn: 27996
2006-04-27 21:13:58 +00:00
Chris Lattner
ad7fe264bd new testcase
llvm-svn: 27986
2006-04-27 05:00:43 +00:00
Chris Lattner
24beb0433f new testcase
llvm-svn: 27981
2006-04-26 18:32:59 +00:00
Andrew Lenharth
a9f21ab75c another c99 style problem
llvm-svn: 27969
2006-04-25 19:27:56 +00:00
Evan Cheng
3f495010ed Added a movq test case.
llvm-svn: 27962
2006-04-24 23:03:22 +00:00
Evan Cheng
d0db6f1a7d Two more build_vector tests.
llvm-svn: 27944
2006-04-22 06:19:11 +00:00
Evan Cheng
27a8d019e0 movddup is a SSE3 instruction.
llvm-svn: 27932
2006-04-21 16:42:47 +00:00
Evan Cheng
19394ba09a Add && to each RUN: line (except the last one).
llvm-svn: 27927
2006-04-21 04:58:23 +00:00
Evan Cheng
b940192ce1 More build_vector tests.
llvm-svn: 27926
2006-04-21 01:22:41 +00:00
Evan Cheng
0365ba09c8 Check for llc crash.
llvm-svn: 27925
2006-04-21 01:21:23 +00:00
Evan Cheng
5cae86002c To be replaced with another test.
llvm-svn: 27924
2006-04-21 01:12:32 +00:00
Chris Lattner
a94e008bca new testcase
llvm-svn: 27911
2006-04-20 20:48:32 +00:00
Evan Cheng
ffa39ac531 Don't know what I was thinking...
llvm-svn: 27909
2006-04-20 19:47:28 +00:00
Evan Cheng
979f2ce83b Vector extract element test case.
llvm-svn: 27892
2006-04-20 17:59:30 +00:00
Evan Cheng
7576c0bc8f Vector insert test case.
llvm-svn: 27890
2006-04-20 17:50:10 +00:00
Chris Lattner
92956ffc70 allow this dir to get pruned
llvm-svn: 27889
2006-04-20 17:45:33 +00:00
Chris Lattner
8d5d62d759 Remove this target's reg tests
llvm-svn: 27888
2006-04-20 17:44:51 +00:00
Chris Lattner
8559c20194 Fails with all sparcs
llvm-svn: 27887
2006-04-20 17:43:41 +00:00
Andrew Lenharth
a9851de72e can we cast between pointers and IntPtrType
llvm-svn: 27879
2006-04-20 14:54:17 +00:00
Evan Cheng
b1b845b408 v16i8 splat with 2 punpcklbw and a single pshufd.
llvm-svn: 27877
2006-04-20 09:05:16 +00:00
Evan Cheng
c78a17f26f 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
9ea64ab2bc 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
cd5bc4b2eb Added a movhlps, movlhps test case.
llvm-svn: 27871
2006-04-20 08:47:47 +00:00
Chris Lattner
f0c4339139 New testcase for a codegen crash
llvm-svn: 27867
2006-04-20 05:57:43 +00:00
Chris Lattner
43ef757c0e new testcase
llvm-svn: 27803
2006-04-18 17:56:30 +00:00
Chris Lattner
fd1fb64f66 Add tests for v8i16 and v16i8
llvm-svn: 27791
2006-04-18 03:54:50 +00:00
Chris Lattner
ab9ad1cdc1 new testcase
llvm-svn: 27787
2006-04-18 03:22:16 +00:00
Chris Lattner
c22e565b1b New testcase, shouldn't touch vrsave
llvm-svn: 27776
2006-04-17 21:48:03 +00:00
Chris Lattner
ceb52c4403 New testcase
llvm-svn: 27766
2006-04-17 20:32:27 +00:00
Chris Lattner
af62fa8b51 Some more cases that can be generated with two instructions
llvm-svn: 27759
2006-04-17 17:54:18 +00:00
Chris Lattner
f0fc91e4d7 New testcases
llvm-svn: 27753
2006-04-17 06:58:16 +00:00
Chris Lattner
fb4fb42e54 new testcase
llvm-svn: 27751
2006-04-17 06:06:50 +00:00
Chris Lattner
78ab345316 New testcase
llvm-svn: 27749
2006-04-17 05:58:22 +00:00
Chris Lattner
dc4f42f75d 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
087af2ecda Better way to splat v2f64
llvm-svn: 27735
2006-04-16 18:16:43 +00:00
Chris Lattner
dc53296ea1 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
043ed1eefa 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
dbe00bf8d7 new testcase, vector operations should be CSE'd
llvm-svn: 27690
2006-04-14 05:09:53 +00:00
Chris Lattner
5eb63e14c3 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
a8a5fea940 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
6794b8e049 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
7f45a6639b from the linux kernel
llvm-svn: 27674
2006-04-13 19:50:07 +00:00
Chris Lattner
2763672aca Fix this regex to match what llvmgcc4 produces also
llvm-svn: 27673
2006-04-13 19:46:16 +00:00
Chris Lattner
69bc609781 Try xfailing this
llvm-svn: 27669
2006-04-13 18:15:24 +00:00
Andrew Lenharth
fe51509b60 fix this for the more restrictive linkage
llvm-svn: 27667
2006-04-13 17:52:32 +00:00
Chris Lattner
908de0d45f 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
87d369960c Only look at .ll files in this directory
llvm-svn: 27665
2006-04-13 17:32:53 +00:00
Chris Lattner
eec81793f9 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
93829fa037 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
82586d100d Don't get confused by dead casts.
llvm-svn: 27662
2006-04-13 17:26:54 +00:00
Chris Lattner
0c06377b9c Fix an accidental commit.
llvm-svn: 27661
2006-04-13 17:21:49 +00:00
Chris Lattner
6cddb81c90 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
1b60100f18 Oops, move misplaced test
llvm-svn: 27659
2006-04-13 17:18:42 +00:00
Chris Lattner
f2663af875 These are only XFAILs with llvmgcc3, they pass with llvmgcc4
llvm-svn: 27658
2006-04-13 17:16:21 +00:00
Chris Lattner
2c017add7e 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
84304b7661 Update a count, this test now passes.
llvm-svn: 27655
2006-04-13 16:52:13 +00:00
Tanya Lattner
9cd1518d42 Added the ability to xfail based on llvmgcc version
llvm-svn: 27635
2006-04-12 21:57:40 +00:00
Reid Spencer
a1e3495326 Don't dump the llc assembly output to stdout.
llvm-svn: 27631
2006-04-12 21:03:04 +00:00
Chris Lattner
d81cef2175 new testcase
llvm-svn: 27622
2006-04-12 19:04:27 +00:00
Tanya Lattner
ace568086f 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
0dd4945141 These casts should turn into gep instructions
llvm-svn: 27618
2006-04-12 18:07:41 +00:00
Chris Lattner
67bcbca856 two equivalent vsplti*s in different types should be CSEd.
llvm-svn: 27613
2006-04-12 17:36:04 +00:00
Chris Lattner
3941d5991f Rename this file
llvm-svn: 27611
2006-04-12 17:01:11 +00:00
Chris Lattner
259e49f05f 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
c1af264854 new testcase
llvm-svn: 27608
2006-04-12 16:49:16 +00:00
Chris Lattner
160aece6a1 new testcase
llvm-svn: 27601
2006-04-12 03:24:46 +00:00
Chris Lattner
3410f3ce09 new testcase
llvm-svn: 27572
2006-04-10 23:06:18 +00:00
Chris Lattner
b6b6409589 New testcase
llvm-svn: 27570
2006-04-10 22:45:37 +00:00
Evan Cheng
3fa05e3c55 Add a vselect test case.
llvm-svn: 27557
2006-04-10 07:30:13 +00:00
Chris Lattner
5dd268a48e add new testcase
llvm-svn: 27537
2006-04-08 07:13:46 +00:00
Chris Lattner
eb990aaaf6 new testcase for shufflevector
llvm-svn: 27508
2006-04-08 01:17:42 +00:00
Evan Cheng
06b01067e0 Doh!
llvm-svn: 27500
2006-04-07 21:52:15 +00:00
Evan Cheng
1041cdddc2 Added more shuffle tests
llvm-svn: 27481
2006-04-07 05:35:45 +00:00
Chris Lattner
f3f1a0f172 Add testcases for vpku[hw]um(x,x)
llvm-svn: 27466
2006-04-06 22:27:59 +00:00
Reid Spencer
f6ff0f1ead 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
5340c1f247 Add vmrg(x,x) tests
llvm-svn: 27462
2006-04-06 22:02:11 +00:00
Chris Lattner
e1efb9ea23 Add tests for vmrg[hl]*
llvm-svn: 27459
2006-04-06 21:19:37 +00:00
Chris Lattner
9d4b5fa2b8 test vperm promotion
llvm-svn: 27454
2006-04-06 19:21:02 +00:00
Chris Lattner
e547562ea3 new testcase
llvm-svn: 27449
2006-04-06 18:26:13 +00:00
Chris Lattner
e4a7c4ecc2 new testcase that was miscompiled to vspltisb
llvm-svn: 27438
2006-04-05 17:38:50 +00:00
Chris Lattner
4bdc1f01dd new testcase
llvm-svn: 27435
2006-04-05 06:54:14 +00:00
Evan Cheng
74a1eae0c4 Separate out to 2 test cases
llvm-svn: 27430
2006-04-05 04:40:55 +00:00
Andrew Lenharth
2fb0f0fa69 make this test less exacting
llvm-svn: 27429
2006-04-05 03:31:45 +00:00
Evan Cheng
41d19540f2 Add a new shuffle test case that requires pshuflw / pshufhw pair.
llvm-svn: 27426
2006-04-05 01:44:57 +00:00
Chris Lattner
1a4d5e9b56 New testcase
llvm-svn: 27401
2006-04-04 17:38:31 +00:00
Chris Lattner
0e93cb9bc0 new testcase
llvm-svn: 27397
2006-04-04 17:20:45 +00:00
Andrew Lenharth
7d56275f4f test powers of 2
llvm-svn: 27369
2006-04-03 04:14:39 +00:00
Andrew Lenharth
a6e52528c0 test some more mul by constant removal
llvm-svn: 27366
2006-04-03 03:16:09 +00:00
Andrew Lenharth
6aa31b3b67 Make sure mul by constant 5 is turned into a s4addq
llvm-svn: 27365
2006-04-02 21:47:07 +00:00
Chris Lattner
240932561d New testcase that crashes the compiler.
llvm-svn: 27333
2006-04-02 00:23:59 +00:00
Chris Lattner
5d0c18c998 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
bce001c462 new testcases
llvm-svn: 27327
2006-04-01 08:02:51 +00:00
Chris Lattner
a8bc001cd3 new testcase for PR726
llvm-svn: 27325
2006-04-01 04:47:17 +00:00
Chris Lattner
fff8fbdcf4 An identity shuffle shouldn't generate any permute code.
llvm-svn: 27316
2006-03-31 22:16:19 +00:00
Chris Lattner
828fce9ca2 new testcase
llvm-svn: 27311
2006-03-31 21:53:01 +00:00
Chris Lattner
649d3c7021 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
da2a24b26b new testcase
llvm-svn: 27289
2006-03-31 06:01:48 +00:00
Chris Lattner
0220aa8d3c Dag operator should be able to be template params.
llvm-svn: 27262
2006-03-30 22:49:59 +00:00
Chris Lattner
f56ee2961c new testcase that crashes instcombine
llvm-svn: 27260
2006-03-30 22:01:08 +00:00
Evan Cheng
e96f5af925 Add a pshufhw test case.
llvm-svn: 27251
2006-03-29 22:51:28 +00:00
Evan Cheng
0e323f1e49 Use unpcklpd for v2f64 splat.
llvm-svn: 27249
2006-03-29 18:59:48 +00:00
Chris Lattner
c8eb55d37d new testcase
llvm-svn: 27242
2006-03-29 00:12:08 +00:00
Chris Lattner
bd095fd427 new testcase
llvm-svn: 27234
2006-03-28 20:32:12 +00:00
Evan Cheng
e5ae0c50ab Use movhpd is even better than movlhps.
llvm-svn: 27217
2006-03-28 06:40:57 +00:00
Jim Laskey
792c32936a 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
d02894f466 Adding links to a node collapsed during type merging crashes.
llvm-svn: 27193
2006-03-27 23:38:48 +00:00
Chris Lattner
4eb9c18314 Correct the vandc testcase
llvm-svn: 27137
2006-03-25 23:12:47 +00:00
Chris Lattner
50e6d5cdae new testcases
llvm-svn: 27134
2006-03-25 23:04:34 +00:00
Evan Cheng
842650daa7 Add a BUILD_VECTOR with unpack and interleave testcase.
llvm-svn: 27121
2006-03-25 09:48:14 +00:00
Chris Lattner
3ce06174c5 New tests for vsplti*
llvm-svn: 27105
2006-03-25 06:11:56 +00:00
Evan Cheng
892e20720f Added a scalar to vector with zero extension testcase
llvm-svn: 27101
2006-03-25 05:58:52 +00:00
Chris Lattner
a9f9f0ce44 New testcase
llvm-svn: 27067
2006-03-24 17:57:24 +00:00
Evan Cheng
de3a1b5f94 Zero vector testcase
llvm-svn: 27061
2006-03-24 08:02:50 +00:00
Chris Lattner
9cc10794b1 new testcase
llvm-svn: 27058
2006-03-24 07:47:53 +00:00
Chris Lattner
66fc7472d8 fix two spellos
llvm-svn: 27050
2006-03-24 07:13:29 +00:00
Evan Cheng
17446e6261 Add a v2f64 shuffle case.
llvm-svn: 27038
2006-03-24 02:56:00 +00:00