aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/arm64_vget.c
blob: 62b68ef343c8251d3902fd219a0d2c5514dd1c91 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clang_cc1 -O1 -triple arm64-apple-ios7 -target-feature +neon -ffreestanding -S -o - -emit-llvm %s | FileCheck %s
// Test ARM64 SIMD vget intrinsics

#include <arm_neon.h>

float64_t test_vget_lane_f64(float64x1_t a1) {
  // CHECK: test_vget_lane_f64
  // why isn't 1 allowed as second argument?
  return vget_lane_f64(a1, 0);
  // CHECK: extractelement {{.*}} i32 0
  // CHECK-NEXT: ret
}