r238200 - [MIPS] fix extension of integer types (function calls)

H.J. Lu hjl.tools at gmail.com
Tue May 26 08:20:01 PDT 2015


On Tue, May 26, 2015 at 6:30 AM, Petar Jovanovic
<petar.jovanovic at imgtec.com> wrote:
> Author: petarj
> Date: Tue May 26 08:30:54 2015
> New Revision: 238200
>
> URL: http://llvm.org/viewvc/llvm-project?rev=238200&view=rev
> Log:
> [MIPS] fix extension of integer types (function calls)
>
> On MIPS unsigned int type should not be zero extended but sign-extended.
>
> Patch by Strahinja Petrovic.
>
> Differential Revision: http://reviews.llvm.org/D9198
>
> Added:
>     cfe/trunk/test/CodeGen/mips-unsigned-ext-var.c
>     cfe/trunk/test/CodeGen/mips-unsigned-extend.c
> Modified:
>     cfe/trunk/lib/CodeGen/ABIInfo.h
>     cfe/trunk/lib/CodeGen/CGCall.cpp
>     cfe/trunk/lib/CodeGen/TargetInfo.cpp
>     cfe/trunk/test/CodeGen/atomics-inlining.c
>     cfe/trunk/test/CodeGenCXX/mips-size_t-ptrdiff_t.cpp
>

On Fedora 20/x86-64, I got

/export/gnu/import/git/llvm/tools/clang/test/CodeGen/mips-unsigned-extend.c:13:9:
error: expected string not found in input
// N64: call void @foo(i32 signext %0)
        ^
<stdin>:1:1: note: scanning from here
; ModuleID = '/export/gnu/import/git/llvm/tools/clang/test/CodeGen/mips-unsigned-extend.c'
^
<stdin>:17:2: note: possible intended match here
 call void @foo(i32 signext %1)


-- 
H.J.



More information about the cfe-commits mailing list