shithub: scc

Download patch

ref: bc832080da4af31728bd6e30ae1c13d3704e55ef
parent: eefde4cccd65c2673d7f10e8cf06f85f3a23cbe0
author: Quentin Rameau <quinq@fifth.space>
date: Thu May 19 08:58:31 EDT 2016

[cc2] Fix qbe operator for truncd instruction

--- a/cc2/arch/qbe/code.c
+++ b/cc2/arch/qbe/code.c
@@ -121,7 +121,7 @@
 	[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},