summaryrefslogtreecommitdiff
path: root/test/MC/ARM/label_offset.s
blob: 0aeb3b6ee6977d1a0657e5a706dcc871e3dd2965 (plain)
1
2
3
4
5
6
7
8
@ RUN: not llvm-mc -triple=armv7-linux-gnuabi -filetype=obj < %s 2>&1 | FileCheck %s

.text
    cmp r2, #(l2 - l1) >> 6
@ CHECK: error: invalid operand for instruction

l1:
l2: