Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Commit 442eef8

Browse files
committed
Added CC flag on I2I and fixed control code encodings
1 parent 92e29fe commit 442eef8

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

lib/MaxAs/MaxAsGrammar.pm

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ our %grammar =
352352
F2F => [ { type => $qtrT, code => 0x5ca8000000000000, rule => qr"^$pred?F2F$ftz$x2x$rnd$round$sat $r0, $cr20;"o, } ],
353353
F2I => [ { type => $qtrT, code => 0x5cb0000000000000, rule => qr"^$pred?F2I$ftz$x2x$round $r0, $cr20;"o, } ],
354354
I2F => [ { type => $qtrT, code => 0x5cb8000000000000, rule => qr"^$pred?I2F$x2x$rnd $r0, $cr20;"o, } ],
355-
I2I => [ { type => $qtrT, code => 0x5ce0000000000000, rule => qr"^$pred?I2I$x2x$sat $r0, $cr20;"o, } ],
355+
I2I => [ { type => $qtrT, code => 0x5ce0000000000000, rule => qr"^$pred?I2I$x2x$sat $r0cc, $cr20;"o, } ],
356356

357357
#Movement Instructions
358358
MOV => [ { type => $x32T, code => 0x5c98078000000000, rule => qr"^$pred?MOV $r0, $icr20;"o, } ],
@@ -470,7 +470,7 @@ PSET, PSETP
470470
FMNMX, FSET, FSETP, DMNMX, DSET, DSETP, IMNMX, ISET, ISETP, SEL, PSET, PSETP, BAR, VOTE
471471
0x0000040000000000 p39not
472472
473-
IADD, IADD3, XMAD, LEA, IMNMX
473+
IADD, IADD3, XMAD, LEA, IMNMX, I2I
474474
0x0000800000000000 CC
475475
476476
IADD32I
@@ -527,37 +527,37 @@ PSETP, PSET: bool2
527527
528528
CSETP, CSET: ccbool
529529
0x0000000000000000 F
530-
0x0000010000000000 LT
531-
0x0000020000000000 EQ
532-
0x0000030000000000 LE
533-
0x0000040000000000 GT
534-
0x0000050000000000 NE
535-
0x0000060000000000 GE
536-
0x0000070000000000 NUM
537-
0x0000080000000000 NAN
538-
0x0000090000000000 LTU
539-
0x00000a0000000000 EQU
540-
0x00000b0000000000 LEU
541-
0x00000c0000000000 GTU
542-
0x00000d0000000000 NEU
543-
0x00000e0000000000 GEU
544-
0x00000f0000000000 UNK
545-
0x0000100000000000 OFF
546-
0x0000110000000000 LO
547-
0x0000120000000000 SFF
548-
0x0000130000000000 LS
549-
0x0000140000000000 HI
550-
0x0000150000000000 SFT
551-
0x0000160000000000 HS
552-
0x0000170000000000 OFT
553-
0x0000180000000000 CSM_TA
554-
0x0000190000000000 CSM_TR
555-
0x00001a0000000000 CSM_MX
556-
0x00001b0000000000 FCSM_TA
557-
0x00001c0000000000 FCSM_TR
558-
0x00001d0000000000 FCSM_MX
559-
0x00001e0000000000 RLE
560-
0x00001f0000000000 RGT
530+
0x0000000000000100 LT
531+
0x0000000000000200 EQ
532+
0x0000000000000300 LE
533+
0x0000000000000400 GT
534+
0x0000000000000500 NE
535+
0x0000000000000600 GE
536+
0x0000000000000700 NUM
537+
0x0000000000000800 NAN
538+
0x0000000000000900 LTU
539+
0x0000000000000a00 EQU
540+
0x0000000000000b00 LEU
541+
0x0000000000000c00 GTU
542+
0x0000000000000d00 NEU
543+
0x0000000000000e00 GEU
544+
0x0000000000000f00 UNK
545+
0x0000000000001000 OFF
546+
0x0000000000001100 LO
547+
0x0000000000001200 SFF
548+
0x0000000000001300 LS
549+
0x0000000000001400 HI
550+
0x0000000000001500 SFT
551+
0x0000000000001600 HS
552+
0x0000000000001700 OFT
553+
0x0000000000001800 CSM_TA
554+
0x0000000000001900 CSM_TR
555+
0x0000000000001a00 CSM_MX
556+
0x0000000000001b00 FCSM_TA
557+
0x0000000000001c00 FCSM_TR
558+
0x0000000000001d00 FCSM_MX
559+
0x0000000000001e00 RLE
560+
0x0000000000001f00 RGT
561561
562562
CSETP, CSET: bool2
563563
0x0000000000000000 AND

0 commit comments

Comments
 (0)