Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s | FileCheck %s
      2 ; RUN: llc -debug-only=stackmaps < %s 2>&1 | FileCheck --check-prefix=STACKMAPS %s
      3 ; REQUIRES: asserts
      4 
      5 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
      6 target triple = "x86_64-apple-macosx10.11.0"
      7 
      8 declare webkit_jscc i64  @llvm.experimental.deoptimize.i64(...)
      9 
     10 define i64 @caller_1() {
     11 ; CHECK-LABEL: _caller_1:
     12 ; CHECK-NEXT: {{.+cfi.+}}
     13 ; CHECK-NEXT: ##{{.+}}
     14 ; CHECK-NEXT: pushq	%rax
     15 ; CHECK-NEXT: {{Ltmp[0-9]+}}:
     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]+}}:
     21 
     22 entry:
     23   %v = call webkit_jscc i64(...) @llvm.experimental.deoptimize.i64(i32 42, float 500.0) [ "deopt"(i32 3) ]
     24   ret i64 %v
     25 }
     26 
     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 8, .short 0, .int 12]
     31 ; STACKMAPS-NEXT: Stack Maps: 		Loc 1: Constant 0	[encoding: .byte 4, .byte 8, .short 0, .int 0]
     32 ; STACKMAPS-NEXT: Stack Maps: 		Loc 2: Constant 1	[encoding: .byte 4, .byte 8, .short 0, .int 1]
     33 ; STACKMAPS-NEXT: Stack Maps: 		Loc 3: Constant 3	[encoding: .byte 4, .byte 8, .short 0, .int 3]
     34 ; STACKMAPS-NEXT: Stack Maps: 	has 0 live-out registers
     35