Exemple #1
0
int
main (int argc, char **argv)
{
  int i, off;
  float64x1_t in1 = {0};
  float64x1_t in2 = {1};
  float64x1_t actual = vext_f64 (in1, in2, 0);
  if (actual != in1)
    abort ();

  return 0;
}
float64x1_t test_vext_f64(float64x1_t a, float64x1_t b) {
  // CHECK-LABEL: test_vext_f64
  return vext_f64(a, b, 0);
}
// CHECK-LABEL: define <1 x double> @test_vext_f64(<1 x double> %a, <1 x double> %b) #0 {
// CHECK:   [[TMP0:%.*]] = bitcast <1 x double> %a to <8 x i8>
// CHECK:   [[TMP1:%.*]] = bitcast <1 x double> %b to <8 x i8>
// CHECK:   [[TMP2:%.*]] = bitcast <8 x i8> [[TMP0]] to <1 x double>
// CHECK:   [[TMP3:%.*]] = bitcast <8 x i8> [[TMP1]] to <1 x double>
// CHECK:   [[VEXT:%.*]] = shufflevector <1 x double> [[TMP2]], <1 x double> [[TMP3]], <1 x i32> zeroinitializer
// CHECK:   ret <1 x double> [[VEXT]]
float64x1_t test_vext_f64(float64x1_t a, float64x1_t b) {
  return vext_f64(a, b, 0);
}