1 # RUN: llvm-mc --disassemble %s -triple powerpc64-unknown-unknown -mcpu=pwr7 | FileCheck %s 2 3 # CHECK: add 1, 2, 3 4 0x7c 0x22 0x1a 0x14 5 6 # CHECK: add 1, 2, 3 7 0x7c 0x22 0x1a 0x14 8 9 # CHECK: add 0, 0, 0 10 0x7c 0x00 0x02 0x14 11 12 # CHECK: add 31, 31, 31 13 0x7f 0xff 0xfa 0x14 14 15 # CHECK: li 1, 0 16 0x38 0x20 0x00 0x00 17 18 # CHECK: addi 1, 2, 0 19 0x38 0x22 0x00 0x00 20 21 # CHECK: li 1, -32768 22 0x38 0x20 0x80 0x00 23 24 # CHECK: li 1, 32767 25 0x38 0x20 0x7f 0xff 26 27 # CHECK: ori 1, 2, 0 28 0x60 0x41 0x00 0x00 29 30 # CHECK: ori 1, 2, 65535 31 0x60 0x41 0xff 0xff 32 33 # CHECK: lis 1, 0 34 0x3c 0x20 0x00 0x00 35 36 # CHECK: lis 1, -1 37 0x3c 0x20 0xff 0xff 38 39 # CHECK: lwz 1, 0(0) 40 0x80 0x20 0x00 0x00 41 42 # CHECK: lwz 1, 0(0) 43 0x80 0x20 0x00 0x00 44 45 # CHECK: lwz 1, 0(31) 46 0x80 0x3f 0x00 0x00 47 48 # CHECK: lwz 1, 0(31) 49 0x80 0x3f 0x00 0x00 50 51 # CHECK: lwz 1, -32768(2) 52 0x80 0x22 0x80 0x00 53 54 # CHECK: lwz 1, 32767(2) 55 0x80 0x22 0x7f 0xff 56 57 # CHECK: ld 1, 0(0) 58 0xe8 0x20 0x00 0x00 59 60 # CHECK: ld 1, 0(0) 61 0xe8 0x20 0x00 0x00 62 63 # CHECK: ld 1, 0(31) 64 0xe8 0x3f 0x00 0x00 65 66 # CHECK: ld 1, 0(31) 67 0xe8 0x3f 0x00 0x00 68 69 # CHECK: ld 1, -32768(2) 70 0xe8 0x22 0x80 0x00 71 72 # CHECK: ld 1, 32764(2) 73 0xe8 0x22 0x7f 0xfc 74 75 # CHECK: ld 1, 4(2) 76 0xe8 0x22 0x00 0x04 77 78 # CHECK: ld 1, -4(2) 79 0xe8 0x22 0xff 0xfc 80 81 # CHECK: b .+1024 82 0x48 0x00 0x04 0x00 83 84 # CHECK: ba 1024 85 0x48 0x00 0x04 0x02 86 87 # FIXME: decode as beq 0, .+1024 88 # CHECK: bt 2, .+1024 89 0x41 0x82 0x04 0x00 90 91 # FIXME: decode as beqa 0, 1024 92 # CHECK: bta 2, 1024 93 0x41 0x82 0x04 0x02 94 95