1 ; RUN: llc -verify-machineinstrs -mcpu=pwr9 \
2 ; RUN: -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s
4 ; Ensure we don't crash by trying to convert directly from a subword load
5 ; to a ppc_fp128 as we do for conversions to f32/f64.
6 define ppc_fp128 @test(i16* nocapture readonly %Ptr) {
8 %0 = load i16, i16* %Ptr, align 2
9 %conv = uitofp i16 %0 to ppc_fp128
11 ; CHECK: lhz [[LD:[0-9]+]], 0(3)
12 ; CHECK: mtfprwa [[MV:[0-9]+]], [[LD]]
13 ; CHECK: xscvsxddp [[CONV:[0-9]+]], [[MV]]
14 ; CHECK: bl __gcc_qadd