2018-01-24 07:40:04 +01:00
|
|
|
; RUN: llc < %s -mtriple=thumbv7-win32 -arm-global-merge | FileCheck %s
|
|
|
|
|
|
|
|
@x = global i32 0, align 4
|
|
|
|
@y = dllexport global i32 0, align 4
|
|
|
|
|
|
|
|
define void @f1(i32 %a1, i32 %a2) {
|
|
|
|
; CHECK: f1:
|
2018-02-12 22:14:21 +01:00
|
|
|
; CHECK: movw [[REG1:r[0-9]+]], :lower16:.L_MergedGlobals
|
|
|
|
; CHECK: movt [[REG1]], :upper16:.L_MergedGlobals
|
2018-01-24 07:40:04 +01:00
|
|
|
store i32 %a1, i32* @x, align 4
|
|
|
|
store i32 %a2, i32* @y, align 4
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2018-02-12 22:14:21 +01:00
|
|
|
; CHECK: .lcomm .L_MergedGlobals,8,4
|
|
|
|
; CHECK: .globl x
|
2018-03-27 18:44:41 +02:00
|
|
|
; CHECK: .set x, .L_MergedGlobals
|
2018-02-12 22:14:21 +01:00
|
|
|
; CHECK: .globl y
|
2018-03-27 18:44:41 +02:00
|
|
|
; CHECK: .set y, .L_MergedGlobals+4
|
2018-02-12 22:14:21 +01:00
|
|
|
; CHECK: .section .drectve,"yn"
|
|
|
|
; CHECK: .ascii " /EXPORT:y,DATA"
|