ref: b6969b7c694f8931a9077d855061543b9d47ba38
parent: f8fef90345e4cc025190732f94646facb2456241
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sat Jan 21 06:05:52 EST 2017
[cc2-qbe] Fix shifting operations The text of the operations was wrong and it created incorrect names
--- a/cc2/arch/qbe/code.c
+++ b/cc2/arch/qbe/code.c
@@ -49,8 +49,8 @@
[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 @@
[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'},