[libcxx-commits] [libcxx] 296c2f3 - [PowerPC] Rename mftbl to mftb

Steven Wan via libcxx-commits libcxx-commits at lists.llvm.org
Wed Nov 4 11:23:46 PST 2020


Author: Steven Wan
Date: 2020-11-04T14:23:27-05:00
New Revision: 296c2f31f0c56ab8f5b2a511d36a927ffe7f3eb6

URL: https://github.com/llvm/llvm-project/commit/296c2f31f0c56ab8f5b2a511d36a927ffe7f3eb6
DIFF: https://github.com/llvm/llvm-project/commit/296c2f31f0c56ab8f5b2a511d36a927ffe7f3eb6.diff

LOG: [PowerPC] Rename mftbl to mftb

`mftb` and `mftbl` are equivalent, there is no need to have two names for doing the same thing, rename `mftbl` to only have `mftb`.

Differential Revision: https://reviews.llvm.org/D89506

Added: 
    

Modified: 
    libcxx/utils/google-benchmark/src/cycleclock.h
    llvm/utils/benchmark/src/cycleclock.h

Removed: 
    


################################################################################
diff  --git a/libcxx/utils/google-benchmark/src/cycleclock.h b/libcxx/utils/google-benchmark/src/cycleclock.h
index 93d579a739c1..92f4a495f0a1 100644
--- a/libcxx/utils/google-benchmark/src/cycleclock.h
+++ b/libcxx/utils/google-benchmark/src/cycleclock.h
@@ -92,7 +92,7 @@ inline BENCHMARK_ALWAYS_INLINE int64_t Now() {
   uint32_t tbl, tbu0, tbu1;
   asm volatile(
       "mftbu %0\n"
-      "mftbl %1\n"
+      "mftb %1\n"
       "mftbu %2"
       : "=r"(tbu0), "=r"(tbl), "=r"(tbu1));
   tbl &= -static_cast<int32_t>(tbu0 == tbu1);

diff  --git a/llvm/utils/benchmark/src/cycleclock.h b/llvm/utils/benchmark/src/cycleclock.h
index 88b7805faafa..040ec22c20a9 100644
--- a/llvm/utils/benchmark/src/cycleclock.h
+++ b/llvm/utils/benchmark/src/cycleclock.h
@@ -92,7 +92,7 @@ inline BENCHMARK_ALWAYS_INLINE int64_t Now() {
   uint32_t tbl, tbu0, tbu1;
   asm volatile(
       "mftbu %0\n"
-      "mftbl %1\n"
+      "mftb %1\n"
       "mftbu %2"
       : "=r"(tbu0), "=r"(tbl), "=r"(tbu1));
   tbl &= -static_cast<int32_t>(tbu0 == tbu1);


        


More information about the libcxx-commits mailing list