Skip to content
This repository was archived by the owner on Sep 2, 2018. It is now read-only.

Commit 3ad7621

Browse files
author
Asiri Rathnayake
committed
Improvements to ARM assembler tests
No functional changes. Got myself bitten in r223113 when adding support for modified immediate syntax (regressions reported by [email protected], fixes in r223366 and r223381). Our assembler tests did not cover serveral different syntax variants. This patch expands the test coverage to check for the following cases: 1. Modified immediate operands may be expressed with expressions, as in #(4 * 2) instead of #8. 2. Modified immediate operands may be _optionally_ prefixed by a '#' symbol or a '$' symbol. 3. Certain instructions (e.g. ADD) support single input register variants; [ADD r0, #mod_imm] is same as [ADD r0, r0, #mod_imm]. 4. Certain instructions have aliases which convert plain immediates to modified immediates. For an example, [ADD r0, -10] is not valid because -10 (in two's complement) cannot be encoded as a modified immediate, but ARMInstrInfo.td defines an alias which can transform this into a [SUB r0, 10]. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223475 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent dd6794f commit 3ad7621

File tree

1 file changed

+445
-70
lines changed

1 file changed

+445
-70
lines changed

0 commit comments

Comments
 (0)