mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
6429b834f8
LLVM PR/29052 highlighted that FastISel for MIPS attempted to lower arguments assuming that it was using the paired 32bit registers to perform operations for f64. This mode of operation is not supported for MIPSR6. This patch resolves the reported issue by adding additional checks for unsupported floating point unit configuration. Thanks to mike.k for reporting this issue! Reviewers: seanbruno, vkalintiris Differential Review: https://reviews.llvm.org/D23795 llvm-svn: 280706
15 lines
434 B
LLVM
15 lines
434 B
LLVM
; RUN: not llc -march=mipsel -mcpu=mips32r2 -fast-isel -mattr=+fp64 < %s \
|
|
; RUN: -fast-isel-abort=3
|
|
|
|
; Check that FastISel aborts when we have 64bit FPU registers. FastISel currently
|
|
; supports AFGR64 only, which uses paired 32 bit registers.
|
|
|
|
define zeroext i1 @f(double %value) {
|
|
entry:
|
|
; CHECK-LABEL: f:
|
|
; CHECK: sdc1
|
|
%value.addr = alloca double, align 8
|
|
store double %value, double* %value.addr, align 8
|
|
ret i1 false
|
|
}
|