mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
c7cbe2ad6b
Summary: Reported in https://github.com/opencv/opencv/issues/15413. We have serveral extended mnemonics for Move To/From Vector-Scalar Register Instructions eg: mffprd,mtfprd etc. We only support one of them, this patch add the others. Reviewers: nemanjai, steven.zhang, hfinkel, #powerpc Reviewed By: hfinkel Subscribers: wuzish, qcolombet, hiraditya, kbarton, MaskRay, shchenz, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D66963 llvm-svn: 370411
16 lines
540 B
LLVM
16 lines
540 B
LLVM
; RUN: llc -verify-machineinstrs -mcpu=pwr9 \
|
|
; RUN: -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s
|
|
|
|
; Ensure we don't crash by trying to convert directly from a subword load
|
|
; to a ppc_fp128 as we do for conversions to f32/f64.
|
|
define ppc_fp128 @test(i16* nocapture readonly %Ptr) {
|
|
entry:
|
|
%0 = load i16, i16* %Ptr, align 2
|
|
%conv = uitofp i16 %0 to ppc_fp128
|
|
ret ppc_fp128 %conv
|
|
; CHECK: lhz [[LD:[0-9]+]], 0(3)
|
|
; CHECK: mtfprwa [[MV:[0-9]+]], [[LD]]
|
|
; CHECK: xscvsxddp [[CONV:[0-9]+]], [[MV]]
|
|
; CHECK: bl __gcc_qadd
|
|
}
|