@@ -2992,320 +2992,320 @@ mod test {
2992
2992
2993
2993
#[ simd_test( enable = "neon" ) ]
2994
2994
unsafe fn test_vcvt_s32_f32 ( ) {
2995
- let a: f32x2 = f32x2:: new ( -1.0 , 2.0 ) ;
2995
+ let a: f32x2 = f32x2:: new ( -1.1 , 2.1 ) ;
2996
2996
let e: i32x2 = i32x2:: new ( -1 , 2 ) ;
2997
2997
let r: i32x2 = transmute ( vcvt_s32_f32 ( transmute ( a) ) ) ;
2998
2998
assert_eq ! ( r, e) ;
2999
2999
}
3000
3000
3001
3001
#[ simd_test( enable = "neon" ) ]
3002
3002
unsafe fn test_vcvtq_s32_f32 ( ) {
3003
- let a: f32x4 = f32x4:: new ( -1.0 , 2.0 , -3.0 , 4.0 ) ;
3004
- let e: i32x4 = i32x4:: new ( -1 , 2 , -3 , 4 ) ;
3003
+ let a: f32x4 = f32x4:: new ( -1.1 , 2.1 , -2.9 , 3.9 ) ;
3004
+ let e: i32x4 = i32x4:: new ( -1 , 2 , -2 , 3 ) ;
3005
3005
let r: i32x4 = transmute ( vcvtq_s32_f32 ( transmute ( a) ) ) ;
3006
3006
assert_eq ! ( r, e) ;
3007
3007
}
3008
3008
3009
3009
#[ simd_test( enable = "neon" ) ]
3010
3010
unsafe fn test_vcvt_s64_f64 ( ) {
3011
- let a: f64 = -1.0 ;
3011
+ let a: f64 = -1.1 ;
3012
3012
let e: i64x1 = i64x1:: new ( -1 ) ;
3013
3013
let r: i64x1 = transmute ( vcvt_s64_f64 ( transmute ( a) ) ) ;
3014
3014
assert_eq ! ( r, e) ;
3015
3015
}
3016
3016
3017
3017
#[ simd_test( enable = "neon" ) ]
3018
3018
unsafe fn test_vcvtq_s64_f64 ( ) {
3019
- let a: f64x2 = f64x2:: new ( -1.0 , 2.0 ) ;
3019
+ let a: f64x2 = f64x2:: new ( -1.1 , 2.1 ) ;
3020
3020
let e: i64x2 = i64x2:: new ( -1 , 2 ) ;
3021
3021
let r: i64x2 = transmute ( vcvtq_s64_f64 ( transmute ( a) ) ) ;
3022
3022
assert_eq ! ( r, e) ;
3023
3023
}
3024
3024
3025
3025
#[ simd_test( enable = "neon" ) ]
3026
3026
unsafe fn test_vcvta_s32_f32 ( ) {
3027
- let a: f32x2 = f32x2:: new ( -1.0 , 2.0 ) ;
3027
+ let a: f32x2 = f32x2:: new ( -1.1 , 2.1 ) ;
3028
3028
let e: i32x2 = i32x2:: new ( -1 , 2 ) ;
3029
3029
let r: i32x2 = transmute ( vcvta_s32_f32 ( transmute ( a) ) ) ;
3030
3030
assert_eq ! ( r, e) ;
3031
3031
}
3032
3032
3033
3033
#[ simd_test( enable = "neon" ) ]
3034
3034
unsafe fn test_vcvtaq_s32_f32 ( ) {
3035
- let a: f32x4 = f32x4:: new ( -1.0 , 2.0 , -3.0 , 4.0 ) ;
3035
+ let a: f32x4 = f32x4:: new ( -1.1 , 2.1 , -2.9 , 3.9 ) ;
3036
3036
let e: i32x4 = i32x4:: new ( -1 , 2 , -3 , 4 ) ;
3037
3037
let r: i32x4 = transmute ( vcvtaq_s32_f32 ( transmute ( a) ) ) ;
3038
3038
assert_eq ! ( r, e) ;
3039
3039
}
3040
3040
3041
3041
#[ simd_test( enable = "neon" ) ]
3042
3042
unsafe fn test_vcvta_s64_f64 ( ) {
3043
- let a: f64 = -1.0 ;
3043
+ let a: f64 = -1.1 ;
3044
3044
let e: i64x1 = i64x1:: new ( -1 ) ;
3045
3045
let r: i64x1 = transmute ( vcvta_s64_f64 ( transmute ( a) ) ) ;
3046
3046
assert_eq ! ( r, e) ;
3047
3047
}
3048
3048
3049
3049
#[ simd_test( enable = "neon" ) ]
3050
3050
unsafe fn test_vcvtaq_s64_f64 ( ) {
3051
- let a: f64x2 = f64x2:: new ( -1.0 , 2.0 ) ;
3051
+ let a: f64x2 = f64x2:: new ( -1.1 , 2.1 ) ;
3052
3052
let e: i64x2 = i64x2:: new ( -1 , 2 ) ;
3053
3053
let r: i64x2 = transmute ( vcvtaq_s64_f64 ( transmute ( a) ) ) ;
3054
3054
assert_eq ! ( r, e) ;
3055
3055
}
3056
3056
3057
3057
#[ simd_test( enable = "neon" ) ]
3058
3058
unsafe fn test_vcvtn_s32_f32 ( ) {
3059
- let a: f32x2 = f32x2:: new ( -1.0 , 2.0 ) ;
3060
- let e: i32x2 = i32x2:: new ( -1 , 2 ) ;
3059
+ let a: f32x2 = f32x2:: new ( -1.5 , 2.1 ) ;
3060
+ let e: i32x2 = i32x2:: new ( -2 , 2 ) ;
3061
3061
let r: i32x2 = transmute ( vcvtn_s32_f32 ( transmute ( a) ) ) ;
3062
3062
assert_eq ! ( r, e) ;
3063
3063
}
3064
3064
3065
3065
#[ simd_test( enable = "neon" ) ]
3066
3066
unsafe fn test_vcvtnq_s32_f32 ( ) {
3067
- let a: f32x4 = f32x4:: new ( -1.0 , 2.0 , -3.0 , 4.0 ) ;
3068
- let e: i32x4 = i32x4:: new ( -1 , 2 , -3 , 4 ) ;
3067
+ let a: f32x4 = f32x4:: new ( -1.5 , 2.1 , -2.9 , 3.9 ) ;
3068
+ let e: i32x4 = i32x4:: new ( -2 , 2 , -3 , 4 ) ;
3069
3069
let r: i32x4 = transmute ( vcvtnq_s32_f32 ( transmute ( a) ) ) ;
3070
3070
assert_eq ! ( r, e) ;
3071
3071
}
3072
3072
3073
3073
#[ simd_test( enable = "neon" ) ]
3074
3074
unsafe fn test_vcvtn_s64_f64 ( ) {
3075
- let a: f64 = -1.0 ;
3076
- let e: i64x1 = i64x1:: new ( -1 ) ;
3075
+ let a: f64 = -1.5 ;
3076
+ let e: i64x1 = i64x1:: new ( -2 ) ;
3077
3077
let r: i64x1 = transmute ( vcvtn_s64_f64 ( transmute ( a) ) ) ;
3078
3078
assert_eq ! ( r, e) ;
3079
3079
}
3080
3080
3081
3081
#[ simd_test( enable = "neon" ) ]
3082
3082
unsafe fn test_vcvtnq_s64_f64 ( ) {
3083
- let a: f64x2 = f64x2:: new ( -1.0 , 2.0 ) ;
3084
- let e: i64x2 = i64x2:: new ( -1 , 2 ) ;
3083
+ let a: f64x2 = f64x2:: new ( -1.5 , 2.1 ) ;
3084
+ let e: i64x2 = i64x2:: new ( -2 , 2 ) ;
3085
3085
let r: i64x2 = transmute ( vcvtnq_s64_f64 ( transmute ( a) ) ) ;
3086
3086
assert_eq ! ( r, e) ;
3087
3087
}
3088
3088
3089
3089
#[ simd_test( enable = "neon" ) ]
3090
3090
unsafe fn test_vcvtm_s32_f32 ( ) {
3091
- let a: f32x2 = f32x2:: new ( -1.0 , 2.0 ) ;
3092
- let e: i32x2 = i32x2:: new ( -1 , 2 ) ;
3091
+ let a: f32x2 = f32x2:: new ( -1.1 , 2.1 ) ;
3092
+ let e: i32x2 = i32x2:: new ( -2 , 2 ) ;
3093
3093
let r: i32x2 = transmute ( vcvtm_s32_f32 ( transmute ( a) ) ) ;
3094
3094
assert_eq ! ( r, e) ;
3095
3095
}
3096
3096
3097
3097
#[ simd_test( enable = "neon" ) ]
3098
3098
unsafe fn test_vcvtmq_s32_f32 ( ) {
3099
- let a: f32x4 = f32x4:: new ( -1.0 , 2.0 , -3.0 , 4.0 ) ;
3100
- let e: i32x4 = i32x4:: new ( -1 , 2 , -3 , 4 ) ;
3099
+ let a: f32x4 = f32x4:: new ( -1.1 , 2.1 , -2.9 , 3.9 ) ;
3100
+ let e: i32x4 = i32x4:: new ( -2 , 2 , -3 , 3 ) ;
3101
3101
let r: i32x4 = transmute ( vcvtmq_s32_f32 ( transmute ( a) ) ) ;
3102
3102
assert_eq ! ( r, e) ;
3103
3103
}
3104
3104
3105
3105
#[ simd_test( enable = "neon" ) ]
3106
3106
unsafe fn test_vcvtm_s64_f64 ( ) {
3107
- let a: f64 = -1.0 ;
3108
- let e: i64x1 = i64x1:: new ( -1 ) ;
3107
+ let a: f64 = -1.1 ;
3108
+ let e: i64x1 = i64x1:: new ( -2 ) ;
3109
3109
let r: i64x1 = transmute ( vcvtm_s64_f64 ( transmute ( a) ) ) ;
3110
3110
assert_eq ! ( r, e) ;
3111
3111
}
3112
3112
3113
3113
#[ simd_test( enable = "neon" ) ]
3114
3114
unsafe fn test_vcvtmq_s64_f64 ( ) {
3115
- let a: f64x2 = f64x2:: new ( -1.0 , 2.0 ) ;
3116
- let e: i64x2 = i64x2:: new ( -1 , 2 ) ;
3115
+ let a: f64x2 = f64x2:: new ( -1.1 , 2.1 ) ;
3116
+ let e: i64x2 = i64x2:: new ( -2 , 2 ) ;
3117
3117
let r: i64x2 = transmute ( vcvtmq_s64_f64 ( transmute ( a) ) ) ;
3118
3118
assert_eq ! ( r, e) ;
3119
3119
}
3120
3120
3121
3121
#[ simd_test( enable = "neon" ) ]
3122
3122
unsafe fn test_vcvtp_s32_f32 ( ) {
3123
- let a: f32x2 = f32x2:: new ( -1.0 , 2.0 ) ;
3124
- let e: i32x2 = i32x2:: new ( -1 , 2 ) ;
3123
+ let a: f32x2 = f32x2:: new ( -1.1 , 2.1 ) ;
3124
+ let e: i32x2 = i32x2:: new ( -1 , 3 ) ;
3125
3125
let r: i32x2 = transmute ( vcvtp_s32_f32 ( transmute ( a) ) ) ;
3126
3126
assert_eq ! ( r, e) ;
3127
3127
}
3128
3128
3129
3129
#[ simd_test( enable = "neon" ) ]
3130
3130
unsafe fn test_vcvtpq_s32_f32 ( ) {
3131
- let a: f32x4 = f32x4:: new ( -1.0 , 2.0 , -3.0 , 4.0 ) ;
3132
- let e: i32x4 = i32x4:: new ( -1 , 2 , -3 , 4 ) ;
3131
+ let a: f32x4 = f32x4:: new ( -1.1 , 2.1 , -2.9 , 3.9 ) ;
3132
+ let e: i32x4 = i32x4:: new ( -1 , 3 , -2 , 4 ) ;
3133
3133
let r: i32x4 = transmute ( vcvtpq_s32_f32 ( transmute ( a) ) ) ;
3134
3134
assert_eq ! ( r, e) ;
3135
3135
}
3136
3136
3137
3137
#[ simd_test( enable = "neon" ) ]
3138
3138
unsafe fn test_vcvtp_s64_f64 ( ) {
3139
- let a: f64 = -1.0 ;
3139
+ let a: f64 = -1.1 ;
3140
3140
let e: i64x1 = i64x1:: new ( -1 ) ;
3141
3141
let r: i64x1 = transmute ( vcvtp_s64_f64 ( transmute ( a) ) ) ;
3142
3142
assert_eq ! ( r, e) ;
3143
3143
}
3144
3144
3145
3145
#[ simd_test( enable = "neon" ) ]
3146
3146
unsafe fn test_vcvtpq_s64_f64 ( ) {
3147
- let a: f64x2 = f64x2:: new ( -1.0 , 2.0 ) ;
3148
- let e: i64x2 = i64x2:: new ( -1 , 2 ) ;
3147
+ let a: f64x2 = f64x2:: new ( -1.1 , 2.1 ) ;
3148
+ let e: i64x2 = i64x2:: new ( -1 , 3 ) ;
3149
3149
let r: i64x2 = transmute ( vcvtpq_s64_f64 ( transmute ( a) ) ) ;
3150
3150
assert_eq ! ( r, e) ;
3151
3151
}
3152
3152
3153
3153
#[ simd_test( enable = "neon" ) ]
3154
3154
unsafe fn test_vcvt_u32_f32 ( ) {
3155
- let a: f32x2 = f32x2:: new ( 1.0 , 2.0 ) ;
3155
+ let a: f32x2 = f32x2:: new ( 1.1 , 2.1 ) ;
3156
3156
let e: u32x2 = u32x2:: new ( 1 , 2 ) ;
3157
3157
let r: u32x2 = transmute ( vcvt_u32_f32 ( transmute ( a) ) ) ;
3158
3158
assert_eq ! ( r, e) ;
3159
3159
}
3160
3160
3161
3161
#[ simd_test( enable = "neon" ) ]
3162
3162
unsafe fn test_vcvtq_u32_f32 ( ) {
3163
- let a: f32x4 = f32x4:: new ( 1.0 , 2.0 , 3.0 , 4.0 ) ;
3164
- let e: u32x4 = u32x4:: new ( 1 , 2 , 3 , 4 ) ;
3163
+ let a: f32x4 = f32x4:: new ( 1.1 , 2.1 , 2.9 , 3.9 ) ;
3164
+ let e: u32x4 = u32x4:: new ( 1 , 2 , 2 , 3 ) ;
3165
3165
let r: u32x4 = transmute ( vcvtq_u32_f32 ( transmute ( a) ) ) ;
3166
3166
assert_eq ! ( r, e) ;
3167
3167
}
3168
3168
3169
3169
#[ simd_test( enable = "neon" ) ]
3170
3170
unsafe fn test_vcvt_u64_f64 ( ) {
3171
- let a: f64 = 1.0 ;
3171
+ let a: f64 = 1.1 ;
3172
3172
let e: u64x1 = u64x1:: new ( 1 ) ;
3173
3173
let r: u64x1 = transmute ( vcvt_u64_f64 ( transmute ( a) ) ) ;
3174
3174
assert_eq ! ( r, e) ;
3175
3175
}
3176
3176
3177
3177
#[ simd_test( enable = "neon" ) ]
3178
3178
unsafe fn test_vcvtq_u64_f64 ( ) {
3179
- let a: f64x2 = f64x2:: new ( 1.0 , 2.0 ) ;
3179
+ let a: f64x2 = f64x2:: new ( 1.1 , 2.1 ) ;
3180
3180
let e: u64x2 = u64x2:: new ( 1 , 2 ) ;
3181
3181
let r: u64x2 = transmute ( vcvtq_u64_f64 ( transmute ( a) ) ) ;
3182
3182
assert_eq ! ( r, e) ;
3183
3183
}
3184
3184
3185
3185
#[ simd_test( enable = "neon" ) ]
3186
3186
unsafe fn test_vcvta_u32_f32 ( ) {
3187
- let a: f32x2 = f32x2:: new ( 1.0 , 2.0 ) ;
3187
+ let a: f32x2 = f32x2:: new ( 1.1 , 2.1 ) ;
3188
3188
let e: u32x2 = u32x2:: new ( 1 , 2 ) ;
3189
3189
let r: u32x2 = transmute ( vcvta_u32_f32 ( transmute ( a) ) ) ;
3190
3190
assert_eq ! ( r, e) ;
3191
3191
}
3192
3192
3193
3193
#[ simd_test( enable = "neon" ) ]
3194
3194
unsafe fn test_vcvtaq_u32_f32 ( ) {
3195
- let a: f32x4 = f32x4:: new ( 1.0 , 2.0 , 3.0 , 4.0 ) ;
3195
+ let a: f32x4 = f32x4:: new ( 1.1 , 2.1 , 2.9 , 3.9 ) ;
3196
3196
let e: u32x4 = u32x4:: new ( 1 , 2 , 3 , 4 ) ;
3197
3197
let r: u32x4 = transmute ( vcvtaq_u32_f32 ( transmute ( a) ) ) ;
3198
3198
assert_eq ! ( r, e) ;
3199
3199
}
3200
3200
3201
3201
#[ simd_test( enable = "neon" ) ]
3202
3202
unsafe fn test_vcvta_u64_f64 ( ) {
3203
- let a: f64 = 1.0 ;
3203
+ let a: f64 = 1.1 ;
3204
3204
let e: u64x1 = u64x1:: new ( 1 ) ;
3205
3205
let r: u64x1 = transmute ( vcvta_u64_f64 ( transmute ( a) ) ) ;
3206
3206
assert_eq ! ( r, e) ;
3207
3207
}
3208
3208
3209
3209
#[ simd_test( enable = "neon" ) ]
3210
3210
unsafe fn test_vcvtaq_u64_f64 ( ) {
3211
- let a: f64x2 = f64x2:: new ( 1.0 , 2.0 ) ;
3211
+ let a: f64x2 = f64x2:: new ( 1.1 , 2.1 ) ;
3212
3212
let e: u64x2 = u64x2:: new ( 1 , 2 ) ;
3213
3213
let r: u64x2 = transmute ( vcvtaq_u64_f64 ( transmute ( a) ) ) ;
3214
3214
assert_eq ! ( r, e) ;
3215
3215
}
3216
3216
3217
3217
#[ simd_test( enable = "neon" ) ]
3218
3218
unsafe fn test_vcvtn_u32_f32 ( ) {
3219
- let a: f32x2 = f32x2:: new ( 1.0 , 2.0 ) ;
3220
- let e: u32x2 = u32x2:: new ( 1 , 2 ) ;
3219
+ let a: f32x2 = f32x2:: new ( 1.5 , 2.1 ) ;
3220
+ let e: u32x2 = u32x2:: new ( 2 , 2 ) ;
3221
3221
let r: u32x2 = transmute ( vcvtn_u32_f32 ( transmute ( a) ) ) ;
3222
3222
assert_eq ! ( r, e) ;
3223
3223
}
3224
3224
3225
3225
#[ simd_test( enable = "neon" ) ]
3226
3226
unsafe fn test_vcvtnq_u32_f32 ( ) {
3227
- let a: f32x4 = f32x4:: new ( 1.0 , 2.0 , 3.0 , 4.0 ) ;
3228
- let e: u32x4 = u32x4:: new ( 1 , 2 , 3 , 4 ) ;
3227
+ let a: f32x4 = f32x4:: new ( 1.5 , 2.1 , 2.9 , 3.9 ) ;
3228
+ let e: u32x4 = u32x4:: new ( 2 , 2 , 3 , 4 ) ;
3229
3229
let r: u32x4 = transmute ( vcvtnq_u32_f32 ( transmute ( a) ) ) ;
3230
3230
assert_eq ! ( r, e) ;
3231
3231
}
3232
3232
3233
3233
#[ simd_test( enable = "neon" ) ]
3234
3234
unsafe fn test_vcvtn_u64_f64 ( ) {
3235
- let a: f64 = 1.0 ;
3236
- let e: u64x1 = u64x1:: new ( 1 ) ;
3235
+ let a: f64 = 1.5 ;
3236
+ let e: u64x1 = u64x1:: new ( 2 ) ;
3237
3237
let r: u64x1 = transmute ( vcvtn_u64_f64 ( transmute ( a) ) ) ;
3238
3238
assert_eq ! ( r, e) ;
3239
3239
}
3240
3240
3241
3241
#[ simd_test( enable = "neon" ) ]
3242
3242
unsafe fn test_vcvtnq_u64_f64 ( ) {
3243
- let a: f64x2 = f64x2:: new ( 1.0 , 2.0 ) ;
3244
- let e: u64x2 = u64x2:: new ( 1 , 2 ) ;
3243
+ let a: f64x2 = f64x2:: new ( 1.5 , 2.1 ) ;
3244
+ let e: u64x2 = u64x2:: new ( 2 , 2 ) ;
3245
3245
let r: u64x2 = transmute ( vcvtnq_u64_f64 ( transmute ( a) ) ) ;
3246
3246
assert_eq ! ( r, e) ;
3247
3247
}
3248
3248
3249
3249
#[ simd_test( enable = "neon" ) ]
3250
3250
unsafe fn test_vcvtm_u32_f32 ( ) {
3251
- let a: f32x2 = f32x2:: new ( 1.0 , 2.0 ) ;
3251
+ let a: f32x2 = f32x2:: new ( 1.1 , 2.1 ) ;
3252
3252
let e: u32x2 = u32x2:: new ( 1 , 2 ) ;
3253
3253
let r: u32x2 = transmute ( vcvtm_u32_f32 ( transmute ( a) ) ) ;
3254
3254
assert_eq ! ( r, e) ;
3255
3255
}
3256
3256
3257
3257
#[ simd_test( enable = "neon" ) ]
3258
3258
unsafe fn test_vcvtmq_u32_f32 ( ) {
3259
- let a: f32x4 = f32x4:: new ( 1.0 , 2.0 , 3.0 , 4.0 ) ;
3260
- let e: u32x4 = u32x4:: new ( 1 , 2 , 3 , 4 ) ;
3259
+ let a: f32x4 = f32x4:: new ( 1.1 , 2.1 , 2.9 , 3.9 ) ;
3260
+ let e: u32x4 = u32x4:: new ( 1 , 2 , 2 , 3 ) ;
3261
3261
let r: u32x4 = transmute ( vcvtmq_u32_f32 ( transmute ( a) ) ) ;
3262
3262
assert_eq ! ( r, e) ;
3263
3263
}
3264
3264
3265
3265
#[ simd_test( enable = "neon" ) ]
3266
3266
unsafe fn test_vcvtm_u64_f64 ( ) {
3267
- let a: f64 = 1.0 ;
3267
+ let a: f64 = 1.1 ;
3268
3268
let e: u64x1 = u64x1:: new ( 1 ) ;
3269
3269
let r: u64x1 = transmute ( vcvtm_u64_f64 ( transmute ( a) ) ) ;
3270
3270
assert_eq ! ( r, e) ;
3271
3271
}
3272
3272
3273
3273
#[ simd_test( enable = "neon" ) ]
3274
3274
unsafe fn test_vcvtmq_u64_f64 ( ) {
3275
- let a: f64x2 = f64x2:: new ( 1.0 , 2.0 ) ;
3275
+ let a: f64x2 = f64x2:: new ( 1.1 , 2.1 ) ;
3276
3276
let e: u64x2 = u64x2:: new ( 1 , 2 ) ;
3277
3277
let r: u64x2 = transmute ( vcvtmq_u64_f64 ( transmute ( a) ) ) ;
3278
3278
assert_eq ! ( r, e) ;
3279
3279
}
3280
3280
3281
3281
#[ simd_test( enable = "neon" ) ]
3282
3282
unsafe fn test_vcvtp_u32_f32 ( ) {
3283
- let a: f32x2 = f32x2:: new ( 1.0 , 2.0 ) ;
3284
- let e: u32x2 = u32x2:: new ( 1 , 2 ) ;
3283
+ let a: f32x2 = f32x2:: new ( 1.1 , 2.1 ) ;
3284
+ let e: u32x2 = u32x2:: new ( 2 , 3 ) ;
3285
3285
let r: u32x2 = transmute ( vcvtp_u32_f32 ( transmute ( a) ) ) ;
3286
3286
assert_eq ! ( r, e) ;
3287
3287
}
3288
3288
3289
3289
#[ simd_test( enable = "neon" ) ]
3290
3290
unsafe fn test_vcvtpq_u32_f32 ( ) {
3291
- let a: f32x4 = f32x4:: new ( 1.0 , 2.0 , 3.0 , 4.0 ) ;
3292
- let e: u32x4 = u32x4:: new ( 1 , 2 , 3 , 4 ) ;
3291
+ let a: f32x4 = f32x4:: new ( 1.1 , 2.1 , 2.9 , 3.9 ) ;
3292
+ let e: u32x4 = u32x4:: new ( 2 , 3 , 3 , 4 ) ;
3293
3293
let r: u32x4 = transmute ( vcvtpq_u32_f32 ( transmute ( a) ) ) ;
3294
3294
assert_eq ! ( r, e) ;
3295
3295
}
3296
3296
3297
3297
#[ simd_test( enable = "neon" ) ]
3298
3298
unsafe fn test_vcvtp_u64_f64 ( ) {
3299
- let a: f64 = 1.0 ;
3300
- let e: u64x1 = u64x1:: new ( 1 ) ;
3299
+ let a: f64 = 1.1 ;
3300
+ let e: u64x1 = u64x1:: new ( 2 ) ;
3301
3301
let r: u64x1 = transmute ( vcvtp_u64_f64 ( transmute ( a) ) ) ;
3302
3302
assert_eq ! ( r, e) ;
3303
3303
}
3304
3304
3305
3305
#[ simd_test( enable = "neon" ) ]
3306
3306
unsafe fn test_vcvtpq_u64_f64 ( ) {
3307
- let a: f64x2 = f64x2:: new ( 1.0 , 2.0 ) ;
3308
- let e: u64x2 = u64x2:: new ( 1 , 2 ) ;
3307
+ let a: f64x2 = f64x2:: new ( 1.1 , 2.1 ) ;
3308
+ let e: u64x2 = u64x2:: new ( 2 , 3 ) ;
3309
3309
let r: u64x2 = transmute ( vcvtpq_u64_f64 ( transmute ( a) ) ) ;
3310
3310
assert_eq ! ( r, e) ;
3311
3311
}
0 commit comments