summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan McKay <dylanmckay34@gmail.com>2016-12-07 12:34:47 +0000
committerDylan McKay <dylanmckay34@gmail.com>2016-12-07 12:34:47 +0000
commit99b756eb4062b1901e6a4ddfc0a47cc6fd758fc9 (patch)
tree958826d8edfa0868c25b3cf7eb1eee6689bd3cc5
parent926ab5b00b92c47c4a8f5f676bf0012a7c72524a (diff)
downloadbcm5719-llvm-99b756eb4062b1901e6a4ddfc0a47cc6fd758fc9.tar.gz
bcm5719-llvm-99b756eb4062b1901e6a4ddfc0a47cc6fd758fc9.zip
[AVR] Expand 'SELECT_CC' nodes whereever possible
llvm-svn: 288905
-rw-r--r--llvm/lib/Target/AVR/AVRISelLowering.cpp4
-rw-r--r--llvm/test/CodeGen/AVR/expand-integer-failure.ll2
2 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Target/AVR/AVRISelLowering.cpp b/llvm/lib/Target/AVR/AVRISelLowering.cpp
index e12e38ea7fe..53668f05b59 100644
--- a/llvm/lib/Target/AVR/AVRISelLowering.cpp
+++ b/llvm/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/llvm/test/CodeGen/AVR/expand-integer-failure.ll b/llvm/test/CodeGen/AVR/expand-integer-failure.ll
index cc022c5d6e8..99be3c8068d 100644
--- a/llvm/test/CodeGen/AVR/expand-integer-failure.ll
+++ b/llvm/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
}
-
OpenPOWER on IntegriCloud