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