diff options
author | Oxore <oxore@protonmail.com> | 2023-05-20 18:46:37 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2023-05-20 18:47:34 +0300 |
commit | c9f5a5810435bfc1ce0d231b34628ba12609115c (patch) | |
tree | 2c4fe01d90ffe02a62398bcf074d092f432943f7 /test_marks_referencing.bash | |
parent | 25bf809a867720399cf12f8c0efec86eaeec26c5 (diff) |
Impl marks referencing for CMP, ADD and SUB
Diffstat (limited to 'test_marks_referencing.bash')
-rw-r--r-- | test_marks_referencing.bash | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test_marks_referencing.bash b/test_marks_referencing.bash index f7dc40f..9efb42b 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 @@ -77,10 +77,6 @@ run_test_rword() { run_test_r "$1" "$2" "-fmarks -fabs-marks" run_check_r } -run_test_rlong() { - run_test_r "$1" "$2" "-fmarks -fabs-marks" run_check_r -} - run_test_rpcrel() { run_test_r "$1" "$2" "-fmarks -frel-marks" run_check_r } @@ -100,3 +96,7 @@ run_test_rword "peal 0x0:l" "\x48\x79\x00\x00\x00\x00" run_test_rpcrel "peal (0,PC)" "\x48\x7a\x00\x00" run_test_rword "nbcd 0x0:w" "\x48\x38\x00\x00" run_test_rword "nbcd 0x6:l with nop" "\x48\x39\x00\x00\x00\x06\x4e\x71" +run_test_rword "cmpl 0x4:w, D2 with nop" "\xb4\xb8\x00\x04\x4e\x71" +run_test_rword "cmpw 0x0:l, D2" "\xb4\x79\x00\x00\x00\x00" +run_test_rpcrel "cmpl (0,PC), D2" "\xb4\xba\x00\x00" +run_test_rpcrel "cmpl (-2,PC), D2" "\xb4\xba\xff\xfe" |