1 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu \
2 ; RUN: -mcpu=pwr9 -stop-after=early-ifcvt < %s | FileCheck %s
4 define float @test_XSRDPI(float %f) {
6 %0 = tail call float @llvm.round.f32(float %f)
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
14 define double @test_XSRDPIM(double %d) {
16 %0 = tail call double @llvm.floor.f64(double %d)
19 ; CHECK-LABEL: name: test_XSRDPIM
20 ; CHECK-NOT: %1:vsfrc = nofpexcept XSRDPIM %0, implicit $rm
21 ; CHECK: %1:vsfrc = nofpexcept XSRDPIM %0
24 declare float @llvm.round.f32(float)
25 declare double @llvm.floor.f64(double)