]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
STOREP instructions' first operand has to be considered a read-operand, not a write...
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 19 Aug 2012 15:46:10 +0000 (17:46 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 19 Aug 2012 15:46:10 +0000 (17:46 +0200)
ir.c

diff --git a/ir.c b/ir.c
index cc0aa10078f481db03959ebf6353a4509e014082..2adaa724a7007624234d7655a4f66a0a49a1294f 100644 (file)
--- a/ir.c
+++ b/ir.c
@@ -1947,6 +1947,15 @@ static void ir_op_read_write(int op, size_t *read, size_t *write)
         *write = 0;
         *read = 1;
         break;
+    case INSTR_STOREP_F:
+    case INSTR_STOREP_V:
+    case INSTR_STOREP_S:
+    case INSTR_STOREP_ENT:
+    case INSTR_STOREP_FLD:
+    case INSTR_STOREP_FNC:
+        *write = 0;
+        *read  = 7;
+        break;
     default:
         *write = 1;
         *read = 6;