136b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines# RUN: not llvm-mc %s -triple=mipsel-unknown-linux -mcpu=mips32r2 -arch=mips 2>&1 -filetype=obj | FileCheck %s 2f3ef5332fa3f4d5ec72c178a2b19dac363a19383Pirama Arumuga Nainar 3f3ef5332fa3f4d5ec72c178a2b19dac363a19383Pirama Arumuga Nainar# Two instructions, to check that this is not a fatal error 4f3ef5332fa3f4d5ec72c178a2b19dac363a19383Pirama Arumuga Nainar# CHECK: error: out of range PC16 fixup 5f3ef5332fa3f4d5ec72c178a2b19dac363a19383Pirama Arumuga Nainar# CHECK: error: out of range PC16 fixup 636b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines 736b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines.text 836b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines b foo 9f3ef5332fa3f4d5ec72c178a2b19dac363a19383Pirama Arumuga Nainar b foo 1036b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines .space 131072 - 8, 1 # -8 = size of b instr plus size of automatically inserted nop 1136b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines nop # This instr makes the branch too long to fit into a 18-bit offset 1236b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hinesfoo: 1336b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines add $0,$0,$0 14