mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-24 22:32:47 +00:00
56e9c5f92b
The isSigned argument of makeLibCall function was hard-coded to false (unsigned). This caused zero extension on MIPS64 soft float. As the result SingleSource/Benchmarks/Stanford/FloatMM test and SingleSource/UnitTests/2005-07-17-INT-To-FP test failed. The solution was to use the proper argument. Patch by Strahinja Petrovic. Differential Revision: http://reviews.llvm.org/D7292 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228765 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
326 B
LLVM
16 lines
326 B
LLVM
; RUN: llc -march=mips64 -mcpu=mips64r2 -soft-float -O0 < %s | FileCheck %s
|
|
|
|
|
|
define double @foo() #0 {
|
|
entry:
|
|
%x = alloca i32, align 4
|
|
store volatile i32 -32, i32* %x, align 4
|
|
%0 = load volatile i32* %x, align 4
|
|
%conv = sitofp i32 %0 to double
|
|
ret double %conv
|
|
|
|
; CHECK-NOT: dsll
|
|
; CHECK-NOT: dsrl
|
|
|
|
}
|