File: x32-movtopush64.ll

package info (click to toggle)
llvm-toolchain-13 1%3A13.0.1-11
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,418,840 kB
  • sloc: cpp: 5,290,826; ansic: 996,570; asm: 544,593; python: 188,212; objc: 72,027; lisp: 30,291; f90: 25,395; sh: 24,898; javascript: 9,780; pascal: 9,398; perl: 7,484; ml: 5,432; awk: 3,523; makefile: 2,913; xml: 953; cs: 573; fortran: 539
file content (44 lines) | stat: -rw-r--r-- 1,373 bytes parent folder | download | duplicates (15)
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
; RUN: llc < %s -mtriple=x86_64-linux-gnux32 | FileCheck %s

declare void @bar(i32*, i32*, i32*, i32*, i32*, i64*, i32, i32, i32)

; Function Attrs: nounwind uwtable
define void @foo() {
entry:
  %i1 = alloca i32, align 4
  %i2 = alloca i32, align 4
  %i3 = alloca i32, align 4
  %i4 = alloca i32, align 4
  %i5 = alloca i32, align 4
  %i6 = alloca i64, align 8
  %0 = bitcast i32* %i1 to i8*
  store i32 1, i32* %i1, align 4
; CHECK: movl $1, 28(%esp)
  %1 = bitcast i32* %i2 to i8*
  store i32 2, i32* %i2, align 4
; CHECK-NEXT: movl $2, 24(%esp)
  %2 = bitcast i32* %i3 to i8*
  store i32 3, i32* %i3, align 4
; CHECK-NEXT: movl $3, 20(%esp)
  %3 = bitcast i32* %i4 to i8*
  store i32 4, i32* %i4, align 4
; CHECK-NEXT: movl $4, 16(%esp)
  %4 = bitcast i32* %i5 to i8*
  store i32 5, i32* %i5, align 4
; CHECK-NEXT: movl $5, 12(%esp)
  %5 = bitcast i64* %i6 to i8*
  store i64 6, i64* %i6, align 8
; CHECK-NEXT: movq $6, 32(%esp)
; CHECK-NEXT: subl $8, %esp
; CHECK: leal 36(%rsp), %edi
; CHECK-NEXT: leal 32(%rsp), %esi
; CHECK-NEXT: leal 28(%rsp), %edx
; CHECK-NEXT: leal 24(%rsp), %ecx
; CHECK-NEXT: leal 20(%rsp), %r8d
; CHECK-NEXT: leal 40(%rsp), %r9d
; CHECK: pushq $0
; CHECK: pushq $0
; CHECK: pushq $0
  call void @bar(i32* nonnull %i1, i32* nonnull %i2, i32* nonnull %i3, i32* nonnull %i4, i32* nonnull %i5, i64* nonnull %i6, i32 0, i32 0, i32 0)
  ret void
}