<commit_before>; RUN: llc < %s -mattr=-vsx -march=ppc32 -mtriple=powerpc-apple-darwin | grep "fabs f1, f1"

define double @fabs(double %f) {
entry:
	%tmp2 = tail call double @fabs( double %f ) readnone	; <double> [#uses=1]
	ret double %tmp2
}<commit_msg>use FileCheck; add test for disguised fabs<commit_after>; RUN: llc < %s -mattr=-vsx -march=ppc32 -mtriple=powerpc-apple-darwin | FileCheck %s

define double @fabs(double %f) {
; CHECK-LABEL: fabs:
; CHECK:       ; BB#0:
; CHECK-NEXT:    fabs f1, f1
; CHECK-NEXT:    blr
;
  %t = tail call double @fabs( double %f ) readnone
  ret double %t
}

define float @bitcast_fabs(float %x) {
; CHECK-LABEL: bitcast_fabs:
; CHECK:       ; BB#0:
; CHECK-NEXT:    stfs f1, -8(r1)
; CHECK-NEXT:    nop
; CHECK-NEXT:    nop
; CHECK-NEXT:    lwz r2, -8(r1)
; CHECK-NEXT:    clrlwi r2, r2, 1
; CHECK-NEXT:    stw r2, -4(r1)
; CHECK-NEXT:    lfs f1, -4(r1)
; CHECK-NEXT:    blr
;
  %bc1 = bitcast float %x to i32
  %and = and i32 %bc1, 2147483647
  %bc2 = bitcast i32 %and to float
  ret float %bc2
}

{'fraction_non_alphanumeric': 0.15332690453230471, 'fraction_numerical': 0.04628736740597879, 'mean_word_length': 3.2024291497975708, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 4, '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': '2462197', 'n_tokens_mistral': 472, 'n_tokens_neox': 451, 'n_words': 124}