[AVR] Expand 'SELECT_CC' nodes whereever possible
authorDylan McKay <dylanmckay34@gmail.com>
Wed, 7 Dec 2016 12:34:47 +0000 (12:34 +0000)
committerDylan McKay <dylanmckay34@gmail.com>
Wed, 7 Dec 2016 12:34:47 +0000 (12:34 +0000)
llvm-svn: 288905

llvm/lib/Target/AVR/AVRISelLowering.cpp
llvm/test/CodeGen/AVR/expand-integer-failure.ll

index e12e38e..53668f0 100644 (file)
@@ -84,8 +84,8 @@ AVRTargetLowering::AVRTargetLowering(AVRTargetMachine &tm)
 
   setOperationAction(ISD::SELECT_CC, MVT::i8, Custom);
   setOperationAction(ISD::SELECT_CC, MVT::i16, Custom);
-  setOperationAction(ISD::SELECT_CC, MVT::i32, Custom);
-  setOperationAction(ISD::SELECT_CC, MVT::i64, Custom);
+  setOperationAction(ISD::SELECT_CC, MVT::i32, Expand);
+  setOperationAction(ISD::SELECT_CC, MVT::i64, Expand);
   setOperationAction(ISD::SETCC, MVT::i8, Custom);
   setOperationAction(ISD::SETCC, MVT::i16, Custom);
   setOperationAction(ISD::SETCC, MVT::i32, Custom);
index cc022c5..99be3c8 100644 (file)
@@ -1,5 +1,4 @@
 ; RUN: llc < %s -march=avr | FileCheck %s
-; XFAIL: *
 
 ; Causes an assertion error
 ; Assertion failed: (Lo.getValueType() == TLI.getTypeToTransformTo(*DAG.getContext(), Op.getValueType()) &&
@@ -20,4 +19,3 @@ then:
 else:
   ret void
 }
-