[hackers] [scc] [cc2-qbe] Fix ext instruction for w || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Sun, 11 Dec 2016 08:29:00 +0100 (CET)

commit ac86a0eb0e362cb10fd42965b85b3c233769810c
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Sun Dec 11 08:23:39 2016 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Sun Dec 11 08:26:06 2016 +0100

    [cc2-qbe] Fix ext instruction for w
    
    Copy-paste error converted extension instruction to reduction
    instruction.

diff --git a/cc2/arch/qbe/code.c b/cc2/arch/qbe/code.c
index b05e3d3..9d6d0d6 100644
--- a/cc2/arch/qbe/code.c
+++ b/cc2/arch/qbe/code.c
_AT_@ -117,8 +117,8 @@ static struct opdata {
         [ASUEXTBL]= {.fun = unary, .txt = "extub", .letter = 'l'},
         [ASEXTHW] = {.fun = unary, .txt = "extsh", .letter = 'w'},
         [ASUEXTHW]= {.fun = unary, .txt = "extuh", .letter = 'w'},
- [ASEXTWL] = {.fun = unary, .txt = "extsh", .letter = 'l'},
- [ASUEXTWL]= {.fun = unary, .txt = "extuh", .letter = 'l'},
+ [ASEXTWL] = {.fun = unary, .txt = "extsw", .letter = 'l'},
+ [ASUEXTWL]= {.fun = unary, .txt = "extuw", .letter = 'l'},
 
         [ASSTOL] = {.fun = unary, .txt = "stosi", .letter = 'l'},
         [ASSTOW] = {.fun = unary, .txt = "stosi", .letter = 'w'},
Received on Sun Dec 11 2016 - 08:29:00 CET

This archive was generated by hypermail 2.3.0 : Sun Dec 11 2016 - 08:36:16 CET