[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / ARM / thumb-movwt-reloc.s
blobc00cf1c1c9e08210928ee976fb80dd3a1fb4fe49
1 @ RUN: llvm-mc -triple thumbv8m.base-eabi -filetype asm -o - %s | FileCheck %s
2 @ RUN: llvm-mc -triple thumbv8m.base-eabi -filetype obj -o - %s | llvm-readobj -r \
3 @ RUN: | FileCheck -check-prefix CHECK-RELOCATIONS %s
5 .syntax unified
7 .type function,%function
8 function:
9 bx lr
11 .global external
12 .type external,%function
14 .type test,%function
15 test:
16 movw r0, :lower16:function
17 movt r0, :upper16:function
19 @ CHECK-LABEL: test:
20 @ CHECK: movw r0, :lower16:function
21 @ CHECK: movt r0, :upper16:function
23 @ CHECK-RELOCATIONS: Relocations [
24 @ CHECK-RELOCATIONS: 0x2 R_ARM_THM_MOVW_ABS_NC function 0x0
25 @ CHECK-RELOCATIONS: 0x6 R_ARM_THM_MOVT_ABS function 0x0
26 @ CHECK-RELOCATIONS: ]