Skip to content

Commit

Permalink
Merge pull request #3023 from aviansie-ben/vbpermq
Browse files Browse the repository at this point in the history
Enable vbpermq support in the Power codegen
  • Loading branch information
0xdaryl authored Oct 4, 2018
2 parents 6fc8ead + a7b9237 commit 6864b36
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions compiler/p/codegen/OMRInstOpCodeEnum.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,7 @@
vxor, // vector xor
vnor, // vector nor
vperm, // vector permute
vbpermq, // Vector Bit Permute Qword
vsel, // vector conditional select
vsumsws, // vector sum across signed word saturate
vsum2sws, // vector sum across partial signed word saturate
Expand Down
1 change: 1 addition & 0 deletions compiler/p/codegen/OpBinary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,7 @@ const TR_PPCOpCodeBinaryEntry OMR::Power::InstOpCode::binaryEncodings[PPCNumOpCo
0x100004c4, // vxor
0x10000504, // vnor
0x1000002b, // vperm
0x1000054c, // vbpermq
0x1000002a, // vsel
0x10000788, // vsumsws
0x10000688, // vsum2sws
Expand Down
6 changes: 5 additions & 1 deletion compiler/p/codegen/OpProperties.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2016 IBM Corp. and others
* Copyright (c) 2000, 2018 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -2500,6 +2500,10 @@ PPCOpProp_SyncSideEffectFree,
PPCOpProp_IsVMX |
PPCOpProp_SyncSideEffectFree,

// vbpermq
PPCOpProp_IsVMX |
PPCOpProp_SyncSideEffectFree,

// vsel
PPCOpProp_IsVMX |
PPCOpProp_SyncSideEffectFree,
Expand Down
4 changes: 2 additions & 2 deletions compiler/p/codegen/PPCOps.ops
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! Copyright (c) 2000, 2016 IBM Corp. and others
!! Copyright (c) 2000, 2018 IBM Corp. and others
!!
!! This program and the accompanying materials are made available under
!! the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -586,7 +586,7 @@ vnor vnor 10000504 IsVMX,SyncSideEffectFree
vperm vperm 1000002B IsVMX,SyncSideEffectFree // vector permute
!vpermr vpermr 1000003b IsVMX,SyncSideEffectFree // vector permute right-indexed
!vbpermd vbpermd 100005cc IsVMX,SyncSideEffectFree // vector bit permute DWord
!vbpermq vbpermq 1000054c IsVMX,SyncSideEffectFree // Vector Bit Permute Qword
vbpermq vbpermq 1000054c IsVMX,SyncSideEffectFree // Vector Bit Permute Qword
!vrld vrld 100000c4 IsRotateOrShift,IsVMX,SyncSideEffectFree // Vector Rotate Left Dword
!vsbox vsbox 100005c8 IsVMX,SyncSideEffectFree // Vector AES SubBytes
vsel vsel 1000002A IsVMX,SyncSideEffectFree // vector conditional select
Expand Down
1 change: 1 addition & 0 deletions compiler/ras/PPCOpNames.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,7 @@ const char * ppcOpCodeToNameMap[][2] =
{"vxor", "vxor"},
{"vnor", "vnor"},
{"vperm", "vperm"},
{"vbpermq", "vbpermq"},
{"vsel", "vsel"},
{"vsumsws", "vsumsws"},
{"vsum2sws", "vsum2sws"},
Expand Down

0 comments on commit 6864b36

Please sign in to comment.