Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MipsInstPrinter] Introduce markup tags emission
MIPS assembly syntax emission now leverages markup tags, if enabled. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D129867
- Loading branch information
1 parent
bb0e6b7
commit cbb2141
Showing
2 changed files
with
20 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# RUN: llvm-mc --mdis %s -triple=mips-unknown-linux 2>&1 | FileCheck %s | ||
|
||
# CHECK: j <imm:80478376> | ||
0x09 0x33 0x00 0x2a | ||
# CHECK: addi <reg:$13>, <reg:$9>, <imm:26322> | ||
0x21 0x2d 0x66 0xd2 | ||
# CHECK: xor <reg:$18>, <reg:$4>, <reg:$fp> | ||
0x00 0x9e 0x90 0x26 | ||
# CHECK: lwr <reg:$zero>, <mem:<imm:-19147>(<reg:$gp>)> | ||
0x9b 0x80 0xb5 0x35 |