Daniel Sanders | 1b33417 | 2015-10-06 15:17:25 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -march=mipsel -mcpu=mips32r2 -mattr=+micromips | FileCheck %s |
2 | ; RUN: llc < %s -march=mips -mcpu=mips32r2 -mattr=+micromips | FileCheck %s | ||||
3 | ; RUN: llc < %s -march=mips -mcpu=mips32r6 -mattr=+micromips | FileCheck %s | ||||
4 | |||||
5 | define float @sqrt_fn(float %value) #0 { | ||||
6 | entry: | ||||
7 | %sqrtf = tail call float @sqrtf(float %value) #0 | ||||
8 | ret float %sqrtf | ||||
9 | } | ||||
10 | |||||
11 | declare float @sqrtf(float) | ||||
12 | |||||
13 | ; CHECK: sqrt.s $f0, $f12 |