diff options
author | Oxore <oxore@protonmail.com> | 2023-05-20 17:36:32 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2023-05-20 17:36:32 +0300 |
commit | 1a9089d41233b3b7b207e9a7e8553dc5b14e92ae (patch) | |
tree | c52b12343f1699b4350b4231c887a7a74b0bff0f /test_marks_referencing.bash | |
parent | 429d978d108dfb77665f0c03a7190e2754c8fa1f (diff) |
Fix MOVEM with PC relative argument when -frel-marks set
Diffstat (limited to 'test_marks_referencing.bash')
-rw-r--r-- | test_marks_referencing.bash | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test_marks_referencing.bash b/test_marks_referencing.bash index 237db1e..db5691d 100644 --- a/test_marks_referencing.bash +++ b/test_marks_referencing.bash @@ -62,7 +62,7 @@ run_check_rdisp() { } run_check_r() { - if grep -e "[^0-9a-zA-Z_][0-9]\+" ${file_asm} >/dev/null 2>&1; then + if grep -e "[^0-9a-zA-Z_(+][0-9]\+" ${file_asm} >/dev/null 2>&1; then echo -e "${CRED}FAIL${CRST}: raw number or displacement emitted" cat ${file_asm} exit @@ -92,4 +92,7 @@ run_test_rdisp "braw .+2" "\x4e\x71\x60\x00\x00\x00" run_test_rword "moveml 0x0:w,%d0" "\x4c\xf8\x00\x01\x00\x00" run_test_rword "moveml 0x6:w,%a0" "\x4c\xf8\x01\x00\x00\x06\x4e\x71\x4e\x71" run_test_rword "movemw 0x0:l,%a0" "\x4e\x71\x4e\x71\x4c\xb9\x01\x00\x00\x00\x00\x02" +run_test_rpcrel "lea (0,PC)" "\x47\xfa\x00\x00" +run_test_rpcrel "jmp (0,PC)" "\x4e\xfa\x00\x00" +run_test_rpcrel "movemw (0,PC),%a0" "\x4e\x71\x4e\x71\x4c\xba\x01\x00\x00\x00" run_test_rword "movew 0x0:w,0x2:w" "\x4e\x75\x4e\x76\x31\xf8\x00\x00\x00\x02" |