scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit ac86a0eb0e362cb10fd42965b85b3c233769810c
parent 8881c4347b881996dc3070faf7259d460fb22f38
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun, 11 Dec 2016 08:23:39 +0100

[cc2-qbe] Fix ext instruction for w

Copy-paste error converted extension instruction to reduction
instruction.

Diffstat:
Mcc2/arch/qbe/code.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cc2/arch/qbe/code.c b/cc2/arch/qbe/code.c @@ -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'},