1 # RUN: llvm-mc -triple mblaze-unknown-unknown -show-encoding %s | FileCheck %s
3 # Test to ensure that all FPU instructions can be parsed by the
4 # assembly parser correctly.
6 # TYPE A: OPCODE RD RA RB FLAGS
7 # BINARY: 011011 00000 00000 00000 00000000000
10 # BINARY: 010110 00000 00001 00010 00000000000
11 # CHECK: encoding: [0x58,0x01,0x10,0x00]
15 # BINARY: 010110 00000 00001 00010 00010000000
16 # CHECK: encoding: [0x58,0x01,0x10,0x80]
20 # BINARY: 010110 00000 00001 00010 00100000000
21 # CHECK: encoding: [0x58,0x01,0x11,0x00]
25 # BINARY: 010110 00000 00001 00010 00110000000
26 # CHECK: encoding: [0x58,0x01,0x11,0x80]
30 # BINARY: 010110 00000 00001 00000 01110000000
31 # CHECK: encoding: [0x58,0x01,0x03,0x80]
35 # BINARY: 010110 00000 00001 00000 01100000000
36 # CHECK: encoding: [0x58,0x01,0x03,0x00]
40 # BINARY: 010110 00000 00001 00000 01010000000
41 # CHECK: encoding: [0x58,0x01,0x02,0x80]
45 # BINARY: 010110 00000 00001 00010 01000000000
46 # CHECK: encoding: [0x58,0x01,0x12,0x00]
50 # BINARY: 010110 00000 00001 00010 01000010000
51 # CHECK: encoding: [0x58,0x01,0x12,0x10]
55 # BINARY: 010110 00000 00001 00010 01000100000
56 # CHECK: encoding: [0x58,0x01,0x12,0x20]
60 # BINARY: 010110 00000 00001 00010 01000110000
61 # CHECK: encoding: [0x58,0x01,0x12,0x30]
65 # BINARY: 010110 00000 00001 00010 01001000000
66 # CHECK: encoding: [0x58,0x01,0x12,0x40]
70 # BINARY: 010110 00000 00001 00010 01001010000
71 # CHECK: encoding: [0x58,0x01,0x12,0x50]
75 # BINARY: 010110 00000 00001 00010 01001100000
76 # CHECK: encoding: [0x58,0x01,0x12,0x60]