File: long-double-abi-align.ll

package info (click to toggle)
llvm-toolchain-14 1%3A14.0.6-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,496,180 kB
  • sloc: cpp: 5,593,972; ansic: 986,872; asm: 585,869; python: 184,223; objc: 72,530; lisp: 31,119; f90: 27,793; javascript: 9,780; pascal: 9,762; sh: 9,482; perl: 7,468; ml: 5,432; awk: 3,523; makefile: 2,538; xml: 953; cs: 573; fortran: 567
file content (104 lines) | stat: -rw-r--r-- 3,341 bytes parent folder | download | duplicates (3)
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
102
103
104
; 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, i32* %4, align 4
  store x86_fp80 %1, x86_fp80* %5, align 16
  store i32 %2, i32* %6, align 4
  %7 = bitcast i32* %4 to i8*
  call void @escape(i8* nonnull %7)
  %8 = bitcast x86_fp80* %5 to i8*
  call void @escape(i8* nonnull %8)
  %9 = bitcast i32* %6 to i8*
  call void @escape(i8* nonnull %9)
  ret void
}

declare void @escape(i8*)