1 # RUN: llvm-mc -triple mblaze-unknown-unknown -show-encoding %s | FileCheck %s
3 # Test to make sure that all of the TYPE-A instructions supported by
4 # the Microblaze can be parsed by the assembly parser.
6 # TYPE A: OPCODE RD RA RB FLAGS
7 # BINARY: 000000 00000 00000 00000 00000000000
10 # BINARY: 110000 00001 00010 00011 00000000000
11 # CHECK: encoding: [0xc0,0x22,0x18,0x00]
15 # BINARY: 110000 00001 00010 00011 01000000000
16 # CHECK: encoding: [0xc0,0x22,0x1a,0x00]
20 # BINARY: 111000 00001 00010 0000000000011100
21 # CHECK: encoding: [0xe0,0x22,0x00,0x1c]
25 # BINARY: 110001 00001 00010 00011 00000000000
26 # CHECK: encoding: [0xc4,0x22,0x18,0x00]
30 # BINARY: 110001 00001 00010 00011 01000000000
31 # CHECK: encoding: [0xc4,0x22,0x1a,0x00]
35 # BINARY: 111001 00001 00010 0000000000011100
36 # CHECK: encoding: [0xe4,0x22,0x00,0x1c]
40 # BINARY: 110010 00001 00010 00011 00000000000
41 # CHECK: encoding: [0xc8,0x22,0x18,0x00]
45 # BINARY: 110010 00001 00010 00011 01000000000
46 # CHECK: encoding: [0xc8,0x22,0x1a,0x00]
50 # BINARY: 111010 00001 00010 0000000000011100
51 # CHECK: encoding: [0xe8,0x22,0x00,0x1c]
55 # BINARY: 110010 00001 00010 00011 10000000000
56 # CHECK: encoding: [0xc8,0x22,0x1c,0x00]
60 # BINARY: 110100 00001 00010 00011 00000000000
61 # CHECK: encoding: [0xd0,0x22,0x18,0x00]
65 # BINARY: 110100 00001 00010 00011 01000000000
66 # CHECK: encoding: [0xd0,0x22,0x1a,0x00]
70 # BINARY: 111100 00001 00010 0000000000011100
71 # CHECK: encoding: [0xf0,0x22,0x00,0x1c]
75 # BINARY: 110101 00001 00010 00011 00000000000
76 # CHECK: encoding: [0xd4,0x22,0x18,0x00]
80 # BINARY: 110101 00001 00010 00011 01000000000
81 # CHECK: encoding: [0xd4,0x22,0x1a,0x00]
85 # BINARY: 111101 00001 00010 0000000000011100
86 # CHECK: encoding: [0xf4,0x22,0x00,0x1c]
90 # BINARY: 110110 00001 00010 00011 00000000000
91 # CHECK: encoding: [0xd8,0x22,0x18,0x00]
95 # BINARY: 110110 00001 00010 00011 01000000000
96 # CHECK: encoding: [0xd8,0x22,0x1a,0x00]
100 # BINARY: 111110 00001 00010 0000000000011100
101 # CHECK: encoding: [0xf8,0x22,0x00,0x1c]
105 # BINARY: 110110 00001 00010 00011 10000000000
106 # CHECK: encoding: [0xd8,0x22,0x1c,0x00]