@@ -660,6 +660,7 @@ pub unsafe fn v128_store64_lane<const L: usize>(v: v128, m: *mut u64) {
660
660
a15 = 15 ,
661
661
)
662
662
) ]
663
+ #[ target_feature( enable = "simd128" ) ]
663
664
#[ doc( alias( "v128.const" ) ) ]
664
665
#[ stable( feature = "wasm_simd" , since = "1.54.0" ) ]
665
666
#[ rustc_const_stable( feature = "wasm_simd" , since = "1.54.0" ) ]
@@ -692,6 +693,7 @@ pub const fn i8x16(
692
693
/// If possible this will generate a `v128.const` instruction, otherwise it may
693
694
/// be lowered to a sequence of instructions to materialize the vector value.
694
695
#[ inline]
696
+ #[ target_feature( enable = "simd128" ) ]
695
697
#[ doc( alias( "v128.const" ) ) ]
696
698
#[ stable( feature = "wasm_simd" , since = "1.54.0" ) ]
697
699
#[ rustc_const_stable( feature = "wasm_simd" , since = "1.54.0" ) ]
@@ -738,6 +740,7 @@ pub const fn u8x16(
738
740
a7 = 7 ,
739
741
)
740
742
) ]
743
+ #[ target_feature( enable = "simd128" ) ]
741
744
#[ doc( alias( "v128.const" ) ) ]
742
745
#[ stable( feature = "wasm_simd" , since = "1.54.0" ) ]
743
746
#[ rustc_const_stable( feature = "wasm_simd" , since = "1.54.0" ) ]
@@ -750,6 +753,7 @@ pub const fn i16x8(a0: i16, a1: i16, a2: i16, a3: i16, a4: i16, a5: i16, a6: i16
750
753
/// If possible this will generate a `v128.const` instruction, otherwise it may
751
754
/// be lowered to a sequence of instructions to materialize the vector value.
752
755
#[ inline]
756
+ #[ target_feature( enable = "simd128" ) ]
753
757
#[ doc( alias( "v128.const" ) ) ]
754
758
#[ stable( feature = "wasm_simd" , since = "1.54.0" ) ]
755
759
#[ rustc_const_stable( feature = "wasm_simd" , since = "1.54.0" ) ]
@@ -763,6 +767,7 @@ pub const fn u16x8(a0: u16, a1: u16, a2: u16, a3: u16, a4: u16, a5: u16, a6: u16
763
767
/// be lowered to a sequence of instructions to materialize the vector value.
764
768
#[ inline]
765
769
#[ cfg_attr( test, assert_instr( v128. const , a0 = 0 , a1 = 1 , a2 = 2 , a3 = 3 ) ) ]
770
+ #[ target_feature( enable = "simd128" ) ]
766
771
#[ doc( alias( "v128.const" ) ) ]
767
772
#[ stable( feature = "wasm_simd" , since = "1.54.0" ) ]
768
773
#[ rustc_const_stable( feature = "wasm_simd" , since = "1.54.0" ) ]
@@ -775,6 +780,7 @@ pub const fn i32x4(a0: i32, a1: i32, a2: i32, a3: i32) -> v128 {
775
780
/// If possible this will generate a `v128.const` instruction, otherwise it may
776
781
/// be lowered to a sequence of instructions to materialize the vector value.
777
782
#[ inline]
783
+ #[ target_feature( enable = "simd128" ) ]
778
784
#[ doc( alias( "v128.const" ) ) ]
779
785
#[ stable( feature = "wasm_simd" , since = "1.54.0" ) ]
780
786
#[ rustc_const_stable( feature = "wasm_simd" , since = "1.54.0" ) ]
@@ -788,6 +794,7 @@ pub const fn u32x4(a0: u32, a1: u32, a2: u32, a3: u32) -> v128 {
788
794
/// be lowered to a sequence of instructions to materialize the vector value.
789
795
#[ inline]
790
796
#[ cfg_attr( test, assert_instr( v128. const , a0 = 1 , a1 = 2 ) ) ]
797
+ #[ target_feature( enable = "simd128" ) ]
791
798
#[ doc( alias( "v128.const" ) ) ]
792
799
#[ stable( feature = "wasm_simd" , since = "1.54.0" ) ]
793
800
#[ rustc_const_stable( feature = "wasm_simd" , since = "1.54.0" ) ]
@@ -800,6 +807,7 @@ pub const fn i64x2(a0: i64, a1: i64) -> v128 {
800
807
/// If possible this will generate a `v128.const` instruction, otherwise it may
801
808
/// be lowered to a sequence of instructions to materialize the vector value.
802
809
#[ inline]
810
+ #[ target_feature( enable = "simd128" ) ]
803
811
#[ doc( alias( "v128.const" ) ) ]
804
812
#[ stable( feature = "wasm_simd" , since = "1.54.0" ) ]
805
813
#[ rustc_const_stable( feature = "wasm_simd" , since = "1.54.0" ) ]
@@ -813,6 +821,7 @@ pub const fn u64x2(a0: u64, a1: u64) -> v128 {
813
821
/// be lowered to a sequence of instructions to materialize the vector value.
814
822
#[ inline]
815
823
#[ cfg_attr( test, assert_instr( v128. const , a0 = 0.0 , a1 = 1.0 , a2 = 2.0 , a3 = 3.0 ) ) ]
824
+ #[ target_feature( enable = "simd128" ) ]
816
825
#[ doc( alias( "v128.const" ) ) ]
817
826
#[ stable( feature = "wasm_simd" , since = "1.54.0" ) ]
818
827
#[ rustc_const_stable( feature = "wasm_simd_const" , since = "1.56.0" ) ]
@@ -826,6 +835,7 @@ pub const fn f32x4(a0: f32, a1: f32, a2: f32, a3: f32) -> v128 {
826
835
/// be lowered to a sequence of instructions to materialize the vector value.
827
836
#[ inline]
828
837
#[ cfg_attr( test, assert_instr( v128. const , a0 = 0.0 , a1 = 1.0 ) ) ]
838
+ #[ target_feature( enable = "simd128" ) ]
829
839
#[ doc( alias( "v128.const" ) ) ]
830
840
#[ stable( feature = "wasm_simd" , since = "1.54.0" ) ]
831
841
#[ rustc_const_stable( feature = "wasm_simd_const" , since = "1.56.0" ) ]
0 commit comments