diff options
author | Hal Finkel <hfinkel@anl.gov> | 2013-07-08 20:00:03 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2013-07-08 20:00:03 +0000 |
commit | 21ada797577f85ebd66a5aeb29c5c2a4373029c5 (patch) | |
tree | 491e0a9a8862eaacea4c793ba95e214a66b68748 /llvm/lib/Target/PowerPC/PPCISelLowering.cpp | |
parent | 9f566a5a433d592d332fb70e6294867dcd4fe6ec (diff) | |
download | bcm5719-llvm-21ada797577f85ebd66a5aeb29c5c2a4373029c5.tar.gz bcm5719-llvm-21ada797577f85ebd66a5aeb29c5c2a4373029c5.zip |
PPC: Mark vector CC action for SETO and SETONE as Expand
Another bug found by llvm-stress! This fixes hitting
llvm_unreachable("Invalid integer vector compare condition");
at the end of getVCmpInst in PPCISelDAGToDAG.
llvm-svn: 185855
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelLowering.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index 685b082a435..1759c0415e5 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp @@ -487,6 +487,9 @@ PPCTargetLowering::PPCTargetLowering(PPCTargetMachine &TM) setCondCodeAction(ISD::SETUGE, MVT::v4f32, Expand); setCondCodeAction(ISD::SETULT, MVT::v4f32, Expand); setCondCodeAction(ISD::SETULE, MVT::v4f32, Expand); + + setCondCodeAction(ISD::SETO, MVT::v4f32, Expand); + setCondCodeAction(ISD::SETONE, MVT::v4f32, Expand); } if (Subtarget->has64BitSupport()) { |