From: Luke Kenneth Casson Leighton Date: Tue, 6 Oct 2020 21:47:12 +0000 (+0100) Subject: uniquify opcodes X-Git-Tag: convert-csv-opcode-to-binary~2081 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d5b21325673fde4a1e51d2f00a1d9786f9baccbd;p=libreriscv.git uniquify opcodes --- diff --git a/openpower/opcodes_deduped.csv b/openpower/opcodes_deduped.csv index 2dc5a4b15..319d7eac4 100644 --- a/openpower/opcodes_deduped.csv +++ b/openpower/opcodes_deduped.csv @@ -1,109 +1,86 @@ -,,,,,,,,,,,, -in1,in2,in3,out,CR in,CR out,cry in,cry out,ldst len,BR,upd,rc,lk -NONE,CONST_LI,NONE,NONE,NONE,NONE,ZERO,0.0,NONE,0.0,0,NONE,1.0 -NONE,CONST_SH32,RS,RA,NONE,CR0,ZERO,1.0,NONE,0.0,0,RC,0.0 -NONE,CONST_SH32,RS,RA,NONE,NONE,ZERO,0.0,NONE,0.0,0,RC,0.0 -NONE,CONST_SH,RS,RA,NONE,CR0,ZERO,0.0,NONE,0.0,0,RC,0.0 -NONE,CONST_SH,RS,RA,NONE,CR0,ZERO,1.0,NONE,0.0,0,RC,0.0 -NONE,NONE,NONE,NONE,BA_BB,BT,ZERO,0.0,NONE,0.0,0,NONE,0.0 -NONE,NONE,NONE,NONE,BFA,BF,ZERO,0.0,NONE,0.0,0,NONE,0.0 -NONE,NONE,NONE,NONE,NONE,NONE,ZERO,0.0,NONE,0.0,0,NONE,0.0 -NONE,NONE,NONE,NONE,NONE,NONE,ZERO,0.0,NONE,0.0,0,RC,0.0 -NONE,NONE,NONE,RT,BFA,NONE,ZERO,0.0,NONE,0.0,0,NONE,0.0 -NONE,NONE,NONE,RT,NONE,NONE,ZERO,0.0,NONE,0.0,0,NONE,0.0 -NONE,NONE,NONE,RT,WHOLE_REG,NONE,ZERO,0.0,NONE,0.0,0,NONE,0.0 -NONE,RB,NONE,NONE,NONE,NONE,ZERO,0.0,NONE,0.0,0,NONE,0.0 -NONE,RB,RS,RA,NONE,CR0,ZERO,0.0,NONE,0.0,0,RC,0.0 -NONE,RB,RS,RA,NONE,CR0,ZERO,1.0,NONE,0.0,0,RC,0.0 -NONE,RB,RS,RA,NONE,NONE,ZERO,0.0,NONE,0.0,0,RC,0.0 -RA,CONST_DS,NONE,RT,NONE,NONE,ZERO,0.0,is4B,0.0,0,NONE,0.0 -RA,CONST_DS,NONE,RT,NONE,NONE,ZERO,0.0,is8B,0.0,0,NONE,0.0 -RA,CONST_DS,NONE,RT,NONE,NONE,ZERO,0.0,is8B,0.0,1,NONE,0.0 -RA,CONST_DS,RS,NONE,NONE,NONE,ZERO,0.0,is8B,0.0,0,NONE,0.0 -RA,CONST_DS,RS,NONE,NONE,NONE,ZERO,0.0,is8B,0.0,1,NONE,0.0 -RA,CONST_M1,NONE,RT,NONE,CR0,CA,1.0,NONE,0.0,0,RC,0.0 -RA,CONST_SH32,RS,RA,NONE,NONE,ZERO,0.0,NONE,0.0,0,RC,0.0 -RA,CONST_SH,RS,RA,NONE,CR0,ZERO,0.0,NONE,0.0,0,RC,0.0 -RA,CONST_SI_HI,NONE,RT,NONE,NONE,ZERO,0.0,NONE,0.0,0,NONE,0.0 -RA,CONST_SI,NONE,NONE,NONE,BF,ONE,0.0,NONE,0.0,0,NONE,0.0 -RA,CONST_SI,NONE,NONE,NONE,NONE,ZERO,0.0,NONE,0.0,0,NONE,0.0 -RA,CONST_SI,NONE,RT,NONE,CR0,ZERO,0.0,NONE,0.0,0,NONE,0.0 -RA,CONST_SI,NONE,RT,NONE,CR0,ZERO,1.0,NONE,0.0,0,ONE,0.0 -RA,CONST_SI,NONE,RT,NONE,NONE,ONE,1.0,NONE,0.0,0,NONE,0.0 -RA,CONST_SI,NONE,RT,NONE,NONE,ZERO,0.0,is1B,0.0,0,NONE,0.0 -RA,CONST_SI,NONE,RT,NONE,NONE,ZERO,0.0,is1B,0.0,1,NONE,0.0 -RA,CONST_SI,NONE,RT,NONE,NONE,ZERO,0.0,is2B,0.0,0,NONE,0.0 -RA,CONST_SI,NONE,RT,NONE,NONE,ZERO,0.0,is2B,0.0,1,NONE,0.0 -RA,CONST_SI,NONE,RT,NONE,NONE,ZERO,0.0,is4B,0.0,0,NONE,0.0 -RA,CONST_SI,NONE,RT,NONE,NONE,ZERO,0.0,is4B,0.0,1,NONE,0.0 -RA,CONST_SI,NONE,RT,NONE,NONE,ZERO,0.0,NONE,0.0,0,NONE,0.0 -RA,CONST_SI,NONE,RT,NONE,NONE,ZERO,1.0,NONE,0.0,0,NONE,0.0 -RA,CONST_SI,RS,NONE,NONE,NONE,ZERO,0.0,is1B,0.0,0,NONE,0.0 -RA,CONST_SI,RS,NONE,NONE,NONE,ZERO,0.0,is1B,0.0,1,NONE,0.0 -RA,CONST_SI,RS,NONE,NONE,NONE,ZERO,0.0,is2B,0.0,0,NONE,0.0 -RA,CONST_SI,RS,NONE,NONE,NONE,ZERO,0.0,is2B,0.0,1,NONE,0.0 -RA,CONST_SI,RS,NONE,NONE,NONE,ZERO,0.0,is4B,0.0,0,NONE,0.0 -RA,CONST_SI,RS,NONE,NONE,NONE,ZERO,0.0,is4B,0.0,1,NONE,0.0 -RA,CONST_UI,NONE,NONE,NONE,BF,ONE,0.0,NONE,0.0,0,NONE,0.0 -RA,NONE,NONE,RT,NONE,CR0,CA,1.0,NONE,0.0,0,RC,0.0 -RA,NONE,NONE,RT,NONE,NONE,ONE,0.0,NONE,0.0,0,RC,0.0 -RA,RB,NONE,NONE,NONE,BF,ONE,0.0,NONE,0.0,0,NONE,0.0 -RA,RB,NONE,NONE,NONE,BF,ZERO,0.0,NONE,0.0,0,NONE,0.0 -RA,RB,NONE,NONE,NONE,NONE,ZERO,0.0,NONE,0.0,0,NONE,0.0 -RA,RB,NONE,RT,BC,NONE,ZERO,0.0,NONE,0.0,0,NONE,0.0 -RA,RB,NONE,RT,NONE,CR0,CA,1.0,NONE,0.0,0,RC,0.0 -RA,RB,NONE,RT,NONE,CR0,ONE,0.0,NONE,0.0,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.0,1,RC,0.0 -RA,RB,RS,NONE,NONE,NONE,ZERO,0.0,is1B,0.0,cix,NONE,0.0 -RA,RB,RS,NONE,NONE,NONE,ZERO,0.0,is2B,0.0,0,NONE,0.0 -RA,RB,RS,NONE,NONE,NONE,ZERO,0.0,is2B,0.0,1,NONE,0.0 -RA,RB,RS,NONE,NONE,NONE,ZERO,0.0,is2B,0.0,cix,NONE,0.0 -RA,RB,RS,NONE,NONE,NONE,ZERO,0.0,is2B,1.0,0,NONE,0.0 -RA,RB,RS,NONE,NONE,NONE,ZERO,0.0,is4B,0.0,0,NONE,0.0 -RA,RB,RS,NONE,NONE,NONE,ZERO,0.0,is4B,0.0,1,NONE,0.0 -RA,RB,RS,NONE,NONE,NONE,ZERO,0.0,is4B,0.0,cix,NONE,0.0 -RA,RB,RS,NONE,NONE,NONE,ZERO,0.0,is4B,1.0,0,NONE,0.0 -RA,RB,RS,NONE,NONE,NONE,ZERO,0.0,is8B,0.0,0,NONE,0.0 -RA,RB,RS,NONE,NONE,NONE,ZERO,0.0,is8B,0.0,1,NONE,0.0 -RA,RB,RS,NONE,NONE,NONE,ZERO,0.0,is8B,0.0,cix,NONE,0.0 -RA,RB,RS,NONE,NONE,NONE,ZERO,0.0,is8B,1.0,0,NONE,0.0 -RS,CONST_UI_HI,NONE,RA,NONE,CR0,ZERO,0.0,NONE,0.0,0,ONE,0.0 -RS,CONST_UI_HI,NONE,RA,NONE,NONE,ZERO,0.0,NONE,0.0,0,NONE,0.0 -RS,CONST_UI,NONE,RA,NONE,CR0,ZERO,0.0,NONE,0.0,0,ONE,0.0 -RS,CONST_UI,NONE,RA,NONE,NONE,ZERO,0.0,NONE,0.0,0,NONE,0.0 -RS,NONE,NONE,NONE,NONE,NONE,ZERO,0.0,NONE,0.0,0,NONE,0.0 -RS,NONE,NONE,NONE,WHOLE_REG,WHOLE_REG,ZERO,0.0,NONE,0.0,0,NONE,0.0 -RS,NONE,NONE,RA,NONE,CR0,ZERO,0.0,is1B,0.0,0,RC,0.0 -RS,NONE,NONE,RA,NONE,CR0,ZERO,0.0,is2B,0.0,0,RC,0.0 -RS,NONE,NONE,RA,NONE,CR0,ZERO,0.0,is4B,0.0,0,RC,0.0 -RS,NONE,NONE,RA,NONE,CR0,ZERO,0.0,NONE,0.0,0,RC,0.0 -RS,NONE,NONE,RA,NONE,NONE,ZERO,0.0,is1B,0.0,0,NONE,0.0 -RS,NONE,NONE,RA,NONE,NONE,ZERO,0.0,is4B,0.0,0,NONE,0.0 -RS,NONE,NONE,RA,NONE,NONE,ZERO,0.0,is8B,0.0,0,NONE,0.0 -RS,NONE,NONE,SPR,NONE,NONE,ZERO,0.0,NONE,0.0,0,NONE,0.0 -RS,RB,NONE,RA,NONE,CR0,ZERO,0.0,NONE,0.0,0,RC,0.0 -RS,RB,NONE,RA,NONE,NONE,ZERO,0.0,NONE,0.0,0,NONE,0.0 -SPR,CONST_BD,NONE,SPR,BI,NONE,ZERO,0.0,NONE,0.0,0,NONE,1.0 -SPR,NONE,NONE,RT,NONE,NONE,ZERO,0.0,NONE,0.0,0,NONE,0.0 -SPR,SPR,NONE,NONE,NONE,NONE,ZERO,0.0,NONE,0.0,0,NONE,0.0 -SPR,SPR,NONE,SPR,BI,NONE,ZERO,0.0,NONE,0.0,0,NONE,1.0 +,,,,,,,,,,, +in1,in2,in3,out,CR in,CR out,cry in,cry out,ldst len,BR,rc,lk +NONE,CONST_LI,NONE,NONE,NONE,NONE,ZERO,0.0,NONE,0.0,NONE,1.0 +NONE,CONST_SH32,RS,RA,NONE,CR0,ZERO,1.0,NONE,0.0,RC,0.0 +NONE,CONST_SH32,RS,RA,NONE,NONE,ZERO,0.0,NONE,0.0,RC,0.0 +NONE,CONST_SH,RS,RA,NONE,CR0,ZERO,0.0,NONE,0.0,RC,0.0 +NONE,CONST_SH,RS,RA,NONE,CR0,ZERO,1.0,NONE,0.0,RC,0.0 +NONE,NONE,NONE,NONE,BA_BB,BT,ZERO,0.0,NONE,0.0,NONE,0.0 +NONE,NONE,NONE,NONE,BFA,BF,ZERO,0.0,NONE,0.0,NONE,0.0 +NONE,NONE,NONE,NONE,NONE,NONE,ZERO,0.0,NONE,0.0,NONE,0.0 +NONE,NONE,NONE,NONE,NONE,NONE,ZERO,0.0,NONE,0.0,RC,0.0 +NONE,NONE,NONE,RT,BFA,NONE,ZERO,0.0,NONE,0.0,NONE,0.0 +NONE,NONE,NONE,RT,NONE,NONE,ZERO,0.0,NONE,0.0,NONE,0.0 +NONE,NONE,NONE,RT,WHOLE_REG,NONE,ZERO,0.0,NONE,0.0,NONE,0.0 +NONE,RB,NONE,NONE,NONE,NONE,ZERO,0.0,NONE,0.0,NONE,0.0 +NONE,RB,RS,RA,NONE,CR0,ZERO,0.0,NONE,0.0,RC,0.0 +NONE,RB,RS,RA,NONE,CR0,ZERO,1.0,NONE,0.0,RC,0.0 +NONE,RB,RS,RA,NONE,NONE,ZERO,0.0,NONE,0.0,RC,0.0 +RA,CONST_DS,NONE,RT,NONE,NONE,ZERO,0.0,is4B,0.0,NONE,0.0 +RA,CONST_DS,NONE,RT,NONE,NONE,ZERO,0.0,is8B,0.0,NONE,0.0 +RA,CONST_DS,RS,NONE,NONE,NONE,ZERO,0.0,is8B,0.0,NONE,0.0 +RA,CONST_M1,NONE,RT,NONE,CR0,CA,1.0,NONE,0.0,RC,0.0 +RA,CONST_SH32,RS,RA,NONE,NONE,ZERO,0.0,NONE,0.0,RC,0.0 +RA,CONST_SH,RS,RA,NONE,CR0,ZERO,0.0,NONE,0.0,RC,0.0 +RA,CONST_SI_HI,NONE,RT,NONE,NONE,ZERO,0.0,NONE,0.0,NONE,0.0 +RA,CONST_SI,NONE,NONE,NONE,BF,ONE,0.0,NONE,0.0,NONE,0.0 +RA,CONST_SI,NONE,NONE,NONE,NONE,ZERO,0.0,NONE,0.0,NONE,0.0 +RA,CONST_SI,NONE,RT,NONE,CR0,ZERO,0.0,NONE,0.0,NONE,0.0 +RA,CONST_SI,NONE,RT,NONE,CR0,ZERO,1.0,NONE,0.0,ONE,0.0 +RA,CONST_SI,NONE,RT,NONE,NONE,ONE,1.0,NONE,0.0,NONE,0.0 +RA,CONST_SI,NONE,RT,NONE,NONE,ZERO,0.0,is1B,0.0,NONE,0.0 +RA,CONST_SI,NONE,RT,NONE,NONE,ZERO,0.0,is2B,0.0,NONE,0.0 +RA,CONST_SI,NONE,RT,NONE,NONE,ZERO,0.0,is4B,0.0,NONE,0.0 +RA,CONST_SI,NONE,RT,NONE,NONE,ZERO,0.0,NONE,0.0,NONE,0.0 +RA,CONST_SI,NONE,RT,NONE,NONE,ZERO,1.0,NONE,0.0,NONE,0.0 +RA,CONST_SI,RS,NONE,NONE,NONE,ZERO,0.0,is1B,0.0,NONE,0.0 +RA,CONST_SI,RS,NONE,NONE,NONE,ZERO,0.0,is2B,0.0,NONE,0.0 +RA,CONST_SI,RS,NONE,NONE,NONE,ZERO,0.0,is4B,0.0,NONE,0.0 +RA,CONST_UI,NONE,NONE,NONE,BF,ONE,0.0,NONE,0.0,NONE,0.0 +RA,NONE,NONE,RT,NONE,CR0,CA,1.0,NONE,0.0,RC,0.0 +RA,NONE,NONE,RT,NONE,NONE,ONE,0.0,NONE,0.0,RC,0.0 +RA,RB,NONE,NONE,NONE,BF,ONE,0.0,NONE,0.0,NONE,0.0 +RA,RB,NONE,NONE,NONE,BF,ZERO,0.0,NONE,0.0,NONE,0.0 +RA,RB,NONE,NONE,NONE,NONE,ZERO,0.0,NONE,0.0,NONE,0.0 +RA,RB,NONE,RT,BC,NONE,ZERO,0.0,NONE,0.0,NONE,0.0 +RA,RB,NONE,RT,NONE,CR0,CA,1.0,NONE,0.0,RC,0.0 +RA,RB,NONE,RT,NONE,CR0,ONE,0.0,NONE,0.0,RC,0.0 +RA,RB,NONE,RT,NONE,CR0,ONE,1.0,NONE,0.0,RC,0.0 +RA,RB,NONE,RT,NONE,CR0,ZERO,0.0,NONE,0.0,RC,0.0 +RA,RB,NONE,RT,NONE,CR0,ZERO,1.0,NONE,0.0,RC,0.0 +RA,RB,NONE,RT,NONE,NONE,ZERO,0.0,is1B,0.0,NONE,0.0 +RA,RB,NONE,RT,NONE,NONE,ZERO,0.0,is2B,0.0,NONE,0.0 +RA,RB,NONE,RT,NONE,NONE,ZERO,0.0,is2B,1.0,NONE,0.0 +RA,RB,NONE,RT,NONE,NONE,ZERO,0.0,is4B,0.0,NONE,0.0 +RA,RB,NONE,RT,NONE,NONE,ZERO,0.0,is4B,1.0,NONE,0.0 +RA,RB,NONE,RT,NONE,NONE,ZERO,0.0,is8B,0.0,NONE,0.0 +RA,RB,NONE,RT,NONE,NONE,ZERO,0.0,is8B,1.0,NONE,0.0 +RA,RB,NONE,RT,NONE,NONE,ZERO,0.0,NONE,0.0,NONE,0.0 +RA,RB,RS,NONE,NONE,CR0,ZERO,0.0,is1B,0.0,RC,0.0 +RA,RB,RS,NONE,NONE,NONE,ZERO,0.0,is1B,0.0,NONE,0.0 +RA,RB,RS,NONE,NONE,NONE,ZERO,0.0,is2B,0.0,NONE,0.0 +RA,RB,RS,NONE,NONE,NONE,ZERO,0.0,is2B,1.0,NONE,0.0 +RA,RB,RS,NONE,NONE,NONE,ZERO,0.0,is4B,0.0,NONE,0.0 +RA,RB,RS,NONE,NONE,NONE,ZERO,0.0,is4B,1.0,NONE,0.0 +RA,RB,RS,NONE,NONE,NONE,ZERO,0.0,is8B,0.0,NONE,0.0 +RA,RB,RS,NONE,NONE,NONE,ZERO,0.0,is8B,1.0,NONE,0.0 +RS,CONST_UI_HI,NONE,RA,NONE,CR0,ZERO,0.0,NONE,0.0,ONE,0.0 +RS,CONST_UI_HI,NONE,RA,NONE,NONE,ZERO,0.0,NONE,0.0,NONE,0.0 +RS,CONST_UI,NONE,RA,NONE,CR0,ZERO,0.0,NONE,0.0,ONE,0.0 +RS,CONST_UI,NONE,RA,NONE,NONE,ZERO,0.0,NONE,0.0,NONE,0.0 +RS,NONE,NONE,NONE,NONE,NONE,ZERO,0.0,NONE,0.0,NONE,0.0 +RS,NONE,NONE,NONE,WHOLE_REG,WHOLE_REG,ZERO,0.0,NONE,0.0,NONE,0.0 +RS,NONE,NONE,RA,NONE,CR0,ZERO,0.0,is1B,0.0,RC,0.0 +RS,NONE,NONE,RA,NONE,CR0,ZERO,0.0,is2B,0.0,RC,0.0 +RS,NONE,NONE,RA,NONE,CR0,ZERO,0.0,is4B,0.0,RC,0.0 +RS,NONE,NONE,RA,NONE,CR0,ZERO,0.0,NONE,0.0,RC,0.0 +RS,NONE,NONE,RA,NONE,NONE,ZERO,0.0,is1B,0.0,NONE,0.0 +RS,NONE,NONE,RA,NONE,NONE,ZERO,0.0,is4B,0.0,NONE,0.0 +RS,NONE,NONE,RA,NONE,NONE,ZERO,0.0,is8B,0.0,NONE,0.0 +RS,NONE,NONE,SPR,NONE,NONE,ZERO,0.0,NONE,0.0,NONE,0.0 +RS,RB,NONE,RA,NONE,CR0,ZERO,0.0,NONE,0.0,RC,0.0 +RS,RB,NONE,RA,NONE,NONE,ZERO,0.0,NONE,0.0,NONE,0.0 +SPR,CONST_BD,NONE,SPR,BI,NONE,ZERO,0.0,NONE,0.0,NONE,1.0 +SPR,NONE,NONE,RT,NONE,NONE,ZERO,0.0,NONE,0.0,NONE,0.0 +SPR,SPR,NONE,NONE,NONE,NONE,ZERO,0.0,NONE,0.0,NONE,0.0 +SPR,SPR,NONE,SPR,BI,NONE,ZERO,0.0,NONE,0.0,NONE,1.0