1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -O0 -mtriple=mipsel-linux-gnu -global-isel \
3 ; RUN: -verify-machineinstrs %s -o -| FileCheck %s
4 ; RUN: llc -O0 -mtriple=mipsel-linux-gnu -mattr=+fp64,+mips32r2 -global-isel \
5 ; RUN: -verify-machineinstrs %s -o -| FileCheck %s
7 declare float @llvm.sqrt.f32(float)
8 define float @sqrt_f32(float %a) {
9 ; CHECK-LABEL: sqrt_f32:
10 ; CHECK: # %bb.0: # %entry
11 ; CHECK-NEXT: sqrt.s $f0, $f12
15 %0 = call float @llvm.sqrt.f32(float %a)
19 declare double @llvm.sqrt.f64(double)
20 define double @sqrt_f64(double %a) {
21 ; CHECK-LABEL: sqrt_f64:
22 ; CHECK: # %bb.0: # %entry
23 ; CHECK-NEXT: sqrt.d $f0, $f12
27 %0 = call double @llvm.sqrt.f64(double %a)