From 7a4bd44dc9e4d440ad61db66842206d0e7a1dbdc Mon Sep 17 00:00:00 2001 From: Kihwal Lee Date: Mon, 15 Jul 2013 18:17:35 +0000 Subject: [PATCH] svn merge -c 1503390 merging from trunk to fix HADOOP-9707. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1503394 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ .../native/src/org/apache/hadoop/util/bulk_crc32.c | 12 ++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index d6c28d54887..127b6afd186 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -336,6 +336,9 @@ Release 2.1.0-beta - 2013-07-02 HADOOP-9656. Gridmix unit tests fail on Windows and Linux. (Chuan Liu via cnauroth) + HADOOP-9707. Fix register lists for crc32c inline assembly. (todd via + kihwal) + BREAKDOWN OF HADOOP-8562 SUBTASKS AND RELATED JIRAS HADOOP-8924. Hadoop Common creating package-info.java must not depend on diff --git a/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/util/bulk_crc32.c b/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/util/bulk_crc32.c index 3e76b721550..4f02eedd6a7 100644 --- a/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/util/bulk_crc32.c +++ b/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/util/bulk_crc32.c @@ -427,7 +427,7 @@ static void pipelined_crc32c(uint32_t *crc1, uint32_t *crc2, uint32_t *crc3, con "crc32q (%7,%6,1), %1;\n\t" "crc32q (%7,%6,2), %2;\n\t" : "=r"(c1), "=r"(c2), "=r"(c3) - : "r"(c1), "r"(c2), "r"(c3), "r"(block_size), "r"(data) + : "0"(c1), "1"(c2), "2"(c3), "r"(block_size), "r"(data) ); data++; counter--; @@ -443,7 +443,7 @@ static void pipelined_crc32c(uint32_t *crc1, uint32_t *crc2, uint32_t *crc3, con "crc32b (%7,%6,1), %1;\n\t" "crc32b (%7,%6,2), %2;\n\t" : "=r"(c1), "=r"(c2), "=r"(c3) - : "r"(c1), "r"(c2), "r"(c3), "r"(block_size), "r"(bdata) + : "0"(c1), "1"(c2), "2"(c3), "r"(block_size), "r"(bdata) ); bdata++; remainder--; @@ -456,7 +456,7 @@ static void pipelined_crc32c(uint32_t *crc1, uint32_t *crc2, uint32_t *crc3, con "crc32q (%5), %0;\n\t" "crc32q (%5,%4,1), %1;\n\t" : "=r"(c1), "=r"(c2) - : "r"(c1), "r"(c2), "r"(block_size), "r"(data) + : "0"(c1), "1"(c2), "r"(block_size), "r"(data) ); data++; counter--; @@ -468,7 +468,7 @@ static void pipelined_crc32c(uint32_t *crc1, uint32_t *crc2, uint32_t *crc3, con "crc32b (%5), %0;\n\t" "crc32b (%5,%4,1), %1;\n\t" : "=r"(c1), "=r"(c2) - : "r"(c1), "r"(c2), "r"(block_size), "r"(bdata) + : "0"(c1), "1"(c2), "r"(block_size), "r"(bdata) ); bdata++; remainder--; @@ -480,7 +480,7 @@ static void pipelined_crc32c(uint32_t *crc1, uint32_t *crc2, uint32_t *crc3, con __asm__ __volatile__( "crc32q (%2), %0;\n\t" : "=r"(c1) - : "r"(c1), "r"(data) + : "0"(c1), "r"(data) ); data++; counter--; @@ -490,7 +490,7 @@ static void pipelined_crc32c(uint32_t *crc1, uint32_t *crc2, uint32_t *crc3, con __asm__ __volatile__( "crc32b (%2), %0;\n\t" : "=r"(c1) - : "r"(c1), "r"(bdata) + : "0"(c1), "r"(bdata) ); bdata++; remainder--;