1// RUN: %clang_cc1 -O1 -triple arm64-apple-ios7 -target-feature +neon -ffreestanding -S -o - -emit-llvm %s | FileCheck %s
2// Test ARM64 SIMD vget intrinsics
3
4#include <arm_neon.h>
5
6float64_t test_vget_lane_f64(float64x1_t a1) {
7  // CHECK: test_vget_lane_f64
8  // why isn't 1 allowed as second argument?
9  return vget_lane_f64(a1, 0);
10  // CHECK: extractelement {{.*}} i32 0
11  // CHECK-NEXT: ret
12}
13
14