1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=arm-none-linux-gnueabi 2*9880d681SAndroid Build Coastguard Worker;pr3502 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64" 5*9880d681SAndroid Build Coastguard Worker %struct.ArmPTD = type { i32 } 6*9880d681SAndroid Build Coastguard Worker %struct.RegisterSave = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 } 7*9880d681SAndroid Build Coastguard Worker %struct.SHARED_AREA = type { i32, %struct.SHARED_AREA*, %struct.SHARED_AREA*, %struct.SHARED_AREA*, %struct.ArmPTD, void (%struct.RegisterSave*)*, void (%struct.RegisterSave*)*, i32, [1024 x i8], i32, i32, i32, i32, i32, i8, i8, i16, i32, i32, i32, i32, [16 x i8], i32, i32, i32, i8, i8, i8, i32, i16, i32, i64, i32, i32, i32, i32, i32, i32, i8*, i32, [256 x i8], i32, i32, i32, [20 x i8], %struct.RegisterSave, { %struct.WorldSwitchV5 }, [4 x i32] } 8*9880d681SAndroid Build Coastguard Worker %struct.WorldSwitchV5 = type { i32, i32, i32, i32, i32, i32, i32 } 9*9880d681SAndroid Build Coastguard Worker 10*9880d681SAndroid Build Coastguard Workerdefine void @SomeCall(i32 %num) nounwind { 11*9880d681SAndroid Build Coastguard Workerentry: 12*9880d681SAndroid Build Coastguard Worker tail call void asm sideeffect "mcr p15, 0, $0, c7, c10, 4 \0A\09", "r,~{memory}"(i32 0) nounwind 13*9880d681SAndroid Build Coastguard Worker tail call void asm sideeffect "mcr p15,0,$0,c7,c14,0", "r,~{memory}"(i32 0) nounwind 14*9880d681SAndroid Build Coastguard Worker %0 = load %struct.SHARED_AREA*, %struct.SHARED_AREA** null, align 4 ; <%struct.SHARED_AREA*> [#uses=1] 15*9880d681SAndroid Build Coastguard Worker %1 = ptrtoint %struct.SHARED_AREA* %0 to i32 ; <i32> [#uses=1] 16*9880d681SAndroid Build Coastguard Worker %2 = lshr i32 %1, 20 ; <i32> [#uses=1] 17*9880d681SAndroid Build Coastguard Worker %3 = tail call i32 @SetCurrEntry(i32 %2, i32 0) nounwind ; <i32> [#uses=0] 18*9880d681SAndroid Build Coastguard Worker tail call void @ClearStuff(i32 0) nounwind 19*9880d681SAndroid Build Coastguard Worker ret void 20*9880d681SAndroid Build Coastguard Worker} 21*9880d681SAndroid Build Coastguard Worker 22*9880d681SAndroid Build Coastguard Workerdeclare i32 @SetCurrEntry(i32, i32) 23*9880d681SAndroid Build Coastguard Worker 24*9880d681SAndroid Build Coastguard Workerdeclare void @ClearStuff(i32) 25