tweak new codegen test to work on local

This commit is contained in:
Ashley Mannix 2020-11-14 21:12:15 +10:00
parent 045105b1a2
commit 74f2941a8e

View File

@ -21,27 +21,27 @@
// CHECK-LABEL: @extract_m
#[no_mangle]
pub unsafe fn extract_m(v: M, i: u32) -> f32 {
// CHECK: extractelement <4 x float> %0, i32 %i
// CHECK: extractelement <4 x float> %_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> %0, i32 %i
// CHECK: extractelement <4 x float> %_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> %1, float %j, i32 %i
// CHECK: insertelement <4 x float> %_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> %1, float %j, i32 %i
// CHECK: insertelement <4 x float> %_4, float %j, i32 %i
simd_insert(v, i, j)
}