From 038449d89624237312c06d24cd6def9029f06a6d Mon Sep 17 00:00:00 2001 From: Dylan McKay Date: Wed, 7 Dec 2016 12:34:47 +0000 Subject: [PATCH] [AVR] Expand 'SELECT_CC' nodes whereever possible git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288905 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/AVR/AVRISelLowering.cpp | 4 ++-- test/CodeGen/AVR/expand-integer-failure.ll | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/Target/AVR/AVRISelLowering.cpp b/lib/Target/AVR/AVRISelLowering.cpp index e12e38ea7fe..53668f05b59 100644 --- a/lib/Target/AVR/AVRISelLowering.cpp +++ b/lib/Target/AVR/AVRISelLowering.cpp @@ -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); diff --git a/test/CodeGen/AVR/expand-integer-failure.ll b/test/CodeGen/AVR/expand-integer-failure.ll index cc022c5d6e8..99be3c8068d 100644 --- a/test/CodeGen/AVR/expand-integer-failure.ll +++ b/test/CodeGen/AVR/expand-integer-failure.ll @@ -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 } - -- 2.50.1