Fix a bug in the PIC16 backend.
authorDan Gohman <gohman@apple.com>
Wed, 5 Aug 2009 16:46:43 +0000 (16:46 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 5 Aug 2009 16:46:43 +0000 (16:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78211 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PIC16/PIC16ISelLowering.cpp
test/CodeGen/PIC16/sext.ll

index 915669b72787159a19dcd6eff68d9b2786e10249..ec9a52fba07be8a485a40e30bd3bd3afa1552f6d 100644 (file)
@@ -403,7 +403,7 @@ PIC16TargetLowering::MakePIC16Libcall(PIC16ISD::PIC16Libcall Call,
     Entry.isZExt = !isSigned;
     Args.push_back(Entry);
   }
-  SDValue Callee = DAG.getExternalSymbol(getPIC16LibcallName(Call), MVT::i8);
+  SDValue Callee = DAG.getExternalSymbol(getPIC16LibcallName(Call), MVT::i16);
 
    const Type *RetTy = RetVT.getTypeForMVT();
    std::pair<SDValue,SDValue> CallInfo = 
index 45e73578fac8f5b353bafc2f6b99971a2b2e9026..b26b62beb6998e96aaffd2f5235a57943c67dcbf 100644 (file)
@@ -1,5 +1,4 @@
 ; RUN: llvm-as < %s | llc -march=pic16
-; XFAIL: *
 
 @main.auto.c = internal global i8 0            ; <i8*> [#uses=1]