blob: 62b68ef343c8251d3902fd219a0d2c5514dd1c91 [file] [log] [blame]
Stephen Hines6bcf27b2014-05-29 04:14:42 -07001// RUN: %clang_cc1 -O1 -triple arm64-apple-ios7 -target-feature +neon -ffreestanding -S -o - -emit-llvm %s | FileCheck %s
Stephen Hines651f13c2014-04-23 16:59:28 -07002// 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