llvm/llvm/test/MC/Disassembler/PowerPC/ppc64-encoding-dfp.txt

# RUN: llvm-mc --disassemble %s -triple powerpc64-unknown-unknown -mcpu=pwr7 | FileCheck %s

# CHECK: dadd 2, 3, 4
0xec 0x43 0x20 0x04

# CHECK: dadd. 2, 3, 4
0xec 0x43 0x20 0x05

# CHECK: daddq 2, 6, 4
0xfc 0x46 0x20 0x04

# CHECK: daddq. 2, 6, 4
0xfc 0x46 0x20 0x05

# CHECK: dsub 2, 3, 4
0xec 0x43 0x24 0x04

# CHECK: dsub. 2, 3, 4
0xec 0x43 0x24 0x05

# CHECK: dsubq 2, 6, 4
0xfc 0x46 0x24 0x04

# CHECK: dsubq. 2, 6, 4
0xfc 0x46 0x24 0x05

# CHECK: dmul 2, 3, 4
0xec 0x43 0x20 0x44

# CHECK: dmul. 2, 3, 4
0xec 0x43 0x20 0x45

# CHECK: dmulq 2, 6, 4
0xfc 0x46 0x20 0x44

# CHECK: dmulq. 2, 6, 4
0xfc 0x46 0x20 0x45

# CHECK: ddiv 2, 3, 4
0xec 0x43 0x24 0x44

# CHECK: ddiv. 2, 3, 4
0xec 0x43 0x24 0x45

# CHECK: ddivq 2, 6, 4
0xfc 0x46 0x24 0x44

# CHECK: ddivq. 2, 6, 4
0xfc 0x46 0x24 0x45

# CHECK: dcmpu 2, 6, 4
0xed 0x06 0x25 0x04

# CHECK: dcmpuq 2, 6, 4
0xfd 0x06 0x25 0x04

# CHECK: dcmpo 2, 6, 4
0xed 0x06 0x21 0x04

# CHECK: dcmpoq 2, 6, 4
0xfd 0x06 0x21 0x04

# CHECK: dquai 15, 8, 4, 3
0xed 0x0f 0x26 0x86

# CHECK: dquai. 15, 8, 4, 3
0xed 0x0f 0x26 0x87

# CHECK: dquaiq 15, 8, 4, 3
0xfd 0x0f 0x26 0x86

# CHECK: dquaiq. 15, 8, 4, 3
0xfd 0x0f 0x26 0x87

# CHECK: dqua 7, 15, 4, 2
0xec 0xef 0x24 0x06

# CHECK: dqua. 7, 15, 4, 2
0xec 0xef 0x24 0x07

# CHECK: dquaq 6, 14, 4, 2
0xfc 0xce 0x24 0x06

# CHECK: dquaq. 6, 14, 4, 2
0xfc 0xce 0x24 0x07

# CHECK: drrnd 8, 12, 6, 2
0xed 0x0c 0x34 0x46

# CHECK: drrnd. 8, 12, 6, 2
0xed 0x0c 0x34 0x47

# CHECK: drrndq 8, 12, 6, 2
0xfd 0x0c 0x34 0x46

# CHECK: drrndq. 8, 12, 6, 2
0xfd 0x0c 0x34 0x47

# CHECK: drintx 1, 8, 10, 3
0xed 0x01 0x56 0xc6

# CHECK: drintx. 0, 8, 10, 3
0xed 0x00 0x56 0xc7

# CHECK: drintxq 0, 8, 10, 3
0xfd 0x00 0x56 0xc6

# CHECK: drintxq. 1, 8, 10, 3
0xfd 0x01 0x56 0xc7

# CHECK: drintn 0, 10, 6, 2
0xed 0x40 0x35 0xc6

# CHECK: drintn. 1, 10, 6, 2
0xed 0x41 0x35 0xc7

# CHECK: drintnq 1, 10, 6, 2
0xfd 0x41 0x35 0xc6

# CHECK: drintnq. 0, 10, 6, 2
0xfd 0x40 0x35 0xc7

# CHECK: dctdp 8, 2
0xed 0x00 0x12 0x04

# CHECK: dctdp. 8, 2
0xed 0x00 0x12 0x05

# CHECK: dctqpq 8, 2
0xfd 0x00 0x12 0x04

# CHECK: dctqpq. 8, 2
0xfd 0x00 0x12 0x05

# CHECK: drsp 20, 8
0xee 0x80 0x46 0x04

# CHECK: drsp. 20, 8
0xee 0x80 0x46 0x05

# CHECK: drdpq 20, 8
0xfe 0x80 0x46 0x04

# CHECK: drdpq. 20, 8
0xfe 0x80 0x46 0x05

# CHECK: dcffix 12, 7
0xed 0x80 0x3e 0x44

# CHECK: dcffix. 12, 7
0xed 0x80 0x3e 0x45

# CHECK: dcffixq 12, 8
0xfd 0x80 0x46 0x44

# CHECK: dcffixq. 12, 8
0xfd 0x80 0x46 0x45

# CHECK : dcffixqq 18, 20
0xfe 0x40 0xa7 0xc4

# CHECK: dctfix 8, 4
0xed 0x00 0x22 0x44

# CHECK: dctfix. 8, 4
0xed 0x00 0x22 0x45

# CHECK: dctfixq 8, 4
0xfd 0x00 0x22 0x44

# CHECK: dctfixq. 8, 4
0xfd 0x00 0x22 0x45

# CHECK: dctfixqq 8, 10
0xfd 0x01 0x57 0xc4

# CHECK: ddedpd 0, 8, 10
0xed 0x00 0x52 0x84

# CHECK: ddedpd. 0, 8, 10
0xed 0x00 0x52 0x85

# CHECK: ddedpdq 1, 8, 10
0xfd 0x08 0x52 0x84

# CHECK: ddedpdq. 1, 8, 10
0xfd 0x08 0x52 0x85

# CHECK: denbcd 1, 12, 16
0xed 0x90 0x86 0x84

# CHECK: denbcd. 0, 12, 16
0xed 0x80 0x86 0x85

# CHECK: denbcdq 1, 12, 16
0xfd 0x90 0x86 0x84

# CHECK: denbcdq. 0, 12, 16
0xfd 0x80 0x86 0x85

# CHECK: dxex 8, 20
0xed 0x00 0xa2 0xc4

# CHECK: dxex. 8, 20
0xed 0x00 0xa2 0xc5

# CHECK: dxexq 8, 20
0xfd 0x00 0xa2 0xc4

# CHECK: dxexq. 8, 20
0xfd 0x00 0xa2 0xc5

# CHECK: diex 8, 12, 18
0xed 0x0c 0x96 0xc4

# CHECK: diex. 8, 12, 18
0xed 0x0c 0x96 0xc5

# CHECK: diexq. 8, 12, 18
0xfd 0x0c 0x96 0xc5

# CHECK: diexq 8, 12, 18
0xfd 0x0c 0x96 0xc4

# CHECK: dscli 22, 4, 63
0xee 0xc4 0xfc 0x84

# CHECK: dscli. 22, 4, 63
0xee 0xc4 0xfc 0x85

# CHECK: dscliq 22, 4, 63
0xfe 0xc4 0xfc 0x84

# CHECK: dscliq. 22, 4, 63
0xfe 0xc4 0xfc 0x85

# CHECK: dscri 16, 10, 50
0xee 0x0a 0xc8 0xc4

# CHECK: dscri. 16, 10, 50
0xee 0x0a 0xc8 0xc5

# CHECK: dscriq 16, 10, 50
0xfe 0x0a 0xc8 0xc4

# CHECK: dscriq. 16, 10, 50
0xfe 0x0a 0xc8 0xc5

# CHECK: dtstdc 2, 6, 4
0xed,0x06,0x11,0x84

# CHECK: dtstdcq 2, 6, 4
0xfd,0x06,0x11,0x84

# CHECK: dtstdg 2, 6, 4
0xed,0x06,0x11,0xc4

# CHECK: dtstdgq 2, 6, 4
0xfd,0x06,0x11,0xc4

# CHECK: dtstex 2, 6, 4
0xed,0x06,0x21,0x44

# CHECK: dtstexq 2, 6, 4
0xfd,0x06,0x21,0x44

# CHECK: dtstsf 2, 6, 4
0xed,0x06,0x25,0x44

# CHECK: dtstsfq 2, 6, 4
0xfd,0x06,0x25,0x44

# CHECK: dtstsfi 2, 6, 4
0xed,0x06,0x25,0x46

# CHECK: dtstsfiq 2, 6, 4
0xfd,0x06,0x25,0x46