[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / Mips / unsupported-relocation.s
blob311c0c7d60f20b0ae46d49d88dd91405124fcaf6
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