aboutsummaryrefslogtreecommitdiffstats
path: root/code/qcommon/vm_ppc_new.c
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-11-13 23:05:00 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-11-13 23:05:00 +0000
commit5cecaff9b37afdbef85427cea136c6101d88f1c0 (patch)
tree5d565d36cc18ba6b784014746e8fca6df5c670de /code/qcommon/vm_ppc_new.c
parent2d4f4fd1d47743cf07398ac15433871efd8d52f8 (diff)
downloadioquake3-aero-5cecaff9b37afdbef85427cea136c6101d88f1c0.tar.gz
ioquake3-aero-5cecaff9b37afdbef85427cea136c6101d88f1c0.zip
* Quiet some warnings on OS X
git-svn-id: svn://svn.icculus.org/quake3/trunk@355 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/qcommon/vm_ppc_new.c')
-rw-r--r--code/qcommon/vm_ppc_new.c65
1 files changed, 0 insertions, 65 deletions
diff --git a/code/qcommon/vm_ppc_new.c b/code/qcommon/vm_ppc_new.c
index a296a44..955b136 100644
--- a/code/qcommon/vm_ppc_new.c
+++ b/code/qcommon/vm_ppc_new.c
@@ -24,8 +24,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "vm_local.h"
-#pragma opt_pointer_analysis off
-
#define DEBUG_VM 0
#if DEBUG_VM
@@ -523,37 +521,6 @@ static vm_t *tvm;
static int instruction;
static byte *jused;
-static void ltop() {
-// if (rtopped == qfalse) {
-// InstImm( PPC_LWZ, R_TOP, R_OPSTACK, 0 ); // get value from opstack
-// }
-}
-
-static void ltopandsecond() {
-#if 0
- if (pass>=0 && buf[compiledOfs-1] == (PPC_STWU | R_TOP<<21 | R_OPSTACK<<16 | 4 ) && jused[instruction]==0 ) {
- compiledOfs--;
- if (!pass) {
- tvm->instructionPointers[instruction] = compiledOfs * 4;
- }
- InstImm( PPC_LWZ, R_SECOND, R_OPSTACK, 0 ); // get value from opstack
- InstImm( PPC_ADDI, R_OPSTACK, R_OPSTACK, -4 );
- } else if (pass>=0 && buf[compiledOfs-1] == (PPC_STW | R_TOP<<21 | R_OPSTACK<<16 | 0 ) && jused[instruction]==0 ) {
- compiledOfs--;
- if (!pass) {
- tvm->instructionPointers[instruction] = compiledOfs * 4;
- }
- InstImm( PPC_LWZ, R_SECOND, R_OPSTACK, -4 ); // get value from opstack
- InstImm( PPC_ADDI, R_OPSTACK, R_OPSTACK, -8 );
- } else {
- ltop(); // get value from opstack
- InstImm( PPC_LWZ, R_SECOND, R_OPSTACK, -4 ); // get value from opstack
- InstImm( PPC_ADDI, R_OPSTACK, R_OPSTACK, -8 );
- }
- rtopped = qfalse;
-#endif
-}
-
static void spillOpStack(int depth)
{
// Store out each register on the operand stack to it's correct location.
@@ -593,38 +560,6 @@ static void loadOpStack(int depth)
}
}
-static void makeInteger(int depth)
-{
- // This should really never be necessary...
- assert(opStackRegType[depth] == 1);
- //assert(opStackRegType[depth] == 2);
- if(opStackRegType[depth] == 2)
- {
- unsigned instruction;
- assert(opStackLoadInstructionAddr[depth]);
-
- printf("patching float load at %p to int load\n",opStackLoadInstructionAddr[depth]);
- // Repatch load instruction to use LFS instead of LWZ
- instruction = *opStackLoadInstructionAddr[depth];
- instruction &= ~PPC_LFSX;
- instruction |= PPC_LWZX;
- *opStackLoadInstructionAddr[depth] = instruction;
- opStackLoadInstructionAddr[depth] = 0;
- opStackRegType[depth] = 1;
- #if 0
- InstImm( "stfs", PPC_STFS, opStackFloatRegisters[depth], R_OPSTACK, depth*4+4);
- // For XXX make sure we force enough NOPs to get the load into
- // another dispatch group to avoid pipeline flush.
- Inst( "ori", PPC_ORI, 0, 0, 0 );
- Inst( "ori", PPC_ORI, 0, 0, 0 );
- Inst( "ori", PPC_ORI, 0, 0, 0 );
- Inst( "ori", PPC_ORI, 0, 0, 0 );
- InstImm( "lwz", PPC_LWZ, opStackIntRegisters[depth], R_OPSTACK, depth*4+4);
- opStackRegType[depth] = 1;
- #endif
- }
-}
-
static void makeFloat(int depth)
{
//assert(opStackRegType[depth] == 1);