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,+lsx < %s | FileCheck %s --check-prefix=LA323; RUN: llc --mtriple=loongarch64 --mattr=+lsx < %s | FileCheck %s --check-prefix=LA644 5define <4 x float> @insert_bitcast_v4f32(<4 x float> %a, i32 %b) nounwind {6; LA32-LABEL: insert_bitcast_v4f32:7; LA32: # %bb.0: # %entry8; LA32-NEXT: movgr2fr.w $fa1, $a09; LA32-NEXT: vextrins.w $vr0, $vr1, 1610; LA32-NEXT: ret11;12; LA64-LABEL: insert_bitcast_v4f32:13; LA64: # %bb.0: # %entry14; LA64-NEXT: vinsgr2vr.w $vr0, $a0, 115; LA64-NEXT: ret16entry:17 %c = bitcast i32 %b to float18 %d = insertelement <4 x float> %a, float %c, i32 119 ret <4 x float> %d20}21 22define <2 x double> @insert_bitcast_v2f64(<2 x double> %a, i64 %b) nounwind {23; LA32-LABEL: insert_bitcast_v2f64:24; LA32: # %bb.0: # %entry25; LA32-NEXT: movgr2fr.w $fa1, $a026; LA32-NEXT: movgr2frh.w $fa1, $a127; LA32-NEXT: vextrins.d $vr0, $vr1, 1628; LA32-NEXT: ret29;30; LA64-LABEL: insert_bitcast_v2f64:31; LA64: # %bb.0: # %entry32; LA64-NEXT: vinsgr2vr.d $vr0, $a0, 133; LA64-NEXT: ret34entry:35 %c = bitcast i64 %b to double36 %d = insertelement <2 x double> %a, double %c, i32 137 ret <2 x double> %d38}39