brintos

brintos / llvm-project-archived public Read only

0
0
Text · 940 B · 7124013 Raw
34 lines · plain
1; RUN: llc -mtriple=mipsel < %s | FileCheck %s -check-prefix=322; RUN: llc -mtriple=mips64el -mcpu=mips4 < %s | FileCheck %s -check-prefix=643; RUN: llc -mtriple=mips64el -mcpu=mips64 < %s | FileCheck %s -check-prefix=644 5; 32-LABEL: test_sqrtf_float_:6; 32: sqrt.s $f[[R0:[0-9]+]], $f{{[0-9]+}}7; 32: c.un.s $f[[R0]], $f[[R0]]8; 64-LABEL: test_sqrtf_float_:9; 64: sqrt.s $f[[R0:[0-9]+]], $f{{[0-9]+}}10; 64: c.un.s $f[[R0]], $f[[R0]]11 12define float @test_sqrtf_float_(float %a) {13entry:14  %call = tail call float @sqrtf(float %a)15  ret float %call16}17 18declare float @sqrtf(float)19 20; 32-LABEL: test_sqrt_double_:21; 32: sqrt.d $f[[R0:[0-9]+]], $f{{[0-9]+}}22; 32: c.un.d $f[[R0]], $f[[R0]]23; 64-LABEL: test_sqrt_double_:24; 64: sqrt.d $f[[R0:[0-9]+]], $f{{[0-9]+}}25; 64: c.un.d $f[[R0]], $f[[R0]]26 27define double @test_sqrt_double_(double %a) {28entry:29  %call = tail call double @sqrt(double %a)30  ret double %call31}32 33declare double @sqrt(double)34