Bill Schmidt
12ae7fd2da
[PowerPC] Fix PR16556 (handle undef ppcf128 in LowerFP_TO_INT).
...
PPCTargetLowering::LowerFP_TO_INT() expects its source operand to be
either an f32 or f64, but this is not checked. A long double
(ppcf128) operand will normally be custom-lowered to a conversion to
f64 in this context. However, this isn't the case for an UNDEF node.
This patch recognizes a ppcf128 as a legal source operand for
FP_TO_INT only if it's an undef, in which case it creates an undef of
the target type.
At some point we might want to do a wholesale custom lowering of
ISD::UNDEF when the type is ppcf128, but it's not really clear that's
a great idea, and probably more work than it's worth for a situation
that only arises in the case of a programming error. At this point I
think simple is best.
The test case comes from PR16556, and is a crash-test only.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185821 91177308-0d34-0410-b5e6-96231b3b80d8
2013-07-08 14:22:45 +00:00
..
2013-03-15 13:21:21 +00:00
2013-04-30 20:04:37 +00:00
2013-05-16 14:30:09 +00:00
2013-02-04 15:19:18 +00:00
2013-03-12 15:18:14 +00:00
2013-03-28 03:38:16 +00:00
2013-03-12 15:18:14 +00:00
2013-03-12 15:18:14 +00:00
2013-04-30 17:52:57 +00:00
2013-04-30 17:52:57 +00:00
2013-05-16 17:58:02 +00:00
2013-07-01 19:42:46 +00:00
2013-01-30 23:43:27 +00:00
2013-01-30 21:17:42 +00:00
2013-05-13 19:34:37 +00:00
2013-03-27 06:52:27 +00:00
2013-06-13 20:23:34 +00:00
2013-03-21 23:23:34 +00:00
2013-03-27 13:20:52 +00:00
2012-12-25 17:22:53 +00:00
2012-11-24 13:18:25 +00:00
2013-04-10 22:05:25 +00:00
2013-03-28 20:35:18 +00:00
2012-11-30 13:28:31 +00:00
2013-07-08 06:16:58 +00:00
2013-01-17 17:45:19 +00:00
2013-03-28 03:38:16 +00:00
2013-07-03 17:59:07 +00:00
2013-03-18 17:40:27 +00:00
2013-05-18 09:20:39 +00:00
2013-05-16 20:28:05 +00:00
2013-06-07 22:16:19 +00:00
2013-07-01 19:34:59 +00:00
2013-05-15 21:37:41 +00:00
2013-05-15 21:37:41 +00:00
2013-05-15 21:37:41 +00:00
2013-04-30 17:52:57 +00:00
2013-04-30 17:52:57 +00:00
2013-05-15 21:37:41 +00:00
2013-04-01 16:31:56 +00:00
2013-03-21 20:28:52 +00:00
2013-03-18 22:08:16 +00:00
2012-12-25 18:51:18 +00:00
2013-04-10 22:05:25 +00:00
2013-04-30 17:52:57 +00:00
2013-06-13 20:23:34 +00:00
2013-01-11 10:36:13 +00:00
2013-04-01 18:42:58 +00:00
2013-06-13 20:23:34 +00:00
2013-04-11 12:32:23 +00:00
2013-04-06 19:30:30 +00:00
2013-03-15 05:06:04 +00:00
2013-03-21 19:03:19 +00:00
2013-04-07 22:11:09 +00:00
2013-04-01 17:52:07 +00:00
2013-04-01 17:52:07 +00:00
2013-04-01 17:52:07 +00:00
2013-03-12 16:27:52 +00:00
2013-04-05 23:29:01 +00:00
2012-12-20 17:47:27 +00:00
2013-06-13 20:23:34 +00:00
2013-03-12 15:18:14 +00:00
2013-04-30 17:52:57 +00:00
2013-03-18 20:31:44 +00:00
2013-01-14 22:04:38 +00:00
2013-04-30 17:52:57 +00:00
2013-02-21 17:12:27 +00:00
2013-02-21 17:12:27 +00:00
2013-02-21 17:12:27 +00:00
2013-06-13 20:23:34 +00:00
2013-02-21 17:12:27 +00:00
2013-02-21 17:12:27 +00:00
2013-02-21 17:12:27 +00:00
2013-02-21 17:12:27 +00:00
2013-02-21 17:12:27 +00:00
2013-02-21 00:38:25 +00:00
2013-02-21 00:38:25 +00:00
2013-02-21 00:38:25 +00:00
2012-11-27 23:36:26 +00:00
2013-05-30 03:05:14 +00:00
2013-06-13 20:23:34 +00:00
2013-01-09 03:36:49 +00:00
2013-05-15 21:37:41 +00:00
2013-05-08 12:16:14 +00:00
2013-04-01 15:58:15 +00:00
2013-06-13 20:23:34 +00:00
2013-01-28 18:36:58 +00:00
2013-04-12 04:06:46 +00:00
2013-04-02 18:37:08 +00:00
2013-04-03 13:05:44 +00:00
2013-07-08 14:22:45 +00:00
2013-02-01 22:59:51 +00:00
2013-01-17 19:46:51 +00:00
2013-03-19 08:09:38 +00:00
2013-05-16 16:15:18 +00:00
2013-07-01 20:52:27 +00:00
2013-03-12 16:27:52 +00:00
2013-06-28 20:00:07 +00:00
2013-04-08 16:24:03 +00:00
2013-04-30 17:52:57 +00:00
2012-12-30 19:03:32 +00:00
2013-03-27 00:02:20 +00:00
2013-06-28 20:18:14 +00:00
2013-02-08 21:35:47 +00:00
2013-04-01 18:18:44 +00:00
2013-03-19 19:52:04 +00:00
2013-06-13 20:23:34 +00:00
2013-06-13 20:23:34 +00:00
2013-04-27 00:43:16 +00:00
2013-04-30 17:52:57 +00:00
2013-04-30 17:52:57 +00:00
2013-02-26 21:28:57 +00:00
2013-02-21 00:38:25 +00:00
2013-05-30 03:05:14 +00:00
2013-07-02 21:29:06 +00:00
2013-05-30 03:05:14 +00:00
2012-12-14 17:02:38 +00:00
2013-07-02 21:29:06 +00:00
2013-05-30 03:05:14 +00:00
2013-07-02 21:29:06 +00:00
2013-03-27 02:40:14 +00:00
2013-03-19 15:23:39 +00:00
2013-05-26 18:08:30 +00:00
2013-03-15 15:27:13 +00:00
2013-07-02 03:39:34 +00:00
2013-06-28 22:29:56 +00:00
2013-02-20 20:41:42 +00:00
2013-03-12 15:18:14 +00:00
2013-03-09 18:25:40 +00:00
2013-02-20 22:43:03 +00:00
2013-01-12 19:06:44 +00:00
2012-11-30 19:15:10 +00:00
2013-03-29 08:57:48 +00:00
2012-12-19 15:49:14 +00:00
2013-03-27 00:02:20 +00:00
2013-06-13 20:23:34 +00:00