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