]> granicus.if.org Git - llvm/commitdiff
[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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288905 91177308-0d34-0410-b5e6-96231b3b80d8

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

index e12e38ea7fefddc1ea2c59629224e280756fa798..53668f05b59ba25e25c32cf2b0eabbc9a3d7a0a9 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 cc022c5d6e86814634bf62eea179e60ad9f38405..99be3c8068df3c9ce886034f5e10ed70c8f254c9 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
 }
-