1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
Commit Graph

1709 Commits

Author SHA1 Message Date
Chris Lattner
a01030bcf4 test that the ppc backend can do 64-bit cntlz
llvm-svn: 35328
2007-03-25 04:43:51 +00:00
Chris Lattner
60fa65770f new testcase
llvm-svn: 35326
2007-03-25 04:35:23 +00:00
Chris Lattner
6aa707f1b2 new testcase
llvm-svn: 35323
2007-03-25 02:17:58 +00:00
Chris Lattner
62598bf96c new testcase
llvm-svn: 35317
2007-03-25 01:44:40 +00:00
Evan Cheng
9992bbc5a0 Another test case.
llvm-svn: 35255
2007-03-22 01:55:16 +00:00
Evan Cheng
1a651088b1 Test case for PR1257
llvm-svn: 35253
2007-03-22 01:52:57 +00:00
Evan Cheng
ecfd152e0d New test case.
llvm-svn: 35240
2007-03-21 20:14:56 +00:00
Lauro Ramos Venancio
11d7d3fcaf bugfix: When the source register of CALL_NOLINK was LR, the following code was emitted:
mov lr, pc
    bx lr
So, the function was not called.

llvm-svn: 35218
2007-03-20 17:57:23 +00:00
Chris Lattner
10311baf63 These functions should use shll, not lea.
llvm-svn: 35203
2007-03-20 06:01:41 +00:00
Reid Spencer
c124adcc12 For PR1258:
Revise numeric value references to accommodate collapsed type planes.

llvm-svn: 35170
2007-03-19 18:27:35 +00:00
Evan Cheng
283468b827 GEP index sink test case.
llvm-svn: 35131
2007-03-17 03:18:32 +00:00
Devang Patel
f215bd701b Test case for X86 inline asm constraint 'I'
llvm-svn: 35130
2007-03-17 00:14:52 +00:00
Bill Wendling
8ced23ee5a And now support for MMX logical operations.
llvm-svn: 35125
2007-03-16 09:44:46 +00:00
Bill Wendling
feaff80149 Multiplication support for MMX.
llvm-svn: 35118
2007-03-15 21:24:36 +00:00
Evan Cheng
1464c63d5d ARM isel should match ldr x +/- x * (2^n) to ldr [x, +/- x, lsl #log2(n)].
llvm-svn: 35114
2007-03-14 23:26:40 +00:00
Evan Cheng
0fe7224a46 New test.
llvm-svn: 35091
2007-03-13 23:31:47 +00:00
Evan Cheng
64f09e6241 This got better.
llvm-svn: 35090
2007-03-13 23:26:41 +00:00
Bill Wendling
236cfc4344 Adding more arithmetic operators to MMX. This is an almost exact copy of
the addition. Please let me know if you have suggestions.

llvm-svn: 35055
2007-03-10 09:57:05 +00:00
Evan Cheng
8685e7d770 Test inline asm modifier 'c'.
llvm-svn: 35036
2007-03-08 22:45:31 +00:00
Chris Lattner
cec3666863 upgrade this testcase, add test for fp immediate to memory operand.
llvm-svn: 35034
2007-03-08 22:33:06 +00:00
Bill Wendling
4fbc327c54 Add MMX arithmetic testcase.
llvm-svn: 35032
2007-03-08 22:14:51 +00:00
Evan Cheng
511c8f6a24 Fix test case.
llvm-svn: 35029
2007-03-08 19:27:32 +00:00
Evan Cheng
5196ecbf5c New test case.
llvm-svn: 35006
2007-03-07 08:12:39 +00:00
Evan Cheng
7dccc59e5b New test case.
llvm-svn: 34991
2007-03-07 00:13:48 +00:00
Bill Wendling
c52174dee3 Add the emms intrinsic for MMX support.
llvm-svn: 34938
2007-03-05 23:09:45 +00:00
Lauro Ramos Venancio
3f855f6a54 Use init_array/fini_array sections for static contructors/destructors when the ABI is AAPCS.
Fix SingleSource/Regression/C/ConstructorDestructorAttributes test on arm-linux-gnueabi.

llvm-svn: 34931
2007-03-05 17:59:58 +00:00
Chris Lattner
fc3b6903e3 new testcase, corresponds to:
long long test(long long A, unsigned B) {
  return (A + ((long long)B << 32));
}

llvm-svn: 34911
2007-03-04 20:39:47 +00:00
Chris Lattner
e6d3ae4f2c New testcase for PR1239
llvm-svn: 34892
2007-03-03 23:42:50 +00:00
Evan Cheng
ce6c3c3004 Add a new test case.
llvm-svn: 34842
2007-03-02 10:37:19 +00:00
Anton Korobeynikov
eaf27d276a Ensure that fastcall'ed function is correctly mangled & stack is
properly aligned

llvm-svn: 34788
2007-03-01 16:29:22 +00:00
Chris Lattner
9d7106a01c Eliminate enable-x86-fastcc
llvm-svn: 34753
2007-02-28 18:38:58 +00:00
Chris Lattner
1fa940fc5f fastcc -> fastcall
llvm-svn: 34749
2007-02-28 18:35:36 +00:00
Chris Lattner
310a8f7f8f fastcc -> fastcall
llvm-svn: 34747
2007-02-28 18:21:50 +00:00
Chris Lattner
07db51943e fastcc -> fastcall
llvm-svn: 34746
2007-02-28 17:42:50 +00:00
Evan Cheng
f9a8f61e1b Fix test case.
llvm-svn: 34710
2007-02-28 00:36:33 +00:00
Reid Spencer
3a22b776c7 This test passes on x86/Linux now.
llvm-svn: 34686
2007-02-27 20:46:44 +00:00
Reid Spencer
794a68fbbe XFAIL this on x86-Linux until its fixed.
llvm-svn: 34651
2007-02-27 02:45:12 +00:00
Chris Lattner
0a14efc457 new testcase
llvm-svn: 34622
2007-02-26 03:16:20 +00:00
Chris Lattner
5c1d3eff0a new testcase
llvm-svn: 34614
2007-02-25 23:08:29 +00:00
Chris Lattner
4d419b02ec new testcase
llvm-svn: 34612
2007-02-25 22:23:15 +00:00
Jim Laskey
1c9a412982 Test for PR1224.
llvm-svn: 34609
2007-02-25 21:43:21 +00:00
Chris Lattner
200d389a17 verify that double is returned in XMM0 if the function is fastcc.
llvm-svn: 34591
2007-02-25 09:30:03 +00:00
Chris Lattner
b71ec8d1cf new testcase
llvm-svn: 34583
2007-02-25 08:23:01 +00:00
Chris Lattner
a38cc935a9 verify i128 return on x86-64 continues to codegen optimally.
llvm-svn: 34575
2007-02-25 06:06:49 +00:00
Chris Lattner
e7afa2a6d9 testcase for PR1219
llvm-svn: 34550
2007-02-24 02:08:00 +00:00
Bill Wendling
ecddfdcff7 Make the testcase correct.
llvm-svn: 34543
2007-02-23 23:23:41 +00:00
Bill Wendling
ea0c8f06ca Testcase for PR1164
llvm-svn: 34542
2007-02-23 23:19:32 +00:00
Bill Wendling
2c5f64532b PR1164:
Generate local names with a "llvm_cbe_" prefix using the actual name of the
variable instead of a temporary name.

llvm-svn: 34540
2007-02-23 22:45:08 +00:00
Jim Laskey
2a5840bc73 New test - practically wrote itself.
llvm-svn: 34538
2007-02-23 22:12:08 +00:00
Lauro Ramos Venancio
19040a3f0d bugfix: SP wasn't updated for varargs when frame pointer was eliminated.
llvm-svn: 34537
2007-02-23 21:53:48 +00:00
Lauro Ramos Venancio
7c2f17b629 Fix stack alignment in functions with varargs.
llvm-svn: 34532
2007-02-23 20:32:57 +00:00
Evan Cheng
5d49a6be02 -march=arm -enable-thumb => -march=thumb
llvm-svn: 34522
2007-02-23 03:15:39 +00:00
Evan Cheng
aa8e491a2f Added test case for PR1207.
llvm-svn: 34429
2007-02-19 21:53:59 +00:00
Evan Cheng
9482b32217 Fix test case.
llvm-svn: 34427
2007-02-19 21:47:02 +00:00
Chris Lattner
382462d0b6 new test
llvm-svn: 34372
2007-02-17 06:57:11 +00:00
Chris Lattner
95f531844a Test that large absolute addresses are properly folded into addr modes on
both ppc32 and ppc64.

llvm-svn: 34370
2007-02-17 06:41:57 +00:00
Chris Lattner
956bbc1712 new testcase that crashes llc
llvm-svn: 34367
2007-02-17 05:59:01 +00:00
Dale Johannesen
e864bf486f adding PR 1200 comment by request
llvm-svn: 34360
2007-02-17 01:12:15 +00:00
Dale Johannesen
960bd79f88 Fixes PR 1200
llvm-svn: 34359
2007-02-17 00:44:34 +00:00
Chris Lattner
fa6985a1d0 testcase for recent targetdata regression
llvm-svn: 34355
2007-02-16 23:11:43 +00:00
Reid Spencer
7d8001c1bd Update this test to compile properly and check against the correct
string generated by the CBE. This is no longer an XFAIL.

llvm-svn: 34327
2007-02-15 21:01:58 +00:00
Chris Lattner
b72af5df9b sanity check for *basic* i128 arithmetic on all hosts.
llvm-svn: 34259
2007-02-13 23:59:21 +00:00
Chris Lattner
e85be004b9 new testcase, by Dan Gohman
llvm-svn: 34255
2007-02-13 23:41:24 +00:00
Lauro Ramos Venancio
ff9f78e230 Add ABI information to ARM subtarget.
llvm-svn: 34245
2007-02-13 19:52:28 +00:00
Lauro Ramos Venancio
02ba8f20e3 According to ARM EABI, 8-bytes function arguments must be 8-bytes aligned.
llvm-svn: 34241
2007-02-13 14:07:13 +00:00
Chris Lattner
95c32f113a new testcase for PR1197
llvm-svn: 34215
2007-02-13 01:05:10 +00:00
Chris Lattner
ef0dd1c647 Add ppc-specific test for better i64 compare codegen.
llvm-svn: 34082
2007-02-09 04:49:46 +00:00
Evan Cheng
4b13f9f031 i64 setcc tests.
llvm-svn: 34067
2007-02-08 22:27:55 +00:00
Evan Cheng
5f5823c641 New test case.
llvm-svn: 34001
2007-02-07 09:24:03 +00:00
Evan Cheng
2bdfbce9ea Add a DYNAMIC_STACKALLOC test case.
llvm-svn: 33959
2007-02-06 07:18:27 +00:00
Chris Lattner
9263720b2b testcase for pr1181
llvm-svn: 33956
2007-02-06 06:07:34 +00:00
Lauro Ramos Venancio
45504fb6b4 Fix unord test.
llvm-svn: 33910
2007-02-05 16:33:56 +00:00
Reid Spencer
c7525207b8 Make the RUN: line readable.
llvm-svn: 33906
2007-02-05 10:09:41 +00:00
Reid Spencer
b33f883a96 For PR411:
Don't re-use var names.

llvm-svn: 33899
2007-02-05 04:00:04 +00:00
Chris Lattner
4223274f91 new testcase for x86 backend miscompilation
llvm-svn: 33883
2007-02-04 20:15:15 +00:00
Evan Cheng
8001366326 Add a test case.
llvm-svn: 33833
2007-02-03 09:14:10 +00:00
Evan Cheng
accef1b6a3 __builtin_isunordered test case.
llvm-svn: 33808
2007-02-03 00:50:45 +00:00
Lauro Ramos Venancio
64b7f3e640 Improves alloca test. Verifies SP restoration.
llvm-svn: 33802
2007-02-03 00:16:21 +00:00
Reid Spencer
591bfa1e0b Changes to support making the shift instructions be true BinaryOperators.
This feature is needed in order to support shifts of more than 255 bits
on large integer types.  This changes the syntax for llvm assembly to
make shl, ashr and lshr instructions look like a binary operator:
   shl i32 %X, 1
instead of
   shl i32 %X, i8 1
Additionally, this should help a few passes perform additional optimizations.

llvm-svn: 33776
2007-02-02 02:16:23 +00:00
Reid Spencer
1f769ed900 My mistake, my environment wasn't up to date. This passes now.
llvm-svn: 33769
2007-02-01 22:26:42 +00:00
Reid Spencer
b47ac467a6 XFAIL this on x86 linux as it continues to fail.
llvm-svn: 33768
2007-02-01 22:10:46 +00:00
Evan Cheng
a5c5daf15d Add a test case.
llvm-svn: 33742
2007-02-01 02:27:24 +00:00
Evan Cheng
e9701dce51 Added a thumb vararg test.
llvm-svn: 33740
2007-02-01 01:56:43 +00:00
Chris Lattner
c0baa88c14 new testcase
llvm-svn: 33731
2007-02-01 00:38:56 +00:00
Evan Cheng
b689aef6e2 Fix test case.
llvm-svn: 33730
2007-01-31 23:51:35 +00:00
Evan Cheng
5b168e6bc2 Fix test cases.
llvm-svn: 33725
2007-01-31 22:27:07 +00:00
Lauro Ramos Venancio
e22bc8635e ARM fix: Miscompilation when frame pointer can't be eliminated. Uninitialized frame pointer register is used.
llvm-svn: 33703
2007-01-31 13:12:46 +00:00
Evan Cheng
b671880197 Combine two tests.
llvm-svn: 33668
2007-01-30 23:06:22 +00:00
Reid Spencer
82293f34de For PR411:
Update these tests to not use the same name even though the type of the
value differs. After PR411 hits, type planes will be gone and it will be
illegal for a name to be used twice, regardless of type.

llvm-svn: 33660
2007-01-30 16:16:01 +00:00
Reid Spencer
5be7fde6dd Make the input legal.
llvm-svn: 33655
2007-01-30 06:32:25 +00:00
Evan Cheng
228c786e28 Add / merge tests.
llvm-svn: 33654
2007-01-30 03:06:19 +00:00
Chris Lattner
1800f109f8 test that the 'ir' constraint works.
llvm-svn: 33646
2007-01-29 23:55:20 +00:00
Chris Lattner
31daf51489 new testcase
llvm-svn: 33642
2007-01-29 23:45:03 +00:00
Evan Cheng
bd325bdcd2 Thumb tests.
llvm-svn: 33561
2007-01-27 00:05:14 +00:00
Evan Cheng
ffed2abf43 Merge tests.
llvm-svn: 33560
2007-01-27 00:04:57 +00:00
Reid Spencer
6a31ec1259 For PR761:
Remove "target endian/pointersize" or add "target datalayout" to make
the test parse properly or set the datalayout because defaults changes.

For PR645:
Make global names use the @ prefix.

For llvm-upgrade changes:
Fix test cases or completely remove use of llvm-upgrade for test cases
that cannot survive the new renaming or upgrade capabilities.

llvm-svn: 33533
2007-01-26 08:25:06 +00:00
Evan Cheng
a644323f02 Fix test case.
llvm-svn: 33507
2007-01-25 22:28:32 +00:00
Lauro Ramos Venancio
696a1c1143 fix fcopysign test
llvm-svn: 33503
2007-01-25 22:11:02 +00:00
Evan Cheng
2c3d4a0cd3 Added some load from stack frames test cases.
llvm-svn: 33473
2007-01-24 02:27:03 +00:00
Evan Cheng
242a527390 Thumb test cases.
llvm-svn: 33471
2007-01-23 23:28:50 +00:00
Evan Cheng
536af6b123 Thumb test cases.
llvm-svn: 33468
2007-01-23 22:47:58 +00:00
Evan Cheng
9dc8803378 Make it work for both Linux and Mac OS.
llvm-svn: 33451
2007-01-22 23:18:10 +00:00
Evan Cheng
464315647f Pasto
llvm-svn: 33444
2007-01-22 23:01:22 +00:00
Evan Cheng
fd911b3b10 Fix test case.
llvm-svn: 33432
2007-01-22 18:57:39 +00:00
Evan Cheng
bf113a03b7 Add test case extracted from lencod. Spiller was infinite looping in GetRegForReload().
llvm-svn: 33383
2007-01-19 22:43:14 +00:00
Evan Cheng
1897bbd2cf ARM test cases contributed by Apple.
llvm-svn: 33354
2007-01-19 09:20:23 +00:00
Reid Spencer
145fef9445 For PR1028:
Ensure the CBE generates calls to GCC builtins for stack_save and
stack_restore when it encounters the corresponding intrinsics.

Patch by Gordon Henriksen.

llvm-svn: 33312
2007-01-17 23:20:43 +00:00
Anton Korobeynikov
2509765bef * Fix one more bug in PIC codegen: extra load is needed for *all*
non-statics.
* Introduce new option to output zero-initialized data to .bss section.
This can reduce size of binaries. Enable it by default for ELF &
Cygwin/Mingw targets. Probably, Darwin should be also added.

llvm-svn: 33299
2007-01-17 10:33:08 +00:00
Reid Spencer
4572ce85b0 Regression is gone, don't try to find it on clean target.
llvm-svn: 33296
2007-01-17 07:59:14 +00:00