llvm-project/llvm
Simon Atanasyan 32d8d1bf04 [mips] Add a pattern for 64-bit GPR variant of the `rdhwr` instruction
MIPS ISAs start to support third operand for the `rdhwr` instruction
starting from Revision 6. But LLVM generates assembler code with
three-operands version of this instruction on any MIPS64 ISA. The third
operand is always zero, so in case of direct code generation we get
correct code.

This patch fixes the bug by adding an instruction alias. The same alias
already exists for 32-bit ISA.

Ideally, we also need to reject three-operands version of the `rdhwr`
instruction in an assembler code if ISA revision is less than 6. That is
a task for a separate patch.

This fixes PR38861 (https://bugs.llvm.org/show_bug.cgi?id=38861)

Differential revision: https://reviews.llvm.org/D51773

llvm-svn: 341919
2018-09-11 09:57:25 +00:00
..
benchmarks Pull google/benchmark library to the LLVM tree 2018-08-28 09:42:41 +00:00
bindings [Bindings][Go] Fixed go.test failure due to C-API argument type mismatch. 2018-09-07 17:33:43 +00:00
cmake [CMake] Fix LLVM_ENABLE_LTO option on Windows 2018-09-07 20:07:36 +00:00
docs ReleaseNotes: update links to use https 2018-09-10 08:50:31 +00:00
examples
include [XRay] Ensure lambda outlives llvm::function_ref 2018-09-11 08:03:30 +00:00
lib [mips] Add a pattern for 64-bit GPR variant of the `rdhwr` instruction 2018-09-11 09:57:25 +00:00
projects
resources
runtimes
test [mips] Add a pattern for 64-bit GPR variant of the `rdhwr` instruction 2018-09-11 09:57:25 +00:00
tools [XRay] Add the `llvm-xray fdr-dump` implementation 2018-09-11 00:22:53 +00:00
unittests [XRay] Add TSC to NewCPUId Records 2018-09-11 06:36:51 +00:00
utils [lit] Disable shtest-timeout on Windows 2018-09-10 20:24:05 +00:00
.arcconfig
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt [benchmark] Re-enable benchmarks on all platforms including Windows 2018-09-07 21:47:00 +00:00
CODE_OWNERS.TXT Add owner for llvm-objcopy 2018-08-09 22:05:19 +00:00
CREDITS.TXT
LICENSE.TXT
LLVMBuild.txt
README.txt
RELEASE_TESTERS.TXT
configure
llvm.spec.in

README.txt

The LLVM Compiler Infrastructure
================================

This directory and its subdirectories contain source code for LLVM,
a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the documentation provided in docs/ for further
assistance with LLVM, and in particular docs/GettingStarted.rst for getting
started with LLVM and docs/README.txt for an overview of LLVM's
documentation setup.

If you are writing a package for LLVM, see docs/Packaging.rst for our
suggestions.