File: stackmap-undef-operand-anyregcc.mir

package info (click to toggle)
llvm-toolchain-20 1%3A20.1.6-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,111,304 kB
  • sloc: cpp: 7,438,677; ansic: 1,393,822; asm: 1,012,926; python: 241,650; f90: 86,635; objc: 75,479; lisp: 42,144; pascal: 17,286; sh: 10,027; ml: 5,082; perl: 4,730; awk: 3,523; makefile: 3,349; javascript: 2,251; xml: 892; fortran: 672
file content (77 lines) | stat: -rw-r--r-- 2,444 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# RUN: llc -mtriple=x86_64-apple-darwin -start-after=virtregrewriter -o - %s | FileCheck %s

# Check there's no assertion for anyregcc with an undef operand to a stackmap.

# CHECK: __LLVM_StackMaps:
# CHECK-NEXT: .byte	3
# CHECK-NEXT: .byte	0
# CHECK-NEXT: .short	0
# CHECK-NEXT: .long	1
# CHECK-NEXT: .long	0
# CHECK-NEXT: .long	1
# CHECK-NEXT: .quad	_undef_anyregcc_patchpoint
# CHECK-NEXT: .quad	8
# CHECK-NEXT: .quad	1
# CHECK-NEXT: .quad	12
# CHECK-NEXT: .long	Ltmp0-_undef_anyregcc_patchpoint
# CHECK-NEXT: .short	0
# CHECK-NEXT: .short	2
# CHECK-NEXT: .byte	1
# CHECK-NEXT: .byte	0
# CHECK-NEXT: .short	8
# CHECK-NEXT: .short	0
# CHECK-NEXT: .short	0
# CHECK-NEXT: .long	0
# CHECK-NEXT: .byte	1
# CHECK-NEXT: .byte	0
# CHECK-NEXT: .short	8
# CHECK-NEXT: .short	0
# CHECK-NEXT: .short	0
# CHECK-NEXT: .long	0
# CHECK-NEXT: .p2align	3, 0x0
# CHECK-NEXT: .short	0
# CHECK-NEXT: .short	7
# CHECK-NEXT: .short	0
# CHECK-NEXT: .byte	0
# CHECK-NEXT: .byte	8
# CHECK-NEXT: .short	3
# CHECK-NEXT: .byte	0
# CHECK-NEXT: .byte	8
# CHECK-NEXT: .short	7
# CHECK-NEXT: .byte	0
# CHECK-NEXT: .byte	8
# CHECK-NEXT: .short	12
# CHECK-NEXT: .byte	0
# CHECK-NEXT: .byte	8
# CHECK-NEXT: .short	13
# CHECK-NEXT: .byte	0
# CHECK-NEXT: .byte	8
# CHECK-NEXT: .short	14
# CHECK-NEXT: .byte	0
# CHECK-NEXT: .byte	8
# CHECK-NEXT: .short	15
# CHECK-NEXT: .byte	0
# CHECK-NEXT: .byte	8
# CHECK-NEXT: .p2align	3
---
name:  undef_anyregcc_patchpoint
tracksRegLiveness: true
frameInfo:
  hasPatchPoint:   true
  hasCalls:        true
  adjustsStack:    true
fixedStack:
  - { id: 0, type: default, offset: 72, size: 8, alignment: 8, stack-id: default,
      isImmutable: true, isAliased: false, callee-saved-register: '', callee-saved-restored: true,
      debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
body:             |
  bb.0:
    liveins: $rcx, $rdi, $rdx, $rsi, $r8, $r9

    ADJCALLSTACKDOWN64 0, 0, 0, implicit-def dead $rsp, implicit-def dead $eflags, implicit-def dead $ssp, implicit $rsp, implicit $ssp
    dead renamable $rax = MOV64rm %fixed-stack.0, 1, $noreg, 0, $noreg :: (load (s64) from %fixed-stack.0)
    renamable $rax = PATCHPOINT 12, 15, 0, 1, 13, undef renamable $rax, csr_64_allregs, implicit-def dead early-clobber $r11, implicit-def $rsp, implicit-def $ssp
    ADJCALLSTACKUP64 0, 0, implicit-def dead $rsp, implicit-def dead $eflags, implicit-def dead $ssp, implicit $rsp, implicit $ssp
    RET 0, $rax

...