shithub: scc

Download patch

ref: 8e4b3c54d194d6daec84a696cfd9c3b8dd16d96f
parent: 501e87c867d600cd2cb39cd93792c26109dbf8da
author: Roberto E. Vargas Caballero <[email protected]>
date: Sun Dec 11 03:23:39 EST 2016

[cc2-qbe] Fix ext instruction for w

Copy-paste error converted extension instruction to reduction
instruction.

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