1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -S -mtriple=i686-apple-macosx -passes=instcombine %s | FileCheck %s
4 declare x86_fp80 @fabsl(x86_fp80)
6 define x86_fp80 @replace_fabs_call_f80(x86_fp80 %x) {
7 ; CHECK-LABEL: @replace_fabs_call_f80(
8 ; CHECK-NEXT: [[FABSL:%.*]] = tail call x86_fp80 @llvm.fabs.f80(x86_fp80 [[X:%.*]])
9 ; CHECK-NEXT: ret x86_fp80 [[FABSL]]
11 %fabsl = tail call x86_fp80 @fabsl(x86_fp80 %x)
15 define x86_fp80 @fmf_replace_fabs_call_f80(x86_fp80 %x) {
16 ; CHECK-LABEL: @fmf_replace_fabs_call_f80(
17 ; CHECK-NEXT: [[FABSL:%.*]] = tail call nnan x86_fp80 @llvm.fabs.f80(x86_fp80 [[X:%.*]])
18 ; CHECK-NEXT: ret x86_fp80 [[FABSL]]
20 %fabsl = tail call nnan x86_fp80 @fabsl(x86_fp80 %x)