File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
crates/core_arch/src/s390x Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -131,9 +131,16 @@ mod sealed {
131
131
132
132
impl_add ! ( va_double, vector_double, vfadb) ;
133
133
134
+ #[ inline]
135
+ #[ target_feature( enable = "vector" ) ]
134
136
// FIXME: "vfasb" is part of vector enhancements 1, add a test for it when possible
137
+ // #[cfg_attr(test, assert_instr(vfasb))]
138
+ pub unsafe fn va_float ( a : vector_float , b : vector_float ) -> vector_float {
139
+ transmute ( simd_add ( a, b) )
140
+ }
141
+
135
142
#[ unstable( feature = "stdarch_s390x" , issue = "135681" ) ]
136
- impl VectorAdd < Self > for f32 {
143
+ impl VectorAdd < Self > for vector_float {
137
144
type Result = Self ;
138
145
139
146
#[ inline]
@@ -145,7 +152,7 @@ mod sealed {
145
152
}
146
153
}
147
154
148
- /// Vector add .
155
+ /// Vector pointwise addition .
149
156
#[ inline]
150
157
#[ target_feature( enable = "vector" ) ]
151
158
#[ unstable( feature = "stdarch_s390x" , issue = "135681" ) ]
You can’t perform that action at this time.
0 commit comments