diff options
author | Hal Finkel <hfinkel@anl.gov> | 2013-07-08 17:30:25 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2013-07-08 17:30:25 +0000 |
commit | ad3b34d1bc4eaa92a95c56fe32fd18a6f36f62f4 (patch) | |
tree | 86b29845bad437d2742278746fbd87b4ba77700f /test/CodeGen/PowerPC/vector.ll | |
parent | 9f439059e60053ae1b8bb40efbe5df0966add03c (diff) | |
download | external_llvm-ad3b34d1bc4eaa92a95c56fe32fd18a6f36f62f4.zip external_llvm-ad3b34d1bc4eaa92a95c56fe32fd18a6f36f62f4.tar.gz external_llvm-ad3b34d1bc4eaa92a95c56fe32fd18a6f36f62f4.tar.bz2 |
PPC: Mark vector FREM as Expand by default
Another bug found by llvm-stress! This fixes crashing with:
LLVM ERROR: Cannot select: v4f32 = frem ...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185840 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/vector.ll')
-rw-r--r-- | test/CodeGen/PowerPC/vector.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/vector.ll b/test/CodeGen/PowerPC/vector.ll index e4c3b0d..859a85a 100644 --- a/test/CodeGen/PowerPC/vector.ll +++ b/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) { |