1 ; RUN: llc < %s -mtriple=armv7-apple-darwin | FileCheck %s -check-prefix=ARM
2 ; RUN: llc < %s -mtriple=thumbv7-apple-darwin | FileCheck %s -check-prefix=THUMB
5 %struct.foo = type { i64, i64 }
7 define zeroext i8 @t(%struct.foo* %this, i1 %tst) noreturn optsize {
10 ; ARM-DAG: mov r[[ADDR:[0-9]+]], #8
11 ; ARM-DAG: mov [[VAL:r[0-9]+]], #0
12 ; ARM: str [[VAL]], [r[[ADDR]]], r0
15 ; THUMB-DAG: movs r[[ADDR:[0-9]+]], #8
16 ; THUMB-DAG: movs [[VAL:r[0-9]+]], #0
17 ; THUMB-NOT: str {{[a-z0-9]+}}, [{{[a-z0-9]+}}], {{[a-z0-9]+}}
18 ; THUMB: str [[VAL]], [r[[ADDR]]]
19 %0 = getelementptr inbounds %struct.foo, %struct.foo* %this, i32 0, i32 1 ; <i64*> [#uses=1]
20 store i32 0, i32* inttoptr (i32 8 to i32*), align 8
21 br i1 %tst, label %bb.nph96, label %bb3
24 %1 = load i64, i64* %0, align 4 ; <i64> [#uses=0]
27 bb.nph96: ; preds = %entry