scc

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

commit 6cc9c2edc5e009d3b000e04c84c713a53d2be470
parent 2d17077699adbb110c6a6a2878ab50964f0725a4
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue,  1 Nov 2022 20:57:46 +0100

cc2/qbe: Add ASEXTHL and ASUEXTHL to code.c

These instructions were lost in the code table.

Diffstat:
Msrc/cmd/cc/cc2/target/qbe/code.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/cmd/cc/cc2/target/qbe/code.c b/src/cmd/cc/cc2/target/qbe/code.c @@ -121,6 +121,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'}, + [ASEXTHL] = {.fun = unary, .txt = "extsh", .letter = 'l'}, + [ASUEXTHL]= {.fun = unary, .txt = "extuh", .letter = 'l'}, [ASEXTWL] = {.fun = unary, .txt = "extsw", .letter = 'l'}, [ASUEXTWL]= {.fun = unary, .txt = "extuw", .letter = 'l'},