brintos

brintos / llvm-project-archived public Read only

0
0
Text · 6.0 KiB · d9cdbc2 Raw
217 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -verify-machineinstrs -mtriple=aarch64-none-linux-gnu -mattr=+neon | FileCheck %s3 4define <4 x i32> @test_vins_v4i32(<4 x i32> %a, float %b) {5; CHECK-LABEL: test_vins_v4i32:6; CHECK:       // %bb.0: // %entry7; CHECK-NEXT:    // kill: def $s1 killed $s1 def $q18; CHECK-NEXT:    mov v0.s[3], v1.s[0]9; CHECK-NEXT:    ret10entry:11  %c = bitcast float %b to i3212  %d = insertelement <4 x i32> %a, i32 %c, i32 313  ret <4 x i32> %d14}15 16define <4 x i32> @test_vins_v4i32_0(<4 x i32> %a, float %b) {17; CHECK-LABEL: test_vins_v4i32_0:18; CHECK:       // %bb.0: // %entry19; CHECK-NEXT:    // kill: def $s1 killed $s1 def $q120; CHECK-NEXT:    mov v0.s[0], v1.s[0]21; CHECK-NEXT:    ret22entry:23  %c = bitcast float %b to i3224  %d = insertelement <4 x i32> %a, i32 %c, i32 025  ret <4 x i32> %d26}27 28define <2 x i32> @test_vins_v2i32(<2 x i32> %a, float %b) {29; CHECK-LABEL: test_vins_v2i32:30; CHECK:       // %bb.0: // %entry31; CHECK-NEXT:    // kill: def $d0 killed $d0 def $q032; CHECK-NEXT:    // kill: def $s1 killed $s1 def $q133; CHECK-NEXT:    mov v0.s[1], v1.s[0]34; CHECK-NEXT:    // kill: def $d0 killed $d0 killed $q035; CHECK-NEXT:    ret36entry:37  %c = bitcast float %b to i3238  %d = insertelement <2 x i32> %a, i32 %c, i32 139  ret <2 x i32> %d40}41 42define <2 x i32> @test_vins_v2i32_0(<2 x i32> %a, float %b) {43; CHECK-LABEL: test_vins_v2i32_0:44; CHECK:       // %bb.0: // %entry45; CHECK-NEXT:    // kill: def $d0 killed $d0 def $q046; CHECK-NEXT:    // kill: def $s1 killed $s1 def $q147; CHECK-NEXT:    mov v0.s[0], v1.s[0]48; CHECK-NEXT:    // kill: def $d0 killed $d0 killed $q049; CHECK-NEXT:    ret50entry:51  %c = bitcast float %b to i3252  %d = insertelement <2 x i32> %a, i32 %c, i32 053  ret <2 x i32> %d54}55 56define <2 x i64> @test_vins_v2i64(<2 x i64> %a, double %b) {57; CHECK-LABEL: test_vins_v2i64:58; CHECK:       // %bb.0: // %entry59; CHECK-NEXT:    // kill: def $d1 killed $d1 def $q160; CHECK-NEXT:    mov v0.d[1], v1.d[0]61; CHECK-NEXT:    ret62entry:63  %c = bitcast double %b to i6464  %d = insertelement <2 x i64> %a, i64 %c, i32 165  ret <2 x i64> %d66}67 68define <2 x i64> @test_vins_v2i64_0(<2 x i64> %a, double %b) {69; CHECK-LABEL: test_vins_v2i64_0:70; CHECK:       // %bb.0: // %entry71; CHECK-NEXT:    // kill: def $d1 killed $d1 def $q172; CHECK-NEXT:    mov v0.d[0], v1.d[0]73; CHECK-NEXT:    ret74entry:75  %c = bitcast double %b to i6476  %d = insertelement <2 x i64> %a, i64 %c, i32 077  ret <2 x i64> %d78}79 80define <1 x i64> @test_vins_v1i64(<1 x i64> %a, double %b) {81; CHECK-LABEL: test_vins_v1i64:82; CHECK:       // %bb.0: // %entry83; CHECK-NEXT:    fmov d0, d184; CHECK-NEXT:    ret85entry:86  %c = bitcast double %b to i6487  %d = insertelement <1 x i64> %a, i64 %c, i32 088  ret <1 x i64> %d89}90 91 92define half @test_vext_v8i16(<8 x i16> %a) {93; CHECK-LABEL: test_vext_v8i16:94; CHECK:       // %bb.0: // %entry95; CHECK-NEXT:    mov h0, v0.h[5]96; CHECK-NEXT:    // kill: def $h0 killed $h0 killed $q097; CHECK-NEXT:    ret98entry:99  %b = extractelement <8 x i16> %a, i32 5100  %c = bitcast i16 %b to half101  ret half %c102}103 104define half @test_vext_v8i16_0(<8 x i16> %a) {105; CHECK-LABEL: test_vext_v8i16_0:106; CHECK:       // %bb.0: // %entry107; CHECK-NEXT:    // kill: def $h0 killed $h0 killed $q0108; CHECK-NEXT:    ret109entry:110  %b = extractelement <8 x i16> %a, i32 0111  %c = bitcast i16 %b to half112  ret half %c113}114 115define half @test_vext_v4i16(<4 x i16> %a) {116; CHECK-LABEL: test_vext_v4i16:117; CHECK:       // %bb.0: // %entry118; CHECK-NEXT:    // kill: def $d0 killed $d0 def $q0119; CHECK-NEXT:    mov h0, v0.h[1]120; CHECK-NEXT:    // kill: def $h0 killed $h0 killed $q0121; CHECK-NEXT:    ret122entry:123  %b = extractelement <4 x i16> %a, i32 1124  %c = bitcast i16 %b to half125  ret half %c126}127 128define half @test_vext_v4i16_0(<4 x i16> %a) {129; CHECK-LABEL: test_vext_v4i16_0:130; CHECK:       // %bb.0: // %entry131; CHECK-NEXT:    // kill: def $d0 killed $d0 def $q0132; CHECK-NEXT:    // kill: def $h0 killed $h0 killed $q0133; CHECK-NEXT:    ret134entry:135  %b = extractelement <4 x i16> %a, i32 0136  %c = bitcast i16 %b to half137  ret half %c138}139 140define float @test_vext_v4i32(<4 x i32> %a) {141; CHECK-LABEL: test_vext_v4i32:142; CHECK:       // %bb.0: // %entry143; CHECK-NEXT:    mov s0, v0.s[3]144; CHECK-NEXT:    ret145entry:146  %b = extractelement <4 x i32> %a, i32 3147  %c = bitcast i32 %b to float148  ret float %c149}150 151define float @test_vext_v4i32_0(<4 x i32> %a) {152; CHECK-LABEL: test_vext_v4i32_0:153; CHECK:       // %bb.0: // %entry154; CHECK-NEXT:    // kill: def $s0 killed $s0 killed $q0155; CHECK-NEXT:    ret156entry:157  %b = extractelement <4 x i32> %a, i32 0158  %c = bitcast i32 %b to float159  ret float %c160}161 162define float @test_vext_v2i32(<2 x i32> %a) {163; CHECK-LABEL: test_vext_v2i32:164; CHECK:       // %bb.0: // %entry165; CHECK-NEXT:    // kill: def $d0 killed $d0 def $q0166; CHECK-NEXT:    mov s0, v0.s[1]167; CHECK-NEXT:    ret168entry:169  %b = extractelement <2 x i32> %a, i32 1170  %c = bitcast i32 %b to float171  ret float %c172}173 174define float @test_vext_v2i32_0(<2 x i32> %a) {175; CHECK-LABEL: test_vext_v2i32_0:176; CHECK:       // %bb.0: // %entry177; CHECK-NEXT:    // kill: def $d0 killed $d0 def $q0178; CHECK-NEXT:    // kill: def $s0 killed $s0 killed $q0179; CHECK-NEXT:    ret180entry:181  %b = extractelement <2 x i32> %a, i32 0182  %c = bitcast i32 %b to float183  ret float %c184}185 186define double @test_vext_v2i64(<2 x i64> %a) {187; CHECK-LABEL: test_vext_v2i64:188; CHECK:       // %bb.0: // %entry189; CHECK-NEXT:    mov d0, v0.d[1]190; CHECK-NEXT:    ret191entry:192  %b = extractelement <2 x i64> %a, i32 1193  %c = bitcast i64 %b to double194  ret double %c195}196 197define double @test_vext_v2i64_0(<2 x i64> %a) {198; CHECK-LABEL: test_vext_v2i64_0:199; CHECK:       // %bb.0: // %entry200; CHECK-NEXT:    // kill: def $d0 killed $d0 killed $q0201; CHECK-NEXT:    ret202entry:203  %b = extractelement <2 x i64> %a, i32 0204  %c = bitcast i64 %b to double205  ret double %c206}207 208define double @test_vext_v1i64(<1 x i64> %a) {209; CHECK-LABEL: test_vext_v1i64:210; CHECK:       // %bb.0: // %entry211; CHECK-NEXT:    ret212entry:213  %b = extractelement <1 x i64> %a, i32 0214  %c = bitcast i64 %b to double215  ret double %c216}217