diff options
author | comex | 2016-11-15 21:57:23 -0500 |
---|---|---|
committer | comex | 2016-11-15 21:57:23 -0500 |
commit | 66bd9f17e9467b1eb5d6b2098b02241f03f8bbf6 (patch) | |
tree | db2bde0572ddac99f148d46c43c7122849fb7487 /test/transform-dis-cases-arm.S | |
parent | fix bool arguments with false default (diff) | |
download | substitute-66bd9f17e9467b1eb5d6b2098b02241f03f8bbf6.tar.gz |
fix some ARM stuff including calls, and test it
wow this code sucks
Diffstat (limited to 'test/transform-dis-cases-arm.S')
-rw-r--r-- | test/transform-dis-cases-arm.S | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/transform-dis-cases-arm.S b/test/transform-dis-cases-arm.S new file mode 100644 index 0000000..a9e01b1 --- /dev/null +++ b/test/transform-dis-cases-arm.S @@ -0,0 +1,15 @@ +#include "transform-dis-cases.h" +#ifdef THUMB +.thumb +#endif + + +#ifndef THUMB +GIVEN blne 0f; nop; nop; 0: +EXPECT beq 1f; movw lr, #0x000c; movt lr, #0xdead; blx lr; 1: nop; nop +GIVEN bl 0f; 0: +EXPECT movw lr, #0x0004; movt lr, #0xdead; blx lr +#else +GIVEN bl 0f; 0: +EXPECT movw lr, #0x0005; movt lr, #0xdead; blx lr +#endif |