brintos

brintos / llvm-project-archived public Read only

0
0
Text · 775 B · 711a00b Raw
31 lines · plain
1; Test for checking division is inlined or not in case of Os.2; RUN: llc -O2 -mtriple=hexagon < %s | FileCheck %s3 4; Function Attrs: optsize5define dso_local i32 @testInt(i32 %a, i32 %b) local_unnamed_addr #0 {6entry:7;CHECK: call __hexagon_divsi38  %div = sdiv i32 %a, %b9  %conv = sitofp i32 %div to float10  %conv1 = fptosi float %conv to i3211  ret i32 %conv112}13 14; Function Attrs: optsize15define dso_local float @testFloat(float %a, float %b) local_unnamed_addr #0 {16entry:17;CHECK: jump __hexagon_divsf318  %div = fdiv float %a, %b19  ret float %div20}21 22; Function Attrs: optsize23define dso_local double @testDouble(double %a, double %b) local_unnamed_addr #0 {24entry:25;CHECK: jump __hexagon_divdf326  %div = fdiv double %a, %b27  ret double %div28}29 30attributes #0 = { optsize }31