xref: /aosp_15_r20/external/llvm/test/MC/ARM/inst-constant-required.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker@ RUN: not llvm-mc %s -triple=armv7-linux-gnueabi -filetype asm -o - 2>&1 \
2*9880d681SAndroid Build Coastguard Worker@ RUN:   | FileCheck -check-prefix CHECK-ERROR %s
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker	.syntax unified
5*9880d681SAndroid Build Coastguard Worker	.arm
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Worker	.align 2
8*9880d681SAndroid Build Coastguard Worker	.global constant_expression_required
9*9880d681SAndroid Build Coastguard Worker	.type constant_expression_required,%function
10*9880d681SAndroid Build Coastguard Workerconstant_expression_required:
11*9880d681SAndroid Build Coastguard Worker.Label:
12*9880d681SAndroid Build Coastguard Worker	movs r0, r0
13*9880d681SAndroid Build Coastguard Worker	.inst .Label
14*9880d681SAndroid Build Coastguard Worker@ CHECK-ERROR: expected constant expression
15*9880d681SAndroid Build Coastguard Worker
16