<commit_before><commit_msg>[CodeGen] add tests for abs builtins; NFC<commit_after>// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm %s -o - | FileCheck %s

int absi(int x) {
// CHECK-LABEL: @absi(
// CHECK:   [[NEG:%.*]] = sub i32 0, [[X:%.*]]
// CHECK:   [[CMP:%.*]] = icmp sge i32 [[X]], 0
// CHECK:   [[SEL:%.*]] = select i1 [[CMP]], i32 [[X]], i32 [[NEG]]
//
  return __builtin_abs(x);
}

long absl(long x) {
// CHECK-LABEL: @absl(
// CHECK:   [[NEG:%.*]] = sub i64 0, [[X:%.*]]
// CHECK:   [[CMP:%.*]] = icmp sge i64 [[X]], 0
// CHECK:   [[SEL:%.*]] = select i1 [[CMP]], i64 [[X]], i64 [[NEG]]
//
  return __builtin_labs(x);
}

long long absll(long long x) {
// CHECK-LABEL: @absll(
// CHECK:   [[NEG:%.*]] = sub i64 0, [[X:%.*]]
// CHECK:   [[CMP:%.*]] = icmp sge i64 [[X]], 0
// CHECK:   [[SEL:%.*]] = select i1 [[CMP]], i64 [[X]], i64 [[NEG]]
//
  return __builtin_llabs(x);
}


{'fraction_non_alphanumeric': 0.2898550724637681, 'fraction_numerical': 0.042363433667781496, 'mean_word_length': 3.081818181818182, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7629385', 'n_tokens_mistral': 386, 'n_tokens_neox': 391, 'n_words': 105}