2017-02-22 04:17:34 +08:00
|
|
|
; RUN: llc < %s -mtriple=arm-linux-gnueabi | FileCheck %s
|
|
|
|
|
|
|
|
@X = constant {i8, i8 } { i8 0, i8 0 }
|
|
|
|
@XA = alias i8, getelementptr inbounds ({ i8, i8 }, {i8, i8}* @X, i32 0, i32 1)
|
|
|
|
|
|
|
|
define void @f(i8** %p) align 2 {
|
|
|
|
entry:
|
|
|
|
store i8* @XA, i8 **%p, align 4
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; CHECK: f:
|
|
|
|
; CHECK: ldr r{{.*}}, [[L:.*]]
|
|
|
|
; CHECK: [[L]]:
|
|
|
|
; CHECK-NEXT: .long XA
|
2018-03-28 00:44:41 +08:00
|
|
|
; CHECK: .set XA, X+1
|