[hackers] [scc] [cc2-qbe] Fix shifting operations || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Sat, 21 Jan 2017 11:06:12 +0100 (CET)

commit 3cc0b8d89bcfae1063191774c37c87e515fa2a31
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Sat Jan 21 11:05:52 2017 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Sat Jan 21 11:05:52 2017 +0100

    [cc2-qbe] Fix shifting operations
    
    The text of the operations was wrong and it created incorrect names

diff --git a/cc2/arch/qbe/code.c b/cc2/arch/qbe/code.c
index 55b8a06..a0b7bc7 100644
--- a/cc2/arch/qbe/code.c
+++ b/cc2/arch/qbe/code.c
_AT_@ -49,8 +49,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 = "shrs", .letter = 'w'},
- [ASUSHRW] = {.fun = binary, .txt = "shrz", .letter = 'w'},
+ [ASSHRW] = {.fun = binary, .txt = "shr", .letter = 'w'},
+ [ASUSHRW] = {.fun = binary, .txt = "sar", .letter = 'w'},
         [ASLTW] = {.fun = binary, .txt = "csltw", .letter = 'w'},
         [ASULTW] = {.fun = binary, .txt = "cultw", .letter = 'w'},
         [ASGTW] = {.fun = binary, .txt = "csgtw", .letter = 'w'},
_AT_@ -73,8 +73,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 = "shrs", .letter = 'l'},
- [ASUSHRL] = {.fun = binary, .txt = "shrz", .letter = 'l'},
+ [ASSHRL] = {.fun = binary, .txt = "shr", .letter = 'l'},
+ [ASUSHRL] = {.fun = binary, .txt = "sar", .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 Sat Jan 21 2017 - 11:06:12 CET

This archive was generated by hypermail 2.3.0 : Sat Jan 21 2017 - 11:12:19 CET