]> git.lizzy.rs Git - rust.git/commitdiff
args may be passed by value
authorAshley Mannix <kodraus@hey.com>
Sun, 29 Nov 2020 08:36:30 +0000 (18:36 +1000)
committerAshley Mannix <kodraus@hey.com>
Sun, 29 Nov 2020 08:36:30 +0000 (18:36 +1000)
src/test/codegen/simd-intrinsic/simd-intrinsic-generic-extract-insert.rs

index 1ab32923785586b57e74e31d6f3ba5c2dd18052b..b5b0b1330a629f875ead37fb2785300d777fa248 100644 (file)
 // CHECK-LABEL: @extract_m
 #[no_mangle]
 pub unsafe fn extract_m(v: M, i: u32) -> f32  {
-    // CHECK: extractelement <4 x float> %_3, i32 %i
+    // CHECK: extractelement <4 x float> %{{v|_3}}, i32 %i
     simd_extract(v, i)
 }
 
 // CHECK-LABEL: @extract_s
 #[no_mangle]
 pub unsafe fn extract_s(v: S<4>, i: u32) -> f32  {
-    // CHECK: extractelement <4 x float> %_3, i32 %i
+    // CHECK: extractelement <4 x float> %{{v|_3}}, i32 %i
     simd_extract(v, i)
 }
 
 // CHECK-LABEL: @insert_m
 #[no_mangle]
 pub unsafe fn insert_m(v: M, i: u32, j: f32) -> M  {
-    // CHECK: insertelement <4 x float> %_4, float %j, i32 %i
+    // CHECK: insertelement <4 x float> %{{v|_4}}, float %j, i32 %i
     simd_insert(v, i, j)
 }
 
 // CHECK-LABEL: @insert_s
 #[no_mangle]
 pub unsafe fn insert_s(v: S<4>, i: u32, j: f32) -> S<4>  {
-    // CHECK: insertelement <4 x float> %_4, float %j, i32 %i
+    // CHECK: insertelement <4 x float> %{{v|_4}}, float %j, i32 %i
     simd_insert(v, i, j)
 }