1 ; RUN: llc < %s | FileCheck %s
2 ; RUN: llc -debug-only=stackmaps < %s 2>&1 | FileCheck --check-prefix=STACKMAPS %s
3 ; RUN: opt -disable-output -debugify < %s
6 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
7 target triple = "x86_64-apple-macosx10.11.0"
9 declare webkit_jscc i64 @llvm.experimental.deoptimize.i64(...)
11 define i64 @caller_1() {
12 ; CHECK-LABEL: _caller_1:
13 ; CHECK-NEXT: {{.+cfi.+}}
14 ; CHECK-NEXT: ##{{.+}}
15 ; CHECK-NEXT: pushq %rax
16 ; CHECK-NEXT: {{.+cfi.+}}
17 ; CHECK-NEXT: movl $1140457472, (%rsp) ## imm = 0x43FA0000
18 ; CHECK-NEXT: movl $42, %eax
19 ; CHECK-NEXT: callq ___llvm_deoptimize
20 ; CHECK-NEXT: {{Ltmp[0-9]+}}:
23 %v = call webkit_jscc i64(...) @llvm.experimental.deoptimize.i64(i32 42, float 500.0) [ "deopt"(i32 3) ]
27 ; STACKMAPS: Stack Maps: callsites:
28 ; STACKMAPS-NEXT: Stack Maps: callsite 2882400015
29 ; STACKMAPS-NEXT: Stack Maps: has 4 locations
30 ; STACKMAPS-NEXT: Stack Maps: Loc 0: Constant 12 [encoding: .byte 4, .byte 0, .short 8, .short 0, .short 0, .int 12]
31 ; STACKMAPS-NEXT: Stack Maps: Loc 1: Constant 0 [encoding: .byte 4, .byte 0, .short 8, .short 0, .short 0, .int 0]
32 ; STACKMAPS-NEXT: Stack Maps: Loc 2: Constant 1 [encoding: .byte 4, .byte 0, .short 8, .short 0, .short 0, .int 1]
33 ; STACKMAPS-NEXT: Stack Maps: Loc 3: Constant 3 [encoding: .byte 4, .byte 0, .short 8, .short 0, .short 0, .int 3]
34 ; STACKMAPS-NEXT: Stack Maps: has 0 live-out registers