summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/rounding-ops.ll
diff options
context:
space:
mode:
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>2019-12-30 07:38:27 -0600
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>2019-12-30 08:03:53 -0600
commit0f0330a7870929558b2a2571ab28d242e719142e (patch)
tree1c31c547e4a0b28961a43dcc0be822857149a9d2 /llvm/test/CodeGen/PowerPC/rounding-ops.ll
parent32cc14100e802fddd9f88e7a862250ce3108a583 (diff)
downloadbcm5719-llvm-0f0330a7870929558b2a2571ab28d242e719142e.tar.gz
bcm5719-llvm-0f0330a7870929558b2a2571ab28d242e719142e.zip
[PowerPC] Legalize rounding nodes
VSX provides a full complement of rounding instructions yet we somehow ended up with some of them legal and others not. This just legalizes all of the FP rounding nodes and the FP -> int rounding nodes with unsafe math. Differential revision: https://reviews.llvm.org/D69949
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/rounding-ops.ll')
-rw-r--r--llvm/test/CodeGen/PowerPC/rounding-ops.ll8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/PowerPC/rounding-ops.ll b/llvm/test/CodeGen/PowerPC/rounding-ops.ll
index 206a99a36e1..c4ad110eb8b 100644
--- a/llvm/test/CodeGen/PowerPC/rounding-ops.ll
+++ b/llvm/test/CodeGen/PowerPC/rounding-ops.ll
@@ -10,7 +10,7 @@ define float @test1(float %x) nounwind {
; CHECK-LABEL: test1:
; CHECK: frim 1, 1
; CHECK-VSX-LABEL: test1:
-; CHECK-VSX: frim 1, 1
+; CHECK-VSX: xsrdpim 1, 1
}
declare float @floorf(float) nounwind readnone
@@ -34,7 +34,7 @@ define float @test3(float %x) nounwind {
; CHECK-LABEL: test3:
; CHECK: frin 1, 1
; CHECK-VSX-LABEL: test3:
-; CHECK-VSX: frin 1, 1
+; CHECK-VSX: xsrdpi 1, 1
}
declare float @roundf(float) nounwind readnone
@@ -58,7 +58,7 @@ define float @test5(float %x) nounwind {
; CHECK-LABEL: test5:
; CHECK: frip 1, 1
; CHECK-VSX-LABEL: test5:
-; CHECK-VSX: frip 1, 1
+; CHECK-VSX: xsrdpip 1, 1
}
declare float @ceilf(float) nounwind readnone
@@ -82,7 +82,7 @@ define float @test9(float %x) nounwind {
; CHECK-LABEL: test9:
; CHECK: friz 1, 1
; CHECK-VSX-LABEL: test9:
-; CHECK-VSX: friz 1, 1
+; CHECK-VSX: xsrdpiz 1, 1
}
declare float @truncf(float) nounwind readnone
OpenPOWER on IntegriCloud