File: long-double-abi-align.ll

package info (click to toggle)
llvm-toolchain-17 1%3A17.0.6-22
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,799,624 kB
  • sloc: cpp: 6,428,607; ansic: 1,383,196; asm: 793,408; python: 223,504; objc: 75,364; f90: 60,502; lisp: 33,869; pascal: 15,282; sh: 9,684; perl: 7,453; ml: 4,937; awk: 3,523; makefile: 2,889; javascript: 2,149; xml: 888; fortran: 619; cs: 573
file content (101 lines) | stat: -rw-r--r-- 3,238 bytes parent folder | download | duplicates (12)
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --no_x86_scrub_sp --no_x86_scrub_mem_shuffle
; RUN: llc < %s -mtriple=i386-pc-windows-msvc | FileCheck %s --check-prefix=MSVC
; RUN: llc < %s -mtriple=i386-pc-mingw32 | FileCheck %s --check-prefix=MINGW
; RUN: llc < %s -mtriple=i386-pc-linux-gnu | FileCheck %s --check-prefix=LINUX
; RUN: llc < %s -mtriple=i386--apple-darwin  | FileCheck %s --check-prefix=DARWIN

define void @foo(i32 %0, x86_fp80 %1, i32 %2) nounwind {
; MSVC-LABEL: foo:
; MSVC:       # %bb.0:
; MSVC-NEXT:    pushl %ebp
; MSVC-NEXT:    movl %esp, %ebp
; MSVC-NEXT:    andl $-16, %esp
; MSVC-NEXT:    subl $32, %esp
; MSVC-NEXT:    fldt 24(%ebp)
; MSVC-NEXT:    fstpt (%esp)
; MSVC-NEXT:    leal 8(%ebp), %eax
; MSVC-NEXT:    pushl %eax
; MSVC-NEXT:    calll _escape
; MSVC-NEXT:    addl $4, %esp
; MSVC-NEXT:    movl %esp, %eax
; MSVC-NEXT:    pushl %eax
; MSVC-NEXT:    calll _escape
; MSVC-NEXT:    addl $4, %esp
; MSVC-NEXT:    leal 40(%ebp), %eax
; MSVC-NEXT:    pushl %eax
; MSVC-NEXT:    calll _escape
; MSVC-NEXT:    addl $4, %esp
; MSVC-NEXT:    movl %ebp, %esp
; MSVC-NEXT:    popl %ebp
; MSVC-NEXT:    retl
;
; MINGW-LABEL: foo:
; MINGW:       # %bb.0:
; MINGW-NEXT:    pushl %ebp
; MINGW-NEXT:    movl %esp, %ebp
; MINGW-NEXT:    andl $-16, %esp
; MINGW-NEXT:    subl $32, %esp
; MINGW-NEXT:    fldt 12(%ebp)
; MINGW-NEXT:    fstpt (%esp)
; MINGW-NEXT:    leal 8(%ebp), %eax
; MINGW-NEXT:    pushl %eax
; MINGW-NEXT:    calll _escape
; MINGW-NEXT:    addl $4, %esp
; MINGW-NEXT:    movl %esp, %eax
; MINGW-NEXT:    pushl %eax
; MINGW-NEXT:    calll _escape
; MINGW-NEXT:    addl $4, %esp
; MINGW-NEXT:    leal 24(%ebp), %eax
; MINGW-NEXT:    pushl %eax
; MINGW-NEXT:    calll _escape
; MINGW-NEXT:    addl $4, %esp
; MINGW-NEXT:    movl %ebp, %esp
; MINGW-NEXT:    popl %ebp
; MINGW-NEXT:    retl
;
; LINUX-LABEL: foo:
; LINUX:       # %bb.0:
; LINUX-NEXT:    subl $28, %esp
; LINUX-NEXT:    fldt 36(%esp)
; LINUX-NEXT:    fstpt 16(%esp)
; LINUX-NEXT:    leal 32(%esp), %eax
; LINUX-NEXT:    movl %eax, (%esp)
; LINUX-NEXT:    calll escape@PLT
; LINUX-NEXT:    leal 16(%esp), %eax
; LINUX-NEXT:    movl %eax, (%esp)
; LINUX-NEXT:    calll escape@PLT
; LINUX-NEXT:    leal 48(%esp), %eax
; LINUX-NEXT:    movl %eax, (%esp)
; LINUX-NEXT:    calll escape@PLT
; LINUX-NEXT:    addl $28, %esp
; LINUX-NEXT:    retl
;
; DARWIN-LABEL: foo:
; DARWIN:       ## %bb.0:
; DARWIN-NEXT:    subl $44, %esp
; DARWIN-NEXT:    fldt 64(%esp)
; DARWIN-NEXT:    fstpt 16(%esp)
; DARWIN-NEXT:    leal 48(%esp), %eax
; DARWIN-NEXT:    movl %eax, (%esp)
; DARWIN-NEXT:    calll _escape
; DARWIN-NEXT:    leal 16(%esp), %eax
; DARWIN-NEXT:    movl %eax, (%esp)
; DARWIN-NEXT:    calll _escape
; DARWIN-NEXT:    leal 80(%esp), %eax
; DARWIN-NEXT:    movl %eax, (%esp)
; DARWIN-NEXT:    calll _escape
; DARWIN-NEXT:    addl $44, %esp
; DARWIN-NEXT:    retl
  %4 = alloca i32, align 4
  %5 = alloca x86_fp80, align 16
  %6 = alloca i32, align 4
  store i32 %0, ptr %4, align 4
  store x86_fp80 %1, ptr %5, align 16
  store i32 %2, ptr %6, align 4
  call void @escape(ptr nonnull %4)
  call void @escape(ptr nonnull %5)
  call void @escape(ptr nonnull %6)
  ret void
}

declare void @escape(ptr)