1 ; RUN: llc -mtriple=thumbv6m-eabi -verify-machineinstrs %s -o - | FileCheck %s
2 target datalayout = "e-m:e-p:32:32-i1:8:32-i8:8:32-i16:16:32-i64:64-v128:64:128-a:0:32-n32-S64"
3 target triple = "thumbv6m-none--eabi"
5 %struct.S = type { i32, i32 }
7 @s = common global %struct.S zeroinitializer, align 4
12 ; CHECK: ldm r[[BASE:[0-9]]],
13 ; CHECK-NOT: subs r[[BASE]]
14 %0 = load i32, ptr @s, align 4
15 %1 = load i32, ptr getelementptr inbounds (%struct.S, ptr @s, i32 0, i32 1), align 4
16 %cmp = icmp sgt i32 %0, %1
18 %cond.p = select i1 %cmp, i32 %1, i32 %2
19 %cond = add i32 %cond.p, %0