diff options
author | Jason W Kim <jason.w.kim.2009@gmail.com> | 2011-01-11 23:53:41 +0000 |
---|---|---|
committer | Jason W Kim <jason.w.kim.2009@gmail.com> | 2011-01-11 23:53:41 +0000 |
commit | 9081b4b4cf89a161246e037f4817c69de2fcdf82 (patch) | |
tree | 6bd034b86d24ae18940c927a145bb26c9a88a97e /test/MC/ARM/elf-movt.s | |
parent | 2df5458535c54c1e214da65191ef86c38b57da39 (diff) | |
download | external_llvm-9081b4b4cf89a161246e037f4817c69de2fcdf82.zip external_llvm-9081b4b4cf89a161246e037f4817c69de2fcdf82.tar.gz external_llvm-9081b4b4cf89a161246e037f4817c69de2fcdf82.tar.bz2 |
Workaround for bug 8721.
.s Test added.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123292 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ARM/elf-movt.s')
-rw-r--r-- | test/MC/ARM/elf-movt.s | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/MC/ARM/elf-movt.s b/test/MC/ARM/elf-movt.s new file mode 100644 index 0000000..51c5429 --- /dev/null +++ b/test/MC/ARM/elf-movt.s @@ -0,0 +1,14 @@ +@ RUN: llvm-mc %s -triple=armv7-linux-gnueabi | FileCheck -check-prefix=ASM %s + .syntax unified + .text + .globl barf + .align 2 + .type barf,%function +barf: @ @barf +@ BB#0: @ %entry + movw r0, :lower16:GOT-(.LPC0_2+8) + movt r0, :upper16:GOT-(.LPC0_2+16) +.LPC0_2: +@ ASM: movw r0, :lower16:GOT-(.LPC0_2+8) +@ ASM-NEXT: movt r0, :upper16:GOT-(.LPC0_2+16) + |