mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-02 16:56:50 +00:00
6f1c76b0b9
This refactors a bit of duplicated code and fixes an assertion failure on ELF. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306035 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
413 B
ArmAsm
13 lines
413 B
ArmAsm
// RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o /dev/null 2>%t
|
|
// RUN: FileCheck --input-file=%t %s
|
|
|
|
|
|
.data
|
|
x:
|
|
// CHECK: [[@LINE+1]]:{{[0-9]+}}: error: symbol '__executable_start' can not be undefined in a subtraction expression
|
|
.quad x-__executable_start
|
|
|
|
// CHECK: [[@LINE+1]]:{{[0-9]+}}: error: unsupported subtraction of qualified symbol
|
|
.long bar - foo@got
|
|
foo:
|