[PATCH] D89506: [PowerPC] Rename mftbl to mftb
Steven Wan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 15 15:24:40 PDT 2020
stevewan created this revision.
Herald added subscribers: llvm-commits, libcxx-commits, shchenz, lebedev.ri, arichardson, nemanjai.
Herald added a reviewer: lebedev.ri.
Herald added projects: libc++, LLVM.
Herald added a reviewer: libc++.
stevewan requested review of this revision.
`mftb` and `mftbl` are equivalent, there is no need to have two names for doing the same thing, rename `mftbl` to only have `mftb`.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D89506
Files:
libcxx/utils/google-benchmark/src/cycleclock.h
llvm/utils/benchmark/src/cycleclock.h
Index: llvm/utils/benchmark/src/cycleclock.h
===================================================================
--- llvm/utils/benchmark/src/cycleclock.h
+++ llvm/utils/benchmark/src/cycleclock.h
@@ -92,7 +92,7 @@
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);
Index: libcxx/utils/google-benchmark/src/cycleclock.h
===================================================================
--- libcxx/utils/google-benchmark/src/cycleclock.h
+++ libcxx/utils/google-benchmark/src/cycleclock.h
@@ -92,7 +92,7 @@
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);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89506.298491.patch
Type: text/x-patch
Size: 887 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201015/de7d194e/attachment.bin>
More information about the llvm-commits
mailing list