diff options
Diffstat (limited to 'test/MC/PowerPC/ppc64-encoding.s')
-rw-r--r-- | test/MC/PowerPC/ppc64-encoding.s | 63 |
1 files changed, 54 insertions, 9 deletions
diff --git a/test/MC/PowerPC/ppc64-encoding.s b/test/MC/PowerPC/ppc64-encoding.s index d2ac669..05fde62 100644 --- a/test/MC/PowerPC/ppc64-encoding.s +++ b/test/MC/PowerPC/ppc64-encoding.s @@ -420,12 +420,20 @@ divwu. 2, 3, 4 # FIXME: divwuo 2, 3, 4 # FIXME: divwuo. 2, 3, 4 -# FIXME: divwe 2, 3, 4 -# FIXME: divwe. 2, 3, 4 +# CHECK-BE: divwe 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x56] +# CHECK-LE: divwe 2, 3, 4 # encoding: [0x56,0x23,0x43,0x7c] + divwe 2, 3, 4 +# CHECK-BE: divwe. 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x57] +# CHECK-LE: divwe. 2, 3, 4 # encoding: [0x57,0x23,0x43,0x7c] + divwe. 2, 3, 4 # FIXME: divweo 2, 3, 4 # FIXME: divweo. 2, 3, 4 -# FIXME: divweu 2, 3, 4 -# FIXME: divweu. 2, 3, 4 +# CHECK-BE: divweu 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x16] +# CHECK-LE: divweu 2, 3, 4 # encoding: [0x16,0x23,0x43,0x7c] + divweu 2, 3, 4 +# CHECK-BE: divweu. 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x17] +# CHECK-LE: divweu. 2, 3, 4 # encoding: [0x17,0x23,0x43,0x7c] + divweu. 2, 3, 4 # FIXME: divweuo 2, 3, 4 # FIXME: divweuo. 2, 3, 4 @@ -466,12 +474,20 @@ divdu. 2, 3, 4 # FIXME: divduo 2, 3, 4 # FIXME: divduo. 2, 3, 4 -# FIXME: divde 2, 3, 4 -# FIXME: divde. 2, 3, 4 +# CHECK-BE: divde 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x52] +# CHECK-LE: divde 2, 3, 4 # encoding: [0x52,0x23,0x43,0x7c] + divde 2, 3, 4 +# CHECK-BE: divde. 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x53] +# CHECK-LE: divde. 2, 3, 4 # encoding: [0x53,0x23,0x43,0x7c] + divde. 2, 3, 4 # FIXME: divdeo 2, 3, 4 # FIXME: divdeo. 2, 3, 4 -# FIXME: divdeu 2, 3, 4 -# FIXME: divdeu. 2, 3, 4 +# CHECK-BE: divdeu 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x12] +# CHECK-LE: divdeu 2, 3, 4 # encoding: [0x12,0x23,0x43,0x7c] + divdeu 2, 3, 4 +# CHECK-BE: divdeu. 2, 3, 4 # encoding: [0x7c,0x43,0x23,0x13] +# CHECK-LE: divdeu. 2, 3, 4 # encoding: [0x13,0x23,0x43,0x7c] + divdeu. 2, 3, 4 # FIXME: divdeuo 2, 3, 4 # FIXME: divdeuo. 2, 3, 4 @@ -644,7 +660,9 @@ # CHECK-BE: popcntd 2, 3 # encoding: [0x7c,0x62,0x03,0xf4] # CHECK-LE: popcntd 2, 3 # encoding: [0xf4,0x03,0x62,0x7c] popcntd 2, 3 -# FIXME: bpermd 2, 3, 4 +# CHECK-BE: bpermd 2, 3, 4 # encoding: [0x7c,0x62,0x21,0xf8] +# CHECK-LE: bpermd 2, 3, 4 # encoding: [0xf8,0x21,0x62,0x7c] + bpermd 2, 3, 4 # Fixed-point rotate and shift instructions @@ -703,6 +721,33 @@ # CHECK-LE: rldimi. 2, 3, 4, 5 # encoding: [0x4d,0x21,0x62,0x78] rldimi. 2, 3, 4, 5 +# Aliases that take bit masks... + +# CHECK-BE: rlwinm 0, 0, 30, 31, 31 # encoding: [0x54,0x00,0xf7,0xfe] + rlwinm 0, 0, 30, 1 +# CHECK-BE: rlwinm. 0, 0, 30, 31, 31 # encoding: [0x54,0x00,0xf7,0xff] + rlwinm. 0, 0, 30, 1 +# CHECK-BE: rlwinm 0, 0, 30, 31, 0 # encoding: [0x54,0x00,0xf7,0xc0] + rlwinm 0, 0, 30, 2147483649 +# CHECK-BE: rlwinm. 0, 0, 30, 31, 0 # encoding: [0x54,0x00,0xf7,0xc1] + rlwinm. 0, 0, 30, 2147483649 +# CHECK-BE: rlwimi 0, 0, 30, 31, 31 # encoding: [0x50,0x00,0xf7,0xfe] + rlwimi 0, 0, 30, 1 +# CHECK-BE: rlwimi. 0, 0, 30, 31, 31 # encoding: [0x50,0x00,0xf7,0xff] + rlwimi. 0, 0, 30, 1 +# CHECK-BE: rlwimi 0, 0, 30, 31, 0 # encoding: [0x50,0x00,0xf7,0xc0] + rlwimi 0, 0, 30, 2147483649 +# CHECK-BE: rlwimi. 0, 0, 30, 31, 0 # encoding: [0x50,0x00,0xf7,0xc1] + rlwimi. 0, 0, 30, 2147483649 +# CHECK-BE: rlwnm 0, 0, 30, 31, 31 # encoding: [0x5c,0x00,0xf7,0xfe] + rlwnm 0, 0, 30, 1 +# CHECK-BE: rlwnm. 0, 0, 30, 31, 31 # encoding: [0x5c,0x00,0xf7,0xff] + rlwnm. 0, 0, 30, 1 +# CHECK-BE: rlwnm 0, 0, 30, 31, 0 # encoding: [0x5c,0x00,0xf7,0xc0] + rlwnm 0, 0, 30, 2147483649 +# CHECK-BE: rlwnm. 0, 0, 30, 31, 0 # encoding: [0x5c,0x00,0xf7,0xc1] + rlwnm. 0, 0, 30, 2147483649 + # CHECK-BE: slw 2, 3, 4 # encoding: [0x7c,0x62,0x20,0x30] # CHECK-LE: slw 2, 3, 4 # encoding: [0x30,0x20,0x62,0x7c] slw 2, 3, 4 |