brintos

brintos / llvm-project-archived public Read only

0
0
Text · 801 B · f7ca102 Raw
24 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py2; RUN: opt -S -mtriple=i686-apple-macosx -passes=instcombine %s | FileCheck %s3 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:%.*]] = tail 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 %fabsl13}14 15define 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]]19;20  %fabsl = tail call nnan x86_fp80 @fabsl(x86_fp80 %x)21  ret x86_fp80 %fabsl22}23 24