1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 13:02:52 +02:00
llvm-mirror/test/CodeGen/ARM/Windows/global-minsize.ll
Saleem Abdulrasool e89f958d6e CodeGen: enable mov.w/mov.t pairs with minsize for WoA
Windows on ARM uses COFF/PE which is intrinsically position independent.  For
the case of 32-bit immediates, use a pair-wise relocation as otherwise we may
exceed the range of operators.  This fixes a code generation crash when using
-Oz when targeting Windows on ARM.

llvm-svn: 210814
2014-06-12 20:06:33 +00:00

17 lines
338 B
LLVM

; RUN: llc -mtriple=thumbv7-windows -filetype asm -o - %s | FileCheck %s
@i = internal global i32 0, align 4
; Function Attrs: minsize
define arm_aapcs_vfpcc i32* @function() #0 {
entry:
ret i32* @i
}
attributes #0 = { minsize }
; CHECK: function:
; CHECK: movw r0, :lower16:i
; CHECK: movt r0, :upper16:i
; CHECK: bx lr