llvm-project/llvm
Ana Pazos 0a5fcefa31 [RISCV] Fix disassembling of fence instruction with invalid field
Summary:
Instruction with 0 in fence field being disassembled as fence , iorw.
Printing "unknown" to match GAS behavior.

This bug was uncovered by a LLVM MC Disassembler Protocol Buffer Fuzzer
for the RISC-V assembly language.

Reviewers: asb

Subscribers: rbar, johnrusso, simoncook, sabuasal, niosHD, kito-cheng, shiva0217, zzheng, edward-jones, mgrang, rogfer01, MartinMosbeck, brucehoult, the_o, rkruppe, jfb, PkmX, jocewei, asb

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

llvm-svn: 344309
2018-10-11 22:49:13 +00:00
..
benchmarks
bindings [bindings/go] Add Go bindings to the Token type 2018-09-28 17:39:59 +00:00
cmake [CMake] Temporarily remove the LLVM_ENABLE_IDE option 2018-10-11 04:06:14 +00:00
docs [doc] Update the programmer's manual about SmallSet's iterator 2018-10-04 12:33:33 +00:00
examples [ORC] Fix BuildingAJIT tutorial examples that were broken by r343059. 2018-09-26 04:00:58 +00:00
include [SampleFDO][NFC] Remove debugging log left over in the code. 2018-10-11 22:14:27 +00:00
lib [RISCV] Fix disassembling of fence instruction with invalid field 2018-10-11 22:49:13 +00:00
projects
resources
runtimes
test [RISCV] Fix disassembling of fence instruction with invalid field 2018-10-11 22:49:13 +00:00
tools [llvm-objcopy] Factor out CopyConfig 2018-10-11 22:33:50 +00:00
unittests Support for remapping profile data when symbols change, for sample-based 2018-10-10 21:31:01 +00:00
utils [tblgen][CodeGenSchedule] Add a check for invalid RegisterFile definitions with zero physical registers. 2018-10-11 10:39:03 +00:00
.arcconfig
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt [WebAssembly] Add WebAssembly to LLVM_ALL_TARGETS 2018-10-03 23:56:52 +00:00
CODE_OWNERS.TXT
CREDITS.TXT
LICENSE.TXT
LLVMBuild.txt
README.txt Test commit. 2018-09-22 01:01:03 +00:00
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.