diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-07-22 23:16:18 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-07-22 23:16:18 +0000 |
commit | 801e0a3fdebc6c2d22706967874a572846f3e5d8 (patch) | |
tree | 67276c24f7b34d10d94cb0c5cf299359aa310f06 /llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.h | |
parent | c8eab671cf3f9d3fe19f87d0ede9451072ff9866 (diff) | |
download | bcm5719-llvm-801e0a3fdebc6c2d22706967874a572846f3e5d8.tar.gz bcm5719-llvm-801e0a3fdebc6c2d22706967874a572846f3e5d8.zip |
ARM SSAT instruction 5-bit immediate handling.
The immediate is in the range 1-32, but is encoded as 0-31 in a 5-bit bitfield.
Update the representation such that we store the operand as 0-31, allowing us
to remove the encoder method and the special case handling in the disassembler.
Update the assembly parser and the instruction printer accordingly.
llvm-svn: 135823
Diffstat (limited to 'llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.h')
-rw-r--r-- | llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.h b/llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.h index bb225f2e2a2..208a3a71f14 100644 --- a/llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.h +++ b/llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.h @@ -114,6 +114,7 @@ public: void printVFPf32ImmOperand(const MCInst *MI, unsigned OpNum, raw_ostream &O); void printVFPf64ImmOperand(const MCInst *MI, unsigned OpNum, raw_ostream &O); void printNEONModImmOperand(const MCInst *MI, unsigned OpNum, raw_ostream &O); + void printImm1_32Operand(const MCInst *MI, unsigned OpNum, raw_ostream &O); void printPCLabel(const MCInst *MI, unsigned OpNum, raw_ostream &O); }; |