scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 1b7566d98a33a1c01eff33a31fd4155dce0b543a
parent f12dbc2e79e4a44ddde69e4b950532e3df33b812
Author: Quentin Rameau <quinq@fifth.space>
Date:   Thu, 19 May 2016 12:58:31 +0200

[cc2] Fix qbe operator for truncd instruction

Diffstat:
Mcc2/arch/qbe/code.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cc2/arch/qbe/code.c b/cc2/arch/qbe/code.c @@ -121,7 +121,7 @@ static struct opdata { [ASSLTOS] = {.fun = unary, .txt = "sltof", .letter = 's'}, [ASEXTS] = {.fun = unary, .txt = "exts", .letter = 'd'}, - [ASSLTOS]= {.fun = unary, .txt = "truncd", .letter = 's'}, + [ASTRUNCD] = {.fun = unary, .txt = "truncd", .letter = 's'}, [ASBRANCH] = {.fun = branch}, [ASJMP] = {.fun = jmp},