1*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=thumbv7-apple-ios -O0 -o - %s | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Worker; We used to accidentally create both an ARM and a Thumb ldr here. It led to an 4*9880d681SAndroid Build Coastguard Worker; assertion failure at the time, but could go all the way through to emission, 5*9880d681SAndroid Build Coastguard Worker; hence the CHECK-NOT. 6*9880d681SAndroid Build Coastguard Worker 7*9880d681SAndroid Build Coastguard Workerdefine i32 @test_thumb_ldrlit() minsize { 8*9880d681SAndroid Build Coastguard Worker; CHECK: ldr r0, LCPI0_0 9*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: ldr 10*9880d681SAndroid Build Coastguard Worker ret i32 12345678 11*9880d681SAndroid Build Coastguard Worker} 12