xref: /llvm-project/llvm/test/MC/Mips/unsupported-relocation.s (revision b00f0d4238cb34a54073cc5ab7e2060d58f69e3f)
1# RUN: not llvm-mc -triple mips-unknown-linux -filetype=obj -o %t %s 2>&1 \
2# RUN:  |  FileCheck %s
3
4# Check that we emit an error for unsupported relocations instead of crashing.
5
6        .globl x
7
8        .data
9foo:
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