1# RUN: llvm-mc %s -triple=mips-unknown-unknown -show-encoding -mcpu=mips32r2 | \ 2# RUN: FileCheck -check-prefix=CHECK32 %s 3# RUN: llvm-mc %s -triple=mips64-unknown-unknown -show-encoding -mcpu=mips64r2 \ 4# RUN: | FileCheck -check-prefix=CHECK64 %s 5 6# CHECK32: break # encoding: [0x00,0x00,0x00,0x0d] 7# CHECK32: break 7 # encoding: [0x00,0x07,0x00,0x0d] 8# CHECK32: break 7, 5 # encoding: [0x00,0x07,0x01,0x4d] 9# CHECK32: eret # encoding: [0x42,0x00,0x00,0x18] 10# CHECK32: deret # encoding: [0x42,0x00,0x00,0x1f] 11# CHECK32: di # encoding: [0x41,0x60,0x60,0x00] 12# CHECK32: di # encoding: [0x41,0x60,0x60,0x00] 13# CHECK32: di $10 # encoding: [0x41,0x6a,0x60,0x00] 14# CHECK32: ei # encoding: [0x41,0x60,0x60,0x20] 15# CHECK32: ei # encoding: [0x41,0x60,0x60,0x20] 16# CHECK32: ei $10 # encoding: [0x41,0x6a,0x60,0x20] 17# CHECK32: wait # encoding: [0x42,0x00,0x00,0x20] 18# CHECK32: teq $zero, $3 # encoding: [0x00,0x03,0x00,0x34] 19# CHECK32: teq $zero, $3, 1 # encoding: [0x00,0x03,0x00,0x74] 20# CHECK32: teqi $3, 1 # encoding: [0x04,0x6c,0x00,0x01] 21# CHECK32: tge $zero, $3 # encoding: [0x00,0x03,0x00,0x30] 22# CHECK32: tge $zero, $3, 3 # encoding: [0x00,0x03,0x00,0xf0] 23# CHECK32: tgei $3, 3 # encoding: [0x04,0x68,0x00,0x03] 24# CHECK32: tgeu $zero, $3 # encoding: [0x00,0x03,0x00,0x31] 25# CHECK32: tgeu $zero, $3, 7 # encoding: [0x00,0x03,0x01,0xf1] 26# CHECK32: tgeiu $3, 7 # encoding: [0x04,0x69,0x00,0x07] 27# CHECK32: tlt $zero, $3 # encoding: [0x00,0x03,0x00,0x32] 28# CHECK32: tlt $zero, $3, 31 # encoding: [0x00,0x03,0x07,0xf2] 29# CHECK32: tlti $3, 31 # encoding: [0x04,0x6a,0x00,0x1f] 30# CHECK32: tltu $zero, $3 # encoding: [0x00,0x03,0x00,0x33] 31# CHECK32: tltu $zero, $3, 255 # encoding: [0x00,0x03,0x3f,0xf3] 32# CHECK32: tltiu $3, 255 # encoding: [0x04,0x6b,0x00,0xff] 33# CHECK32: tne $zero, $3 # encoding: [0x00,0x03,0x00,0x36] 34# CHECK32: tne $zero, $3, 1023 # encoding: [0x00,0x03,0xff,0xf6] 35# CHECK32: tnei $3, 1023 # encoding: [0x04,0x6e,0x03,0xff] 36 37# CHECK64: break # encoding: [0x00,0x00,0x00,0x0d] 38# CHECK64: break 7 # encoding: [0x00,0x07,0x00,0x0d] 39# CHECK64: break 7, 5 # encoding: [0x00,0x07,0x01,0x4d] 40# CHECK64: eret # encoding: [0x42,0x00,0x00,0x18] 41# CHECK64: deret # encoding: [0x42,0x00,0x00,0x1f] 42# CHECK64: di # encoding: [0x41,0x60,0x60,0x00] 43# CHECK64: di # encoding: [0x41,0x60,0x60,0x00] 44# CHECK64: di $10 # encoding: [0x41,0x6a,0x60,0x00] 45# CHECK64: ei # encoding: [0x41,0x60,0x60,0x20] 46# CHECK64: ei # encoding: [0x41,0x60,0x60,0x20] 47# CHECK64: ei $10 # encoding: [0x41,0x6a,0x60,0x20] 48# CHECK64: wait # encoding: [0x42,0x00,0x00,0x20] 49# CHECK64: teq $zero, $3 # encoding: [0x00,0x03,0x00,0x34] 50# CHECK64: teq $zero, $3, 1 # encoding: [0x00,0x03,0x00,0x74] 51# CHECK64: teqi $3, 1 # encoding: [0x04,0x6c,0x00,0x01] 52# CHECK64: tge $zero, $3 # encoding: [0x00,0x03,0x00,0x30] 53# CHECK64: tge $zero, $3, 3 # encoding: [0x00,0x03,0x00,0xf0] 54# CHECK64: tgei $3, 3 # encoding: [0x04,0x68,0x00,0x03] 55# CHECK64: tgeu $zero, $3 # encoding: [0x00,0x03,0x00,0x31] 56# CHECK64: tgeu $zero, $3, 7 # encoding: [0x00,0x03,0x01,0xf1] 57# CHECK64: tgeiu $3, 7 # encoding: [0x04,0x69,0x00,0x07] 58# CHECK64: tlt $zero, $3 # encoding: [0x00,0x03,0x00,0x32] 59# CHECK64: tlt $zero, $3, 31 # encoding: [0x00,0x03,0x07,0xf2] 60# CHECK64: tlti $3, 31 # encoding: [0x04,0x6a,0x00,0x1f] 61# CHECK64: tltu $zero, $3 # encoding: [0x00,0x03,0x00,0x33] 62# CHECK64: tltu $zero, $3, 255 # encoding: [0x00,0x03,0x3f,0xf3] 63# CHECK64: tltiu $3, 255 # encoding: [0x04,0x6b,0x00,0xff] 64# CHECK64: tne $zero, $3 # encoding: [0x00,0x03,0x00,0x36] 65# CHECK64: tne $zero, $3, 1023 # encoding: [0x00,0x03,0xff,0xf6] 66# CHECK64: tnei $3, 1023 # encoding: [0x04,0x6e,0x03,0xff] 67 68 break 69 break 7 70 break 7,5 71 eret 72 deret 73 di 74 di $0 75 di $10 76 77 ei 78 ei $0 79 ei $10 80 81 wait 82 83 teq $0,$3 84 teq $0,$3,1 85 teqi $3,1 86 tge $0,$3 87 tge $0,$3,3 88 tgei $3,3 89 tgeu $0,$3 90 tgeu $0,$3,7 91 tgeiu $3,7 92 tlt $0,$3 93 tlt $0,$3,31 94 tlti $3,31 95 tltu $0,$3 96 tltu $0,$3,255 97 tltiu $3,255 98 tne $0,$3 99 tne $0,$3,1023 100 tnei $3,1023 101