<commit_before>; RUN: opt < %s -instcombine -S | FileCheck %s

define double @pow_half(double %x) {
  %pow = call fast double @llvm.pow.f64(double %x, double 5.000000e-01)
  ret double %pow
}

; CHECK-LABEL: define double @pow_half(
; CHECK-NEXT:  %sqrt = call fast double @sqrt(double %x) #1
; CHECK-NEXT:  ret double %sqrt

define double @pow_neghalf(double %x) {
  %pow = call fast double @llvm.pow.f64(double %x, double -5.000000e-01)
  ret double %pow
}

; CHECK-LABEL: define double @pow_neghalf(
; CHECK-NEXT: %sqrt = call fast double @sqrt(double %x) #1
; CHECK-NEXT: %sqrtrecip = fdiv fast double 1.000000e+00, %sqrt
; CHECK-NEXT: ret double %sqrtrecip

declare double @llvm.pow.f64(double, double) #0

attributes #0 = { nounwind readnone speculatable }
attributes #1 = { nounwind readnone }<commit_msg>[InstCombine] regenerate test checks; NFC<commit_after>; RUN: opt < %s -instcombine -S | FileCheck %s

define double @pow_half(double %x) {
; CHECK-LABEL: @pow_half(
; CHECK-NEXT:    [[SQRT:%.*]] = call fast double @sqrt(double %x) #1
; CHECK-NEXT:    ret double [[SQRT]]
;
  %pow = call fast double @llvm.pow.f64(double %x, double 5.000000e-01)
  ret double %pow
}

define double @pow_neghalf(double %x) {
; CHECK-LABEL: @pow_neghalf(
; CHECK-NEXT:    [[SQRT:%.*]] = call fast double @sqrt(double %x) #1
; CHECK-NEXT:    [[SQRTRECIP:%.*]] = fdiv fast double 1.000000e+00, [[SQRT]]
; CHECK-NEXT:    ret double [[SQRTRECIP]]
;
  %pow = call fast double @llvm.pow.f64(double %x, double -5.000000e-01)
  ret double %pow
}

declare double @llvm.pow.f64(double, double) #0

attributes #0 = { nounwind readnone speculatable }
attributes #1 = { nounwind readnone }
{'fraction_non_alphanumeric': 0.15278609946075494, 'fraction_numerical': 0.04553624925104853, 'mean_word_length': 4.235109717868339, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '3386063', 'n_tokens_mistral': 669, 'n_tokens_neox': 610, 'n_words': 182}