Krzysztof Parzyszek | bd8ef4b | 2016-08-19 13:34:31 +0000 | [diff] [blame] | 1 | ; RUN: llc -march=hexagon < %s | FileCheck %s |
| 2 | |
| 3 | target datalayout = "e-m:e-p:32:32:32-a:0-n16:32-i64:64:64-i32:32:32-i16:16:16-i1:8:8-f32:32:32-f64:64:64-v32:32:32-v64:64:64-v512:512:512-v1024:1024:1024-v2048:2048:2048" |
| 4 | target triple = "hexagon" |
| 5 | |
| 6 | ; CHECK-LABEL: minimum |
| 7 | ; CHECK: sfmin |
| 8 | define float @minimum(float %x, float %y) #0 { |
| 9 | entry: |
| 10 | %call = tail call float @fminf(float %x, float %y) #1 |
| 11 | ret float %call |
| 12 | } |
| 13 | |
| 14 | ; CHECK-LABEL: maximum |
| 15 | ; CHECK: sfmax |
| 16 | define float @maximum(float %x, float %y) #0 { |
| 17 | entry: |
| 18 | %call = tail call float @fmaxf(float %x, float %y) #1 |
| 19 | ret float %call |
| 20 | } |
| 21 | |
| 22 | declare float @fminf(float, float) #0 |
| 23 | declare float @fmaxf(float, float) #0 |
| 24 | |
| 25 | attributes #0 = { nounwind readnone "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="hexagonv60" "target-features"="+hvx,-hvx-double" "unsafe-fp-math"="false" "use-soft-float"="false" } |
| 26 | attributes #1 = { nounwind readnone } |
| 27 | |