39 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 52; RUN: llc --mtriple=loongarch32 --mattr=+32s,+lasx < %s | FileCheck %s --check-prefix=LA323; RUN: llc --mtriple=loongarch64 --mattr=+lasx < %s | FileCheck %s --check-prefix=LA644 5define <8 x float> @insert_bitcast_v8f32(<8 x float> %a, i32 %b) nounwind {6; LA32-LABEL: insert_bitcast_v8f32:7; LA32: # %bb.0: # %entry8; LA32-NEXT: movgr2fr.w $fa1, $a09; LA32-NEXT: xvinsve0.w $xr0, $xr1, 110; LA32-NEXT: ret11;12; LA64-LABEL: insert_bitcast_v8f32:13; LA64: # %bb.0: # %entry14; LA64-NEXT: xvinsgr2vr.w $xr0, $a0, 115; LA64-NEXT: ret16entry:17 %c = bitcast i32 %b to float18 %d = insertelement <8 x float> %a, float %c, i32 119 ret <8 x float> %d20}21 22define <4 x double> @insert_bitcast_v4f64(<4 x double> %a, i64 %b) nounwind {23; LA32-LABEL: insert_bitcast_v4f64:24; LA32: # %bb.0: # %entry25; LA32-NEXT: movgr2fr.w $fa1, $a026; LA32-NEXT: movgr2frh.w $fa1, $a127; LA32-NEXT: xvinsve0.d $xr0, $xr1, 128; LA32-NEXT: ret29;30; LA64-LABEL: insert_bitcast_v4f64:31; LA64: # %bb.0: # %entry32; LA64-NEXT: xvinsgr2vr.d $xr0, $a0, 133; LA64-NEXT: ret34entry:35 %c = bitcast i64 %b to double36 %d = insertelement <4 x double> %a, double %c, i32 137 ret <4 x double> %d38}39