Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -O1 -triple arm64-apple-ios7 -ffreestanding -S -o - -emit-llvm %s | FileCheck %s |
2 | // Test ARM64 SIMD vget intrinsics | ||||
3 | |||||
4 | #include <arm_neon.h> | ||||
5 | |||||
6 | float64_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 |