1 ; RUN: llc -march=mipsel < %s | FileCheck %s -check-prefix=32
2 ; RUN: llc -march=mips64el -mcpu=mips64 < %s | FileCheck %s -check-prefix=64
4 ; 32-LABEL: test_sqrtf_float_:
5 ; 32: sqrt.s $f[[R0:[0-9]+]], $f{{[0-9]+}}
6 ; 32: c.un.s $f[[R0]], $f[[R0]]
7 ; 64-LABEL: test_sqrtf_float_:
8 ; 64: sqrt.s $f[[R0:[0-9]+]], $f{{[0-9]+}}
9 ; 64: c.un.s $f[[R0]], $f[[R0]]
11 define float @test_sqrtf_float_(float %a) {
13 %call = tail call float @sqrtf(float %a)
17 declare float @sqrtf(float)
19 ; 32-LABEL: test_sqrt_double_:
20 ; 32: sqrt.d $f[[R0:[0-9]+]], $f{{[0-9]+}}
21 ; 32: c.un.d $f[[R0]], $f[[R0]]
22 ; 64-LABEL: test_sqrt_double_:
23 ; 64: sqrt.d $f[[R0:[0-9]+]], $f{{[0-9]+}}
24 ; 64: c.un.d $f[[R0]], $f[[R0]]
26 define double @test_sqrt_double_(double %a) {
28 %call = tail call double @sqrt(double %a)
32 declare double @sqrt(double)