[obj2yaml] - Fix a comment. NFC.
[llvm-complete.git] / test / MC / Mips / unsupported-relocation.s
blob258b48399873133ceb1d0eb1fd3ae708a856db06
1 # RUN: not llvm-mc -triple mips-unknown-linux -filetype=obj -o %t %s 2>&1 \
2 # RUN: | FileCheck %s
4 # Check that we emit an error for unsupported relocations instead of crashing.
6 .globl x
8 .data
9 foo:
10 .byte x
11 # CHECK: :[[@LINE-1]]:17: error: MIPS does not support one byte relocations
12 .byte x+1
13 # CHECK: :[[@LINE-1]]:17: error: MIPS does not support one byte relocations
14 .quad x-foo
15 # CHECK: :[[@LINE-1]]:17: error: MIPS does not support 64-bit PC-relative relocations