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
4 define void @_Z1fv() sspreq {
6 %x = alloca i32, align 4
7 %0 = bitcast i32* %x to i8*
8 call void @_Z7CapturePi(i32* nonnull %x)
12 declare void @_Z7CapturePi(i32*)
14 ; MSVC: movw r0, :lower16:__security_cookie
15 ; MSVC: movt r0, :upper16:__security_cookie
17 ; MSVC: str r0, [sp, #4]
18 ; MSVC: bl _Z7CapturePi
19 ; MSVC: ldr r0, [sp, #4]
20 ; MSVC: bl __security_check_cookie