Permalink
Browse files

Fix test failures. Currently, test/CodeGen/X86/early-ifcvt.ll fails, …

…but it's unclear why
  • Loading branch information...
1 parent 520808b commit c0734daa8c42b8f08d49f29fe7966e30e4910ebd @krasin krasin committed Jul 4, 2012
Showing with 4 additions and 3 deletions.
  1. +2 −2 lib/Target/DCPU16/DCPU16TargetMachine.cpp
  2. +2 −1 test/CodeGen/DCPU16/2012-04-09-i8-zeroext.ll
@@ -60,8 +60,8 @@ TargetPassConfig *DCPU16TargetMachine::createPassConfig(PassManagerBase &PM) {
bool DCPU16PassConfig::addInstSelector() {
// Install an instruction selector.
- PM->add(createDCPU16ISelDag(getDCPU16TargetMachine(), getOptLevel()));
+ addPass(createDCPU16ISelDag(getDCPU16TargetMachine(), getOptLevel()));
// Peephole optimisations
- PM->add(createDCPU16Peephole());
+ addPass(createDCPU16Peephole());
return false;
}
@@ -1,8 +1,9 @@
-; RUN: llc < %s -march=dcpu16 | not grep {UNREACHABLE|ERROR}
+; RUN: llc < %s -march=dcpu16 | FileCheck %s
target datalayout = "e-p:16:16:16-i8:16:16-i16:16:16-i32:16:16-s0:16:16-n16"
target triple = "dcpu16"
define i16 @hailstone() nounwind {
+; CHECK: :hailstone
entry:
%retval = alloca i16, align 2
%x = alloca i16, align 2

0 comments on commit c0734da

Please sign in to comment.