1# RUN: llvm-mc --disassemble %s -triple powerpc64-unknown-unknown -mcpu=pwr7 | FileCheck %s 2 3# CHECK: add 1, 2, 3 40x7c 0x22 0x1a 0x14 5 6# CHECK: add 1, 2, 3 70x7c 0x22 0x1a 0x14 8 9# CHECK: add 0, 0, 0 100x7c 0x00 0x02 0x14 11 12# CHECK: add 31, 31, 31 130x7f 0xff 0xfa 0x14 14 15# CHECK: li 1, 0 160x38 0x20 0x00 0x00 17 18# CHECK: addi 1, 2, 0 190x38 0x22 0x00 0x00 20 21# CHECK: li 1, -32768 220x38 0x20 0x80 0x00 23 24# CHECK: li 1, 32767 250x38 0x20 0x7f 0xff 26 27# CHECK: ori 1, 2, 0 280x60 0x41 0x00 0x00 29 30# CHECK: ori 1, 2, 65535 310x60 0x41 0xff 0xff 32 33# CHECK: lis 1, 0 340x3c 0x20 0x00 0x00 35 36# CHECK: lis 1, -1 370x3c 0x20 0xff 0xff 38 39# CHECK: lwz 1, 0(0) 400x80 0x20 0x00 0x00 41 42# CHECK: lwz 1, 0(0) 430x80 0x20 0x00 0x00 44 45# CHECK: lwz 1, 0(31) 460x80 0x3f 0x00 0x00 47 48# CHECK: lwz 1, 0(31) 490x80 0x3f 0x00 0x00 50 51# CHECK: lwz 1, -32768(2) 520x80 0x22 0x80 0x00 53 54# CHECK: lwz 1, 32767(2) 550x80 0x22 0x7f 0xff 56 57# CHECK: ld 1, 0(0) 580xe8 0x20 0x00 0x00 59 60# CHECK: ld 1, 0(0) 610xe8 0x20 0x00 0x00 62 63# CHECK: ld 1, 0(31) 640xe8 0x3f 0x00 0x00 65 66# CHECK: ld 1, 0(31) 670xe8 0x3f 0x00 0x00 68 69# CHECK: ld 1, -32768(2) 700xe8 0x22 0x80 0x00 71 72# CHECK: ld 1, 32764(2) 730xe8 0x22 0x7f 0xfc 74 75# CHECK: ld 1, 4(2) 760xe8 0x22 0x00 0x04 77 78# CHECK: ld 1, -4(2) 790xe8 0x22 0xff 0xfc 80 81# CHECK: b .+1024 820x48 0x00 0x04 0x00 83 84# CHECK: ba 1024 850x48 0x00 0x04 0x02 86 87# FIXME: decode as beq 0, .+1024 88# CHECK: bt 2, .+1024 890x41 0x82 0x04 0x00 90 91# FIXME: decode as beqa 0, 1024 92# CHECK: bta 2, 1024 930x41 0x82 0x04 0x02 94 95