2018-12-29 18:09:55 +08:00
|
|
|
# RUN: not llvm-mc -triple mips-unknown-linux -filetype=obj -o %t %s 2>&1 \
|
|
|
|
# RUN: | FileCheck %s
|
2018-01-11 18:07:47 +08:00
|
|
|
|
|
|
|
# Check that we emit an error for unsupported relocations instead of crashing.
|
|
|
|
|
|
|
|
.globl x
|
|
|
|
|
|
|
|
.data
|
|
|
|
foo:
|
|
|
|
.byte x
|
2018-12-29 18:09:55 +08:00
|
|
|
# CHECK: :[[@LINE-1]]:17: error: MIPS does not support one byte relocations
|
2018-01-11 18:07:47 +08:00
|
|
|
.byte x+1
|
2018-12-29 18:09:55 +08:00
|
|
|
# CHECK: :[[@LINE-1]]:17: error: MIPS does not support one byte relocations
|
2018-12-29 18:10:02 +08:00
|
|
|
.quad x-foo
|
|
|
|
# CHECK: :[[@LINE-1]]:17: error: MIPS does not support 64-bit PC-relative relocations
|