1 ; RUN: llc -mtriple=thumbv6m-eabi -verify-machineinstrs %s -o - | FileCheck %s
2 ; RUN: llc -mtriple=thumbv5e-linux-gnueabi -verify-machineinstrs %s -o - | FileCheck %s
4 %0 = type { %0*, %0*, i32 }
6 @x1 = external global %0, align 4
7 @x2 = external global %0, align 4
10 ; CHECK-NEXT: str r1, [r1, #4]
13 define void @foo(i32 %unused, %0* %x) {
14 %first = getelementptr inbounds %0, %0* %x, i32 0, i32 0
15 %second = getelementptr inbounds %0, %0* %x, i32 0, i32 1
16 store %0* @x1, %0** %first
17 store %0* %x, %0** %second