diff options
author | Yifan Lu | 2016-11-23 14:34:33 -0600 |
---|---|---|
committer | Yifan Lu | 2016-11-23 14:34:33 -0600 |
commit | bd5ebb7a0a4e102731de72832f3e12e9f54d541a (patch) | |
tree | bef4f637a270d3f7d2551ac74a89e6b4bad8adec /test/transform-dis-cases-arm.S | |
parent | Fixed proper encoding of PUSH (STMDB) as ARM manual was wrong... (diff) | |
parent | avoid UB (diff) | |
download | substitute-bd5ebb7a0a4e102731de72832f3e12e9f54d541a.tar.gz |
Merge branch 'master' of https://github.com/comex/substitute
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 |