1; RUN: llc -mtriple=thumbv7-windows-msvc < %s -o - | FileCheck --check-prefix=MSVC %s 2; RUN: llc -mtriple=thumbv7-windows-msvc -O0 < %s -o - | FileCheck --check-prefix=MSVC %s 3 4define void @_Z1fv() sspreq { 5entry: 6 %x = alloca i32, align 4 7 %0 = bitcast i32* %x to i8* 8 call void @_Z7CapturePi(i32* nonnull %x) 9 ret void 10} 11 12declare void @_Z7CapturePi(i32*) 13 14; MSVC: movw r0, :lower16:__security_cookie 15; MSVC: movt r0, :upper16:__security_cookie 16; MSVC: ldr r0, [r0] 17; MSVC: str r0, [sp, #4] 18; MSVC: bl _Z7CapturePi 19; MSVC: ldr r0, [sp, #4] 20; MSVC: bl __security_check_cookie 21