1 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm %s -o - | FileCheck %s
5 // CHECK: [[ABS:%.*]] = call i32 @llvm.abs.i32(i32 %0, i1 true)
6 // CHECK-NEXT: ret i32 [[ABS]]
8 return __builtin_abs(x
);
12 // CHECK-LABEL: @absl(
13 // CHECK: [[ABS:%.*]] = call i64 @llvm.abs.i64(i64 %0, i1 true)
14 // CHECK-NEXT: ret i64 [[ABS]]
16 return __builtin_labs(x
);
19 long long absll(long long x
) {
20 // CHECK-LABEL: @absll(
21 // CHECK: [[ABS:%.*]] = call i64 @llvm.abs.i64(i64 %0, i1 true)
22 // CHECK-NEXT: ret i64 [[ABS]]
24 return __builtin_llabs(x
);