aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/ELF/diff2.s
blob: 4a9fbd1d83a76edccaefd8d7be61406b35e25f62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s 2> %t
// RUN: FileCheck -input-file %t %s

.global zed
        .data
foo:
        .text
        nop
bar:
        nop
zed:
// CHECK: expected relocatable expression
        mov zed+(bar-foo), %eax