[llvm-commits] [llvm] r78211 - in /llvm/trunk: lib/Target/PIC16/PIC16ISelLowering.cpp test/CodeGen/PIC16/sext.ll

Dan Gohman gohman at apple.com
Wed Aug 5 09:46:56 PDT 2009


Author: djg
Date: Wed Aug  5 11:46:43 2009
New Revision: 78211

URL: http://llvm.org/viewvc/llvm-project?rev=78211&view=rev
Log:
Fix a bug in the PIC16 backend.

Modified:
    llvm/trunk/lib/Target/PIC16/PIC16ISelLowering.cpp
    llvm/trunk/test/CodeGen/PIC16/sext.ll

Modified: llvm/trunk/lib/Target/PIC16/PIC16ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PIC16/PIC16ISelLowering.cpp?rev=78211&r1=78210&r2=78211&view=diff

==============================================================================
--- llvm/trunk/lib/Target/PIC16/PIC16ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/PIC16/PIC16ISelLowering.cpp Wed Aug  5 11:46:43 2009
@@ -403,7 +403,7 @@
     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 = 

Modified: llvm/trunk/test/CodeGen/PIC16/sext.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PIC16/sext.ll?rev=78211&r1=78210&r2=78211&view=diff

==============================================================================
--- llvm/trunk/test/CodeGen/PIC16/sext.ll (original)
+++ llvm/trunk/test/CodeGen/PIC16/sext.ll Wed Aug  5 11:46:43 2009
@@ -1,5 +1,4 @@
 ; RUN: llvm-as < %s | llc -march=pic16
-; XFAIL: *
 
 @main.auto.c = internal global i8 0		; <i8*> [#uses=1]
 





More information about the llvm-commits mailing list