1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -ffreestanding -triple x86_64-apple-macosx10.8.0 -target-feature +sse4.1 -g -emit-llvm %s -o - | FileCheck %s
2*0a6a1f1dSLionel Sambuc 
3*0a6a1f1dSLionel Sambuc // Test that intrinsic calls inlined from _mm_* wrappers have debug metadata.
4*0a6a1f1dSLionel Sambuc 
5*0a6a1f1dSLionel Sambuc #include <xmmintrin.h>
6*0a6a1f1dSLionel Sambuc 
test_rsqrt_ss(__m128 x)7*0a6a1f1dSLionel Sambuc __m128 test_rsqrt_ss(__m128 x) {
8*0a6a1f1dSLionel Sambuc   // CHECK: define {{.*}} @test_rsqrt_ss
9*0a6a1f1dSLionel Sambuc   // CHECK: call <4 x float> @llvm.x86.sse.rsqrt.ss({{.*}}, !dbg !{{.*}}
10*0a6a1f1dSLionel Sambuc   // CHECK: ret <4 x float>
11*0a6a1f1dSLionel Sambuc   return _mm_rsqrt_ss(x);
12*0a6a1f1dSLionel Sambuc }
13