Commit Graph

150 Commits

Author SHA1 Message Date
Anton Korobeynikov 506eaf7915 Next stage into switch lowering refactoring
1. Fix some bugs in the jump table lowering threshold
2. Implement much better metric for optimal pivot selection
3. Tune thresholds for different lowering methods
4. Implement shift-and trick for lowering small (<machine word
length) cases with few destinations. Good testcase will follow.

llvm-svn: 35816
2007-04-09 12:31:58 +00:00
Chris Lattner ea1369275b add another test
llvm-svn: 35801
2007-04-09 05:26:48 +00:00
Chris Lattner 8a06ca02d8 The x constraint allows scalar FP values as well as vectors.
llvm-svn: 35798
2007-04-09 05:11:03 +00:00
Chris Lattner e505615531 new testcase for PR1308
llvm-svn: 35784
2007-04-09 00:45:42 +00:00
Chris Lattner d733c17fce testcase for PR1314
llvm-svn: 35778
2007-04-08 22:22:53 +00:00
Reid Spencer 91b273ae39 XFAIL this test for now. It will be a while before I can implement this
intrinsic properly in SDISel.

llvm-svn: 35692
2007-04-05 22:57:45 +00:00
Anton Korobeynikov 506d8db8a4 Fix test
llvm-svn: 35683
2007-04-05 16:43:09 +00:00
Reid Spencer cce90f55ed Implement the llvm.bit.part_select.iN.iN.iN overloaded intrinsic.
llvm-svn: 35678
2007-04-04 23:48:25 +00:00
Anton Korobeynikov 029ea7ee74 Fix test
llvm-svn: 35673
2007-04-04 21:28:36 +00:00
Anton Korobeynikov 915e61736b Properly emit range comparisons for switch cases, where neighbour cases
go to the same destination. Now we're producing really good code for
switch-lower-feature.ll testcase

llvm-svn: 35672
2007-04-04 21:14:49 +00:00
Evan Cheng 8f61b79d60 Better still.
llvm-svn: 35663
2007-04-04 08:49:40 +00:00
Evan Cheng 06df995e9f Fix test case.
llvm-svn: 35662
2007-04-04 07:41:33 +00:00
Evan Cheng ee06655d6b These got better.
llvm-svn: 35661
2007-04-04 07:41:15 +00:00
Evan Cheng 07d353c9d7 New asm test case.
llvm-svn: 35641
2007-04-04 00:15:17 +00:00
Evan Cheng 10a25d43fa New test case.
llvm-svn: 35636
2007-04-03 23:40:54 +00:00
Evan Cheng 2c2ec5f138 New test case.
llvm-svn: 35628
2007-04-03 21:38:03 +00:00
Chris Lattner 67f99e955b new testcase, where we should use a negative stride
llvm-svn: 35608
2007-04-03 00:13:16 +00:00
Chris Lattner d9eb0d9f5a Add a regtest for cases we now recognize as rotates, thanks to Scott Michel's
recent dagcombine patch

llvm-svn: 35606
2007-04-02 22:08:54 +00:00
Chris Lattner dd59227a73 fix this testcase on ppc hosts
llvm-svn: 35603
2007-04-02 20:39:48 +00:00
Evan Cheng f7f8e349d6 New test case.
llvm-svn: 35599
2007-04-02 18:47:13 +00:00
Chris Lattner be96c646dc new testcase.
llvm-svn: 35591
2007-04-02 06:33:10 +00:00
Chris Lattner 745f59bfde new testcase
llvm-svn: 35589
2007-04-02 05:57:59 +00:00
Chris Lattner 0a844d8df1 my patch fixed the fixme.
llvm-svn: 35582
2007-04-02 05:08:54 +00:00
Chris Lattner 4cb30067c2 new testcase for PR1296
llvm-svn: 35574
2007-04-02 01:32:59 +00:00
Lauro Ramos Venancio 6be85337b0 - Divides the comparisons in two types: comparisons that only use N and Z
flags (ARMISD::CMPNZ) and comparisons that use all flags (ARMISD::CMP).
- Defines the instructions: TST, TEQ (ARM) and TST (Thumb).

llvm-svn: 35573
2007-04-02 01:30:03 +00:00
Reid Spencer 84c90a9431 Let llvm-upgrade upgrade the bswap intrinsic.
llvm-svn: 35569
2007-04-02 01:09:19 +00:00
Reid Spencer 0b544372d4 Let llvm-upgrade upgrade bswap intrinsic.
llvm-svn: 35568
2007-04-02 01:08:02 +00:00
Reid Spencer a5f996bd27 Revert the name changes for llvm.bswap to allow (and test) llvm-upgrade of
this intrinsic.

llvm-svn: 35566
2007-04-02 00:51:15 +00:00
Reid Spencer c3d87685ad For PR1297:
Update these test cases to use proper signatures for bswap which is now
and overloaded intrinsic. Its name must be of the form llvm.bswap.i32.i32
since both the parameter and the result or of type "iAny". Also, the
bit counting intrinsics changed to always return i32.

llvm-svn: 35548
2007-04-01 07:36:28 +00:00
Evan Cheng 67a49736af Missing '&&'
llvm-svn: 35519
2007-03-30 22:03:49 +00:00
Chris Lattner d1440c429f add a testcase for x86
llvm-svn: 35516
2007-03-30 21:22:46 +00:00
Evan Cheng 1d78d3deeb New test case.
llvm-svn: 35515
2007-03-30 20:41:18 +00:00
Evan Cheng 9ca63d605c Test case for PR1279 (part 2).
llvm-svn: 35511
2007-03-30 20:15:22 +00:00
Chris Lattner 17331da6bd new testcases
llvm-svn: 35433
2007-03-28 18:11:17 +00:00
Chris Lattner 66cb5db76f new testcase
llvm-svn: 35432
2007-03-28 18:03:14 +00:00
Reid Spencer 44259a29c0 Remove use of implementation keyword.
llvm-svn: 35412
2007-03-28 02:38:26 +00:00
Evan Cheng 1f4acbfea9 Added a test case for PR1279.
llvm-svn: 35398
2007-03-28 01:32:57 +00:00
Chris Lattner ae0f8dcd61 upgrade a random test
llvm-svn: 35395
2007-03-28 01:27:12 +00:00
Evan Cheng 44a7f3a65d Test case for PR1266.
llvm-svn: 35367
2007-03-26 22:58:35 +00:00
Anton Korobeynikov 6e30008249 Add "feature" testcase for new switch lowering code
llvm-svn: 35345
2007-03-25 22:01:14 +00:00
Chris Lattner 25f82845b3 new testcase
llvm-svn: 35331
2007-03-25 05:00:23 +00:00
Chris Lattner 31b80d55ee test that the ppc backend can do 64-bit cntlz
llvm-svn: 35328
2007-03-25 04:43:51 +00:00
Chris Lattner 6089146aa3 new testcase
llvm-svn: 35326
2007-03-25 04:35:23 +00:00
Chris Lattner f4579c7872 new testcase
llvm-svn: 35323
2007-03-25 02:17:58 +00:00
Chris Lattner 421ac38bd6 new testcase
llvm-svn: 35317
2007-03-25 01:44:40 +00:00
Evan Cheng 9a95c6e7db Another test case.
llvm-svn: 35255
2007-03-22 01:55:16 +00:00
Evan Cheng 51ace3b1f6 Test case for PR1257
llvm-svn: 35253
2007-03-22 01:52:57 +00:00
Evan Cheng a7f81f29ce New test case.
llvm-svn: 35240
2007-03-21 20:14:56 +00:00
Lauro Ramos Venancio a88c4a74f3 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 d95d748a4d These functions should use shll, not lea.
llvm-svn: 35203
2007-03-20 06:01:41 +00:00