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 call void @_Z7CapturePi(ptr nonnull %x)
11 declare void @_Z7CapturePi(ptr)
13 ; MSVC: movw r0, :lower16:__security_cookie
14 ; MSVC: movt r0, :upper16:__security_cookie
16 ; MSVC: str r0, [sp, #4]
17 ; MSVC: bl _Z7CapturePi
18 ; MSVC: ldr r0, [sp, #4]
19 ; MSVC: bl __security_check_cookie