brintos

brintos / llvm-project-archived public Read only

0
0
Text · 765 B · 0af781f Raw
27 lines · plain
1; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu \2; RUN:     -mcpu=pwr9 -stop-after=early-ifcvt < %s | FileCheck %s3 4define float @test_XSRDPI(float %f) {5entry:6  %0 = tail call float @llvm.round.f32(float %f)7  ret float %08 9; CHECK-LABEL: name:            test_XSRDPI10; CHECK-NOT:  %2:vsfrc = nofpexcept XSRDPI killed %1, implicit $rm11; CHECK:      %2:vsfrc = nofpexcept XSRDPI killed %112}13 14define double @test_XSRDPIM(double %d) {15entry:16  %0 = tail call double @llvm.floor.f64(double %d)17  ret double %018 19; CHECK-LABEL: name:            test_XSRDPIM20; CHECK-NOT:  %1:vsfrc = nofpexcept XSRDPIM %0, implicit $rm21; CHECK:      %1:vsfrc = nofpexcept XSRDPIM %022}23 24declare float @llvm.round.f32(float)25declare double @llvm.floor.f64(double)26 27