[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / Mips / micromips32r6-eva.s
blob123b8259bd252a1624449a483aabd04083151c3f
1 # RUN: llvm-mc %s -triple=mipsel -show-encoding -show-inst -mcpu=mips32r6 \
2 # RUN: -mattr=+micromips,+eva | FileCheck -check-prefix=CHECK-EL %s
3 # RUN: llvm-mc %s -triple=mips -show-encoding -show-inst -mcpu=mips32r6 \
4 # RUN: -mattr=+micromips,+eva | FileCheck -check-prefix=CHECK-EB %s
5 # Check that the assembler can handle the documented syntax
6 # for EVA instructions.
7 #------------------------------------------------------------------------------
8 # microMIPS EVA Instructions
9 #------------------------------------------------------------------------------
10 # Little endian
11 #------------------------------------------------------------------------------
12 # CHECK-EL: prefe 1, 8($5) # encoding: [0x25,0x60,0x08,0xa4]
13 # CHECK-EL-NEXT: # <MCInst #{{[0-9]+}} PREFE_MM
14 # CHECK-EL: cachee 1, 8($5) # encoding: [0x25,0x60,0x08,0xa6]
15 # CHECK-EL-NEXT: # <MCInst #{{[0-9]+}} CACHEE_MM
16 # CHECK-EL: lle $2, 8($4) # encoding: [0x44,0x60,0x08,0x6c]
17 # CHECK-EL-NEXT: # <MCInst #{{[0-9]+}} LLE_MM
18 # CHECK-EL: sce $2, 8($4) # encoding: [0x44,0x60,0x08,0xac]
19 # CHECK-EL-NEXT: # <MCInst #{{[0-9]+}} SCE_MM
20 # CHECK-EL: lhue $4, 8($2) # encoding: [0x82,0x60,0x08,0x62]
21 # CHECK-EL-NEXT: # <MCInst #{{[0-9]+}} LHuE_M
22 # CHECK-EL: lbe $4, 8($2) # encoding: [0x82,0x60,0x08,0x68]
23 # CHECK-EL-NEXT: # <MCInst #{{[0-9]+}} LBE_MM
24 # CHECK-EL: lbue $4, 8($2) # encoding: [0x82,0x60,0x08,0x60]
25 # CHECK-EL-NEXT: # <MCInst #{{[0-9]+}} LBuE_MM
26 # CHECK-EL: lhe $4, 8($2) # encoding: [0x82,0x60,0x08,0x6a]
27 # CHECK-EL-NEXT: # <MCInst #{{[0-9]+}} LHE_MM
28 # CHECK-EL: lwe $4, 8($2) # encoding: [0x82,0x60,0x08,0x6e]
29 # CHECK-EL-NEXT: # <MCInst #{{[0-9]+}} LWE_MM
30 # CHECK-EL: sbe $5, 8($4) # encoding: [0xa4,0x60,0x08,0xa8]
31 # CHECK-EL-NEXT: # <MCInst #{{[0-9]+}} SBE_MM
32 # CHECK-EL: she $5, 8($4) # encoding: [0xa4,0x60,0x08,0xaa]
33 # CHECK-EL-NEXT: # <MCInst #{{[0-9]+}} SHE_MM
34 # CHECK-EL: swe $5, 8($4) # encoding: [0xa4,0x60,0x08,0xae]
35 # CHECK-EL-NEXT: # <MCInst #{{[0-9]+}} SWE_MM
36 #------------------------------------------------------------------------------
37 # Big endian
38 #------------------------------------------------------------------------------
39 # CHECK-EB: prefe 1, 8($5) # encoding: [0x60,0x25,0xa4,0x08]
40 # CHECK-EB-NEXT: # <MCInst #{{[0-9]+}} PREFE_MM
41 # CHECK-EB: cachee 1, 8($5) # encoding: [0x60,0x25,0xa6,0x08]
42 # CHECK-EB-NEXT: # <MCInst #{{[0-9]+}} CACHEE_MM
43 # CHECK-EB: lle $2, 8($4) # encoding: [0x60,0x44,0x6c,0x08]
44 # CHECK-EB-NEXT: # <MCInst #{{[0-9]+}} LLE_MM
45 # CHECK-EB: sce $2, 8($4) # encoding: [0x60,0x44,0xac,0x08]
46 # CHECK-EB-NEXT: # <MCInst #{{[0-9]+}} SCE_MM
47 # CHECK-EB: lhue $4, 8($2) # encoding: [0x60,0x82,0x62,0x08]
48 # CHECK-EB-NEXT: # <MCInst #{{[0-9]+}} LHuE_MM
49 # CHECK-EB: lbe $4, 8($2) # encoding: [0x60,0x82,0x68,0x08]
50 # CHECK-EB-NEXT: # <MCInst #{{[0-9]+}} LBE_MM
51 # CHECK-EB: lbue $4, 8($2) # encoding: [0x60,0x82,0x60,0x08]
52 # CHECK-EB-NEXT: # <MCInst #{{[0-9]+}} LBuE_MM
53 # CHECK-EB: lhe $4, 8($2) # encoding: [0x60,0x82,0x6a,0x08]
54 # CHECK-EB-NEXT: # <MCInst #{{[0-9]+}} LHE_MM
55 # CHECK-EB: lwe $4, 8($2) # encoding: [0x60,0x82,0x6e,0x08]
56 # CHECK-EB-NEXT: # <MCInst #{{[0-9]+}} LWE_MM
57 # CHECK-EB: sbe $5, 8($4) # encoding: [0x60,0xa4,0xa8,0x08]
58 # CHECK-EB-NEXT: # <MCInst #{{[0-9]+}} SBE_MM
59 # CHECK-EB: she $5, 8($4) # encoding: [0x60,0xa4,0xaa,0x08]
60 # CHECK-EB-NEXT: # <MCInst #{{[0-9]+}} SHE_MM
61 # CHECK-EB: swe $5, 8($4) # encoding: [0x60,0xa4,0xae,0x08]
62 # CHECK-EB-NEXT: # <MCInst #{{[0-9]+}} SWE_MM
64 prefe 1, 8($5)
65 cachee 1, 8($5)
66 lle $2, 8($4)
67 sce $2, 8($4)
68 lhue $4, 8($2)
69 lbe $4, 8($2)
70 lbue $4, 8($2)
71 lhe $4, 8($2)
72 lwe $4, 8($2)
73 sbe $5, 8($4)
74 she $5, 8($4)
75 swe $5, 8($4)