summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/vector.ll
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2013-07-08 17:30:25 +0000
committerHal Finkel <hfinkel@anl.gov>2013-07-08 17:30:25 +0000
commite39302258ea4308782ddceb999abe07936e1297b (patch)
tree37d15a0d9a6f6bf2d0331733f77d5e00dd36a94e /llvm/test/CodeGen/PowerPC/vector.ll
parent6f33168bb7d9397fb53a582e1867589c2f0d5646 (diff)
downloadbcm5719-llvm-e39302258ea4308782ddceb999abe07936e1297b.tar.gz
bcm5719-llvm-e39302258ea4308782ddceb999abe07936e1297b.zip
PPC: Mark vector FREM as Expand by default
Another bug found by llvm-stress! This fixes crashing with: LLVM ERROR: Cannot select: v4f32 = frem ... llvm-svn: 185840
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/vector.ll')
-rw-r--r--llvm/test/CodeGen/PowerPC/vector.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/vector.ll b/llvm/test/CodeGen/PowerPC/vector.ll
index e4c3b0db172..859a85a1410 100644
--- a/llvm/test/CodeGen/PowerPC/vector.ll
+++ b/llvm/test/CodeGen/PowerPC/vector.ll
@@ -59,6 +59,14 @@ define void @test_div(%f8* %P, %f8* %Q, %f8* %S) {
ret void
}
+define void @test_rem(%f8* %P, %f8* %Q, %f8* %S) {
+ %p = load %f8* %P ; <%f8> [#uses=1]
+ %q = load %f8* %Q ; <%f8> [#uses=1]
+ %R = frem %f8 %p, %q ; <%f8> [#uses=1]
+ store %f8 %R, %f8* %S
+ ret void
+}
+
;;; TEST VECTOR CONSTRUCTS
define void @test_cst(%f4* %P, %f4* %S) {
OpenPOWER on IntegriCloud