<commit_before>// RUN: %swift -target x86_64-apple-darwin10 -emit-ir %s | FileCheck %s

// Make sure we use an intrinsic for functions such as sqrt
// CHECK: tail call float @llvm.sqrt.f32
func(f : Float) -> Float {
  return sqrt(f)
}

// CHECK: tail call float @llvm.sqrt.f64
func(f : Double) -> Double {
  return sqrt(f)
}<commit_msg>Fix test to import Darwin and use correct check lines<commit_after>// RUN: %target-swift-frontend -target x86_64-apple-darwin10 -emit-ir %s | FileCheck %s

import Darwin

// Make sure we use an intrinsic for functions such as sqrt
// CHECK: call float @llvm.sqrt.f32
func test1(f : Float) -> Float {
  return sqrt(f)
}

// CHECK: call double @llvm.sqrt.f64
func test2(f : Double) -> Double {
  return _sqrt(f)
}
{'fraction_non_alphanumeric': 0.1285140562248996, 'fraction_numerical': 0.029451137884872823, 'mean_word_length': 3.4790419161676644, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3196110', 'n_tokens_mistral': 277, 'n_tokens_neox': 254, 'n_words': 91}