1# Verify that every branch and jump instruction is followed by a delay slot. 2# 3# RUN: llvm-mc %s -triple=mips-unknown-linux -mcpu=mips32r2 | FileCheck %s 4 5 .set noat 6 # CHECK: b 1332 7 # CHECK: nop 8 b 1332 9 # CHECK: bc1f 1332 10 # CHECK: nop 11 bc1f 1332 12 # CHECK: bc1t 1332 13 # CHECK: nop 14 bc1t 1332 15 # CHECK: beq $9, $6, 1332 16 # CHECK: nop 17 beq $9,$6,1332 18 # CHECK: bgez $6, 1332 19 # CHECK: nop 20 bgez $6,1332 21 # CHECK: bgezal $6, 1332 22 # CHECK: nop 23 bgezal $6,1332 24 # CHECK: bgtz $6, 1332 25 # CHECK: nop 26 bgtz $6,1332 27 # CHECK: blez $6, 1332 28 # CHECK: nop 29 blez $6,1332 30 # CHECK: bltz $6, 1332 31 # CHECK: nop 32 bltz $6,1332 33 # CHECK: bne $9, $6, 1332 34 # CHECK: nop 35 bne $9,$6,1332 36 # CHECK: bltzal $6, 1332 37 # CHECK: nop 38 bltzal $6,1332 39 # CHECK: bal 1332 40 # CHECK: nop 41 bal 1332 42 # CHECK: bnez $11, 1332 43 # CHECK: nop 44 bnez $11,1332 45 # CHECK: beqz $11, 1332 46 # CHECK: nop 47 beqz $11,1332 48 49 # CHECK: bc1fl 1332 50 # CHECK: nop 51 bc1fl 1332 52 # CHECK: bc1fl 1332 53 # CHECK: nop 54 bc1fl $fcc0, 1332 55 # CHECK: bc1fl $fcc3, 1332 56 # CHECK: nop 57 bc1fl $fcc3, 1332 58 # CHECK: bc1tl 1332 59 # CHECK: nop 60 bc1tl 1332 61 # CHECK: bc1tl 1332 62 # CHECK: nop 63 bc1tl $fcc0, 1332 64 # CHECK: bc1tl $fcc3, 1332 65 # CHECK: nop 66 bc1tl $fcc3, 1332 67 # CHECK: beql $9, $6, 1332 68 # CHECK: nop 69 beql $9,$6,1332 70 # CHECK: beql $9, $zero, 1332 71 # CHECK: nop 72 beqzl $9,1332 73 # CHECK: bnel $9, $6, 1332 74 # CHECK: nop 75 bnel $9,$6,1332 76 # CHECK: bnel $9, $zero, 1332 77 # CHECK: nop 78 bnezl $9,1332 79 # CHECK: bgezl $6, 1332 80 # CHECK: nop 81 bgezl $6,1332 82 # CHECK: bgtzl $6, 1332 83 # CHECK: nop 84 bgtzl $6,1332 85 # CHECK: blezl $6, 1332 86 # CHECK: nop 87 blezl $6,1332 88 # CHECK: bltzl $6, 1332 89 # CHECK: nop 90 bltzl $6,1332 91 # CHECK: bgezall $6, 1332 92 # CHECK: nop 93 bgezall $6,1332 94 # CHECK: bltzall $6, 1332 95 # CHECK: nop 96 bltzall $6,1332 97 98 # CHECK: j 1328 99 # CHECK: nop 100 j 1328 101 # CHECK: jal 1328 102 # CHECK: nop 103 jal 1328 104 # CHECK: jalr $6 105 # CHECK: nop 106 jalr $6 107 # CHECK: jalr $25 108 # CHECK: nop 109 jalr $31,$25 110 # CHECK: jalr $10, $11 111 # CHECK: nop 112 jalr $10,$11 113 # CHECK: jr $7 114 # CHECK: nop 115 jr $7 116 # CHECK: jr $7 117 # CHECK: nop 118 j $7 119 # CHECK: jalr $25 120 # CHECK: nop 121 jal $25 122 # CHECK: jalr $4, $25 123 # CHECK: nop 124 jal $4,$25 125 # CHECK: jalx lab 126 # CHECK: nop 127 jalx lab 128