예제 #1
0
// CHECK: test_vcvtps_s32_f32
int32_t test_vcvtps_s32_f32(float32_t a) {
  return vcvtps_s32_f32(a);
// CHECK: fcvtps {{w[0-9]+}}, {{s[0-9]+}}
}
예제 #2
0
// CHECK-LABEL: define i32 @test_vcvtps_s32_f32(float %a) #0 {
// CHECK:   [[VCVTPS_S32_F32_I:%.*]] = call i32 @llvm.aarch64.neon.fcvtps.i32.f32(float %a) #2
// CHECK:   ret i32 [[VCVTPS_S32_F32_I]]
int32_t test_vcvtps_s32_f32(float32_t a) {
  return (int32_t)vcvtps_s32_f32(a);
}
int32_t test_vcvtps_s32_f32(float32_t a) {
// CHECK-LABEL: test_vcvtps_s32_f32
// CHECK: fcvtps {{[sw][0-9]+}}, {{s[0-9]+}}
  return (int32_t)vcvtps_s32_f32(a);
}