scc

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

commit 3cc0b8d89bcfae1063191774c37c87e515fa2a31
parent c5387758adeb9d061534f9e361b283083148637d
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sat, 21 Jan 2017 11:05:52 +0100

[cc2-qbe] Fix shifting operations

The text of the operations was wrong and it created incorrect names

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

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