1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-30 07:22:55 +01:00
Commit Graph

253 Commits

Author SHA1 Message Date
Evan Cheng
27b3286714 Add a lea instruction selection test case.
llvm-svn: 28549
2006-05-30 06:53:55 +00:00
Evan Cheng
227c09e7d2 New test case. x86 isel was creating a cycle in the DAG.
llvm-svn: 28477
2006-05-25 20:21:19 +00:00
Evan Cheng
4890385e8f -sched-commute-nodes is now on by default.
llvm-svn: 28467
2006-05-25 08:39:25 +00:00
Chris Lattner
451da50e94 One of these xforms is only safe with unsafe math enabled.
llvm-svn: 28446
2006-05-24 00:49:32 +00:00
Evan Cheng
9b5ce5e4e9 Added a test case for FP equality check.
llvm-svn: 28434
2006-05-23 06:41:23 +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
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
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
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
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
db3b029ab9 Intel mode no longer uses %'s on registers
llvm-svn: 28028
2006-05-01 05:56:51 +00:00
Evan Cheng
ba1c03668e Update. It should use two shufps, not three!
llvm-svn: 28013
2006-04-28 18:55:34 +00:00
Evan Cheng
b44e984d41 Test case for PR748
llvm-svn: 28000
2006-04-28 01:21:37 +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
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
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
ceb52c4403 New testcase
llvm-svn: 27766
2006-04-17 20:32:27 +00:00
Evan Cheng
087af2ecda Better way to splat v2f64
llvm-svn: 27735
2006-04-16 18:16:43 +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
Evan Cheng
3fa05e3c55 Add a vselect test case.
llvm-svn: 27557
2006-04-10 07:30:13 +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
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
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
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
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
Evan Cheng
842650daa7 Add a BUILD_VECTOR with unpack and interleave testcase.
llvm-svn: 27121
2006-03-25 09:48:14 +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
Evan Cheng
de3a1b5f94 Zero vector testcase
llvm-svn: 27061
2006-03-24 08:02:50 +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
Evan Cheng
a54cc613d4 Add a vector shuffle test case
llvm-svn: 27027
2006-03-24 01:22:25 +00:00
Reid Spencer
8f8c063f1c 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
Evan Cheng
4dfb6044e2 Replace vector splat test case.
llvm-svn: 26963
2006-03-22 21:39:25 +00:00
Evan Cheng
266e00ff52 Add a v2f64 splat (using movlhps) test case.
llvm-svn: 26962
2006-03-22 20:29:11 +00:00
Evan Cheng
26861ff2af Option -enable-x86-lsr has been removed
llvm-svn: 26903
2006-03-20 18:26:11 +00:00
Chris Lattner
0f6374dd9d update testcases for x86 fastcc changes.
llvm-svn: 26842
2006-03-18 23:48:54 +00:00
Evan Cheng
0517ea7b2b Add a lsr common loop invariant hoisting test case
llvm-svn: 26827
2006-03-17 19:45:54 +00:00
Evan Cheng
3f177bef5e Also requires -mattr=-sse3
llvm-svn: 26778
2006-03-15 18:05:13 +00:00
Chris Lattner
9e05c75c4a weak globals on darwin require an extra load, breaking this test
llvm-svn: 26695
2006-03-10 17:55:10 +00:00
Evan Cheng
bd2494add8 Add a test case for (store (op (load ..) ..) ..) folding.
llvm-svn: 26656
2006-03-09 19:04:30 +00:00
Evan Cheng
dd0a62e4c7 Add another test case for instruction scheduling.
llvm-svn: 26507
2006-03-03 18:58:09 +00:00
Chris Lattner
7e618993f9 Remove these testcases. These intrinsics are going away
llvm-svn: 26478
2006-03-03 00:16:23 +00:00
Evan Cheng
af289a7ee4 Add a regression test for bug 478.
llvm-svn: 26471
2006-03-02 21:48:34 +00:00
Chris Lattner
d4f7c91dd7 new testcase
llvm-svn: 26439
2006-03-01 03:43:38 +00:00
Evan Cheng
b02cde9c1f 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
bae1b3cab9 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
Evan Cheng
0b1f2f9d11 New test case: use lea for imul by some constants.
llvm-svn: 26378
2006-02-25 10:16:10 +00:00
Evan Cheng
cb55494fa8 lea.ll is XFAIL until we implement convertToThreeAddress.
llvm-svn: 26377
2006-02-25 10:15:22 +00:00
Evan Cheng
41154489a2 Add a test case for 'lea'.
llvm-svn: 26322
2006-02-23 00:12:12 +00:00
Evan Cheng
79edabf042 Added a (store (op (load ...) ...) ...) folding test case.
llvm-svn: 25933
2006-02-03 06:46:41 +00:00
Chris Lattner
5523fc1a1f new testcase
llvm-svn: 25897
2006-02-02 06:35:38 +00:00
Chris Lattner
da8766b370 new testcase for the 'ret double folding with load' opzn
llvm-svn: 25868
2006-02-01 01:45:02 +00:00
Evan Cheng
7bcbf75f7f 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
21fc565586 new testcase for the 'C++' failures last night.
llvm-svn: 25820
2006-01-30 22:43:10 +00:00
Evan Cheng
1db9df37e9 Use Intel assembly syntax to look for ST
llvm-svn: 25713
2006-01-27 22:51:51 +00:00
Evan Cheng
e66a46d289 X86 dag isel is now (soon) the default.
llvm-svn: 25699
2006-01-27 21:15:22 +00:00
Evan Cheng
5d4ce9a622 These are fp stack test cases.
llvm-svn: 25698
2006-01-27 21:14:23 +00:00
Evan Cheng
b22e64b314 XFAIL tailcall test cases until it's implemented.
llvm-svn: 25697
2006-01-27 21:13:27 +00:00
Evan Cheng
cfb48227b9 Added a load folding bug test case.
llvm-svn: 25472
2006-01-20 01:12:23 +00:00
Nate Begeman
85b2dc0c4e bswap implementation
llvm-svn: 25312
2006-01-14 03:14:10 +00:00
Chris Lattner
696d16afce new testcase, each function should have one extension instr in it
llvm-svn: 24711
2005-12-14 19:24:08 +00:00
Chris Lattner
a5ec715ca6 new testcase, for PR672
llvm-svn: 24584
2005-12-04 06:03:25 +00:00
Chris Lattner
6efddab321 This should not be dce'd
llvm-svn: 24433
2005-11-20 21:46:52 +00:00
Andrew Lenharth
56419c94c7 oops
llvm-svn: 24432
2005-11-20 21:42:49 +00:00
Andrew Lenharth
957fb1697e check that rdtsc is generated from readcyclecounter
llvm-svn: 24431
2005-11-20 21:41:59 +00:00
John Criswell
ef91e2976a Moved to Regression/Codegen/Generic.
llvm-svn: 23829
2005-10-19 18:52:52 +00:00
John Criswell
190ec6e8f8 Force i386 code generation for an i386 specific test.
llvm-svn: 23821
2005-10-19 18:30:39 +00:00
Chris Lattner
281f3131ba new testcase corresponding to PR621
llvm-svn: 23157
2005-08-30 21:02:51 +00:00
Chris Lattner
8c314e8d4d Fix a bug in the RUN line
llvm-svn: 22945
2005-08-21 16:37:36 +00:00
Chris Lattner
95a4e948da remove dead args
llvm-svn: 22900
2005-08-19 01:17:18 +00:00
Chris Lattner
d00cbf7aa6 remove dead flags
llvm-svn: 22898
2005-08-19 01:14:40 +00:00
Chris Lattner
bc93ac834b None of these tests should require a working lli, they are codegen tests,
not execution tests.

llvm-svn: 22655
2005-08-04 19:55:39 +00:00
Chris Lattner
e69b731c71 Fix this to test the BE we care about
llvm-svn: 22631
2005-08-03 21:01:46 +00:00
Chris Lattner
85f898e908 Allow this to pass on non-linux systems as well, such as darwin
llvm-svn: 22484
2005-07-20 19:12:00 +00:00
Chris Lattner
abf3f0819e set the target triple so that we don't fail due to X86 abi issues
llvm-svn: 22479
2005-07-20 03:56:48 +00:00
Chris Lattner
4b72dca53e add test to check for tail calls
llvm-svn: 22048
2005-05-15 05:52:51 +00:00
Chris Lattner
b7c5669c14 Make sure this is not eligible for tail-call-elimination so that we test
the correct thing.

llvm-svn: 22039
2005-05-14 23:54:55 +00:00
Chris Lattner
b87c89a574 new testcase
llvm-svn: 22037
2005-05-14 23:52:09 +00:00
Chris Lattner
918a411976 Ensure these casts are done with the hardware fildll instruction
llvm-svn: 22013
2005-05-14 07:09:25 +00:00
Chris Lattner
923a239d83 new testcase
llvm-svn: 21989
2005-05-13 22:15:26 +00:00
Chris Lattner
0fcef3637c Force x86 backend
llvm-svn: 21940
2005-05-13 16:20:59 +00:00
Chris Lattner
827d1b2e40 add a correct run line
llvm-svn: 21918
2005-05-13 04:20:57 +00:00
Chris Lattner
d1170afe2c reg test
llvm-svn: 21914
2005-05-12 23:09:04 +00:00
Chris Lattner
e91ac6383d tweak test to accept the (good) code emitted by the pattern isel
llvm-svn: 21812
2005-05-09 05:54:27 +00:00
Chris Lattner
86997483e2 New testcase that crashes the pattern isel
llvm-svn: 21800
2005-05-09 03:36:11 +00:00
Nate Begeman
e82d5edfee Update dejagnu tests to use the new pattern isel flag
llvm-svn: 21311
2005-04-16 04:25:48 +00:00
Chris Lattner
08e03f0b05 make this test more interesting
llvm-svn: 21170
2005-04-09 04:55:14 +00:00
Chris Lattner
0fa73a71ba this has now been fixed
llvm-svn: 21026
2005-04-02 16:17:57 +00:00
Chris Lattner
c39609dc9f don't forget to use the right code generator :)
llvm-svn: 21017
2005-04-02 05:40:03 +00:00
Chris Lattner
cf107cbc20 new testcase
llvm-svn: 21016
2005-04-02 05:35:00 +00:00
Chris Lattner
aa106acb77 make sure this test tests the intended target.
llvm-svn: 20777
2005-03-23 01:32:03 +00:00
Chris Lattner
2dc8d8c026 A testcase that LLC produces illegal asm on for Prolangs-C/cdecl now.
llvm-svn: 20182
2005-02-14 21:31:41 +00:00
Chris Lattner
7e3c525545 xfail this.
llvm-svn: 19846
2005-01-26 07:09:44 +00:00
Chris Lattner
bde28b8ebe New testcase for rotate instructions. Each function should codegen to a
rotate.

llvm-svn: 19691
2005-01-19 08:04:08 +00:00
Chris Lattner
33f679dba9 Add a test for 16-bit sh*d.
llvm-svn: 19688
2005-01-19 07:37:01 +00:00
Chris Lattner
ceca0b7b62 Ensure that each these functions generates a sh[rl]d instruction.
llvm-svn: 19682
2005-01-19 06:30:36 +00:00
Chris Lattner
84cb260633 This is a carefully contrived testcase where the X86 ISel is emitting all loads
before other ops, causing it to spill like mad.  This occurs in
164.gzip:flush_block.

llvm-svn: 19648
2005-01-17 23:16:01 +00:00
Chris Lattner
a5f6a52471 New testcase for a problem that occurred in 132.ijpeg
llvm-svn: 19630
2005-01-17 06:25:59 +00:00
Chris Lattner
0c47dfe0ce The pattern isel is aggressively codegen'ing all of the loads in these
functions together at the start of the basic block, causing massive spillage.
The old isel codegened the loads wherever they happened to land, so it
generated good code for the first case, but bad code for the second.

We really want the pattern isel to generate (the same) good code for both.

llvm-svn: 19448
2005-01-11 03:05:03 +00:00
Chris Lattner
41cda01765 New testcase.
llvm-svn: 19363
2005-01-08 05:44:07 +00:00
Chris Lattner
a6e901bfbd Add a testcase I forgot to commit earlier.
llvm-svn: 19338
2005-01-07 07:56:08 +00:00
Chris Lattner
e81118c243 New testcase
llvm-svn: 19312
2005-01-06 21:18:53 +00:00
Chris Lattner
dcf0d97a87 xfail these tests, whcih require more info in the code generator to implement
correctly.

llvm-svn: 19257
2005-01-02 19:01:33 +00:00
Chris Lattner
2cfe515d2b Add several testcases for new optimizations in the code generator.
llvm-svn: 19244
2005-01-02 02:30:04 +00:00
Chris Lattner
bfb6258ba6 This program doesn't break anything anymore.
llvm-svn: 18411
2004-12-02 02:26:18 +00:00
Tanya Lattner
bea68bc91a Adding srcdir arg
llvm-svn: 18020
2004-11-19 22:45:25 +00:00
Tanya Lattner
97976107e3 Adding subdirectory dg.exp files in order to be able to use dejagnu to only run specific tests (located in some subdirectory of Regression)
llvm-svn: 17712
2004-11-13 23:00:45 +00:00
Chris Lattner
dcf409f32f Update this to expect AT&T syntax
llvm-svn: 17552
2004-11-07 01:46:16 +00:00
Tanya Lattner
06a7c559be Adding XFAIL lines for dejagnu support.
llvm-svn: 17514
2004-11-06 20:38:27 +00:00
Chris Lattner
0a1bfd5be0 New testcase. The setcc is only used by a select, but not as a condition:
it cannot be folded in.

llvm-svn: 16839
2004-10-08 16:33:40 +00:00
Chris Lattner
09b3764b2f Make this testcase more interesting
llvm-svn: 14561
2004-07-02 05:43:51 +00:00
Chris Lattner
e1ab44ea7a Isnan became unordered
llvm-svn: 14322
2004-06-22 16:13:57 +00:00
Chris Lattner
5c115a9836 This testcase is a bit silly now, but oh well :)
llvm-svn: 14188
2004-06-15 21:46:16 +00:00
Chris Lattner
e010d3c940 Test that the X86 backend is only emitting one fucom instruction
for each 'COM =' line.

llvm-svn: 14147
2004-06-11 05:30:34 +00:00
Chris Lattner
6fc9e8dd94 Testcase for PR369
llvm-svn: 14136
2004-06-11 02:59:47 +00:00
Chris Lattner
c90dfb64dd Check to make sure that isnan doesn't require calling a function
llvm-svn: 14135
2004-06-11 02:54:54 +00:00
John Criswell
43d7449301 Test for memory mapped I/O intrinsics.
llvm-svn: 12943
2004-04-14 13:52:56 +00:00
Chris Lattner
197f2fcda2 new testcase that crashes the fp stackifier
llvm-svn: 12932
2004-04-13 21:44:54 +00:00
Chris Lattner
b8987d93b7 Make the testcase more challenging
llvm-svn: 12892
2004-04-13 17:18:07 +00:00
John Criswell
c477529404 Added testcase for the llvm.readport and llvm.writeport intrinsics.
llvm-svn: 12868
2004-04-12 16:42:43 +00:00
Chris Lattner
09658d95d2 New testcase
llvm-svn: 12845
2004-04-11 23:18:30 +00:00
Chris Lattner
319b7cf974 New testcase
llvm-svn: 12843
2004-04-11 22:05:16 +00:00
Chris Lattner
05de580cfb New testcase
llvm-svn: 12837
2004-04-11 20:24:01 +00:00
Chris Lattner
ae7950aef4 Tests for fp cmov's that I forgot to check in earlier
llvm-svn: 12585
2004-04-01 03:47:56 +00:00
Chris Lattner
beaf1cdb85 Test folding comparisons into select instructions
llvm-svn: 12559
2004-03-30 22:37:04 +00:00
Chris Lattner
399515cbfb New testcase. This now codegens to:
max:
        mov %EAX, DWORD PTR [%ESP + 4]
        mov %ECX, DWORD PTR [%ESP + 8]
        cmp %EAX, %ECX
        cmovle %EAX, %ECX
        ret

Someone should really implement passing arguments through registers for
known-internal functions.  :)

llvm-svn: 12558
2004-03-30 22:36:52 +00:00
Chris Lattner
83b4416593 New testcase for select instructions
llvm-svn: 12552
2004-03-30 21:21:14 +00:00
Chris Lattner
2ec31046bc Add testcase for the casts that are missing in PR249
llvm-svn: 11727
2004-02-23 03:21:09 +00:00
Chris Lattner
7a84c6d9f9 Test for actual support, not just for lack of crashage
llvm-svn: 11460
2004-02-15 01:21:39 +00:00
Chris Lattner
402f5ee496 New testcase for PR237: [x86] wierd stack/frame pointer manipulation
llvm-svn: 11456
2004-02-15 00:21:04 +00:00
Chris Lattner
7ab8db4907 Test that the code generator supports these intrinsics
llvm-svn: 11432
2004-02-14 02:51:40 +00:00
Chris Lattner
4ce80b3f86 Test that we get rep movs when calling memcpy
llvm-svn: 11352
2004-02-12 17:53:43 +00:00