Skip to content
  • Chris Lattner's avatar
    Fix an X86-64 abi bug. We now compile: · 8924332e
    Chris Lattner authored
    void foo(short);
    void bar(unsigned short A) {
      foo(A);
    }
    
    into:
    
    _bar:
            subq $8, %rsp
            movswl %di, %edi
            call _foo
            addq $8, %rsp
            ret
    
    instead of:
    
    _bar:
            subq $8, %rsp
            call _foo
            addq $8, %rsp
            ret
    
    Testcase here: test/CodeGen/X86/x86-64-shortint.ll
    
    llvm-svn: 34615
    8924332e
Loading