brintos

brintos / llvm-project-archived public Read only

0
0
Text · 618 B · e8d70d3 Raw
14 lines · c
1// RUN: %clang_cc1 -x c -ffreestanding -triple x86_64-apple-macosx10.8.0 -target-feature +sse4.1 -debug-info-kind=limited -emit-llvm %s -o - | FileCheck %s2// RUN: %clang_cc1 -x c++ -ffreestanding -triple x86_64-apple-macosx10.8.0 -target-feature +sse4.1 -debug-info-kind=limited -emit-llvm %s -o - | FileCheck %s3 4// Test that intrinsic calls inlined from _mm_* wrappers have debug metadata.5 6#include <xmmintrin.h>7 8__m128 test_rsqrt_ss(__m128 x) {9  // CHECK-LABEL: test_rsqrt_ss10  // CHECK: call {{.*}}<4 x float> @llvm.x86.sse.rsqrt.ss({{.*}}, !dbg !{{.*}}11  // CHECK: ret <4 x float>12  return _mm_rsqrt_ss(x);13}14