[hackers] [scc] [cc2-qbe] fix inverted shifting operations || Quentin Carbonneaux
commit 111b31be282ae37b07cf1fd65a17a5a5e66a40de
Author: Quentin Carbonneaux <quentin_AT_c9x.me>
AuthorDate: Sun Feb 19 10:26:39 2017 -0500
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Sun Feb 19 18:12:56 2017 +0100
[cc2-qbe] fix inverted shifting operations
diff --git a/cc2/arch/qbe/code.c b/cc2/arch/qbe/code.c
index e92e98f..f05b09f 100644
--- a/cc2/arch/qbe/code.c
+++ b/cc2/arch/qbe/code.c
_AT_@ -55,8 +55,8 @@ static struct opdata {
[ASDIVW] = {.fun = binary, .txt = "div", .letter = 'w'},
[ASUDIVW] = {.fun = binary, .txt = "udiv", .letter = 'w'},
[ASSHLW] = {.fun = binary, .txt = "shl", .letter = 'w'},
- [ASSHRW] = {.fun = binary, .txt = "shr", .letter = 'w'},
- [ASUSHRW] = {.fun = binary, .txt = "sar", .letter = 'w'},
+ [ASSHRW] = {.fun = binary, .txt = "sar", .letter = 'w'},
+ [ASUSHRW] = {.fun = binary, .txt = "shr", .letter = 'w'},
[ASLTW] = {.fun = binary, .txt = "csltw", .letter = 'w'},
[ASULTW] = {.fun = binary, .txt = "cultw", .letter = 'w'},
[ASGTW] = {.fun = binary, .txt = "csgtw", .letter = 'w'},
_AT_@ -79,8 +79,8 @@ static struct opdata {
[ASDIVL] = {.fun = binary, .txt = "div", .letter = 'l'},
[ASUDIVL] = {.fun = binary, .txt = "udiv", .letter = 'l'},
[ASSHLL] = {.fun = binary, .txt = "shl", .letter = 'l'},
- [ASSHRL] = {.fun = binary, .txt = "shr", .letter = 'l'},
- [ASUSHRL] = {.fun = binary, .txt = "sar", .letter = 'l'},
+ [ASSHRL] = {.fun = binary, .txt = "sar", .letter = 'l'},
+ [ASUSHRL] = {.fun = binary, .txt = "shr", .letter = 'l'},
[ASLTL] = {.fun = binary, .txt = "csltl", .letter = 'w'},
[ASULTL] = {.fun = binary, .txt = "cultl", .letter = 'w'},
[ASGTL] = {.fun = binary, .txt = "csgtl", .letter = 'w'},
Received on Sun Feb 19 2017 - 18:15:10 CET
This archive was generated by hypermail 2.3.0
: Sun Feb 19 2017 - 18:24:22 CET