Chris Lattner
e3152e54b5
Compile:
int test3(int a, int b) { return (a < 0) ? a : 0; }
to:
_test3:
srawi r2, r3, 31
and r3, r2, r3
blr
instead of:
_test3:
cmpwi cr0, r3, 1
li r2, 0
blt cr0, LBB2_2 ;entry
LBB2_1: ;entry
mr r3, r2
LBB2_2: ;entry
blr
This implements: PowerPC/select_lt0.ll:seli32_a_a
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30517 91177308-0d34-0410-b5e6-96231b3b80d8
2006-09-20 06:41:35 +00:00
..
2006-09-20 06:41:35 +00:00
2006-09-18 18:00:18 +00:00
2005-04-21 22:36:52 +00:00
2006-09-18 14:47:26 +00:00
2006-05-12 06:33:49 +00:00
2006-03-23 18:06:46 +00:00
2006-09-02 05:26:59 +00:00
2006-09-15 03:57:23 +00:00
2006-09-05 20:19:27 +00:00
2006-09-04 06:21:35 +00:00
2006-05-12 06:33:49 +00:00
2006-08-21 21:20:18 +00:00
2006-09-14 07:41:12 +00:00
2006-09-05 20:19:27 +00:00
2006-08-02 12:30:23 +00:00
2006-09-10 23:03:44 +00:00
2006-07-20 17:27:58 +00:00
2006-08-03 00:16:56 +00:00
2006-08-27 12:54:02 +00:00
2006-08-27 12:54:02 +00:00
2006-08-27 12:54:02 +00:00
2006-09-19 18:02:01 +00:00
2006-09-05 02:12:02 +00:00
2006-09-05 02:12:02 +00:00
2006-08-27 22:42:52 +00:00
2006-09-05 02:12:02 +00:00
2006-09-05 02:12:02 +00:00