1*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a8 %s -o - | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=arm-eabi -mattr=+v4t %s -o - | FileCheck %s -check-prefix CHECK-V4-CMP 3*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=arm-eabi -mattr=+v4t %s -o - | FileCheck %s -check-prefix CHECK-V4-BX 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Workerdefine i32 @t1(i32 %a, i32 %b, i32 %c, i32 %d) { 6*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: t1: 7*9880d681SAndroid Build Coastguard Worker; CHECK: cmp r2, #7 8*9880d681SAndroid Build Coastguard Worker; CHECK: cmpne r2, #1 9*9880d681SAndroid Build Coastguard Worker switch i32 %c, label %cond_next [ 10*9880d681SAndroid Build Coastguard Worker i32 1, label %cond_true 11*9880d681SAndroid Build Coastguard Worker i32 7, label %cond_true 12*9880d681SAndroid Build Coastguard Worker ] 13*9880d681SAndroid Build Coastguard Worker 14*9880d681SAndroid Build Coastguard Workercond_true: 15*9880d681SAndroid Build Coastguard Worker; CHECK: addne r0 16*9880d681SAndroid Build Coastguard Worker; CHECK: bxne 17*9880d681SAndroid Build Coastguard Worker %tmp12 = add i32 %a, 1 18*9880d681SAndroid Build Coastguard Worker %tmp1518 = add i32 %tmp12, %b 19*9880d681SAndroid Build Coastguard Worker ret i32 %tmp1518 20*9880d681SAndroid Build Coastguard Worker 21*9880d681SAndroid Build Coastguard Workercond_next: 22*9880d681SAndroid Build Coastguard Worker %tmp15 = add i32 %b, %a 23*9880d681SAndroid Build Coastguard Worker ret i32 %tmp15 24*9880d681SAndroid Build Coastguard Worker} 25*9880d681SAndroid Build Coastguard Worker 26*9880d681SAndroid Build Coastguard Worker; CHECK-V4-CMP: cmpne 27*9880d681SAndroid Build Coastguard Worker; CHECK-V4-CMP-NOT: cmpne 28*9880d681SAndroid Build Coastguard Worker 29*9880d681SAndroid Build Coastguard Worker; CHECK-V4-BX: bx 30*9880d681SAndroid Build Coastguard Worker; CHECK-V4-BX: bx 31*9880d681SAndroid Build Coastguard Worker; CHECK-V4-BX-NOT: bx 32*9880d681SAndroid Build Coastguard Worker 33