| 1 |
; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu \ |
| 2 |
; RUN: -mcpu=pwr9 -stop-after=early-ifcvt < %s | FileCheck %s |
| 3 |
|
| 4 |
define float @test_XSRDPI(float %f) { |
| 5 |
entry: |
| 6 |
%0 = tail call float @llvm.round.f32(float %f) |
| 7 |
ret float %0 |
| 8 |
|
| 9 |
; CHECK-LABEL: name: test_XSRDPI |
| 10 |
; CHECK-NOT: %2:vsfrc = nofpexcept XSRDPI killed %1, implicit $rm |
| 11 |
; CHECK: %2:vsfrc = nofpexcept XSRDPI killed %1 |
| 12 |
} |
| 13 |
|
| 14 |
define double @test_XSRDPIM(double %d) { |
| 15 |
entry: |
| 16 |
%0 = tail call double @llvm.floor.f64(double %d) |
| 17 |
ret double %0 |
| 18 |
|
| 19 |
; CHECK-LABEL: name: test_XSRDPIM |
| 20 |
; CHECK-NOT: %1:vsfrc = nofpexcept XSRDPIM %0, implicit $rm |
| 21 |
; CHECK: %1:vsfrc = nofpexcept XSRDPIM %0 |
| 22 |
} |
| 23 |
|
| 24 |
declare float @llvm.round.f32(float) |
| 25 |
declare double @llvm.floor.f64(double) |
| 26 |
|