brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 8f354c1 Raw
33 lines · plain
1; RUN: llc -o - %s -mtriple=mips-unknown-linux-gnu \2; RUN:     -mcpu=mips32 -mattr=+fpxx \3; RUN:     -stop-after=finalize-isel | \4; RUN:     FileCheck %s -check-prefix=FPXX-IMPLICIT-SP5 6; RUN: llc -o - %s -mtriple=mips-unknown-linux-gnu \7; RUN:     -mcpu=mips32r6 -mattr=+fp64,+nooddspreg \8; RUN:     -stop-after=finalize-isel | \9; RUN:     FileCheck %s -check-prefix=FP64-IMPLICIT-SP10 11; RUN: llc -o - %s -mtriple=mips-unknown-linux-gnu \12; RUN:     -mcpu=mips32r2 -mattr=+fpxx \13; RUN:     -stop-after=finalize-isel | \14; RUN:     FileCheck %s -check-prefix=NO-IMPLICIT-SP15 16define double @foo2(i32 signext %v1, double %d1) {17entry:18; FPXX-IMPLICIT-SP: BuildPairF64 %{{[0-9]+}}, %{{[0-9]+}}, implicit $sp19; FPXX-IMPLICIT-SP: ExtractElementF64 killed %{{[0-9]+}}, 1, implicit $sp20; FP64-IMPLICIT-SP: BuildPairF64_64 %{{[0-9]+}}, %{{[0-9]+}}, implicit $sp21; FP64-IMPLICIT-SP: ExtractElementF64_64 killed %{{[0-9]+}}, 1, implicit $sp22; NO-IMPLICIT-SP: BuildPairF64 %{{[0-9]+}}, %{{[0-9]+}}23; NO-IMPLICIT-SP-NOT: BuildPairF64 %{{[0-9]+}}, %{{[0-9]+}}, implicit $sp24; NO-IMPLICIT-SP: ExtractElementF64 killed %{{[0-9]+}}, 125; NO-IMPLICIT-SP-NOT: ExtractElementF64 killed %{{[0-9]+}}, 1, implicit $sp26  %conv = fptrunc double %d1 to float27  %0 = tail call float @llvm.copysign.f32(float 1.000000e+00, float %conv)28  %conv1 = fpext float %0 to double29  ret double %conv130}31 32declare float @llvm.copysign.f32(float, float)33