1 # RUN: llc -o - -mtriple=x86_64-- -run-pass=x86-cf-opt %s | FileCheck %s
5 source_filename = "code_io.c"
6 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
8 @.str.8 = private unnamed_addr constant [34 x i8] c"%10s%10s%10s%10s%10s%10s%10s%10s\0A\00", align 1
9 @.str.9 = private unnamed_addr constant [6 x i8] c"nbody\00", align 1
10 @.str.10 = private unnamed_addr constant [6 x i8] c"dtime\00", align 1
11 @.str.11 = private unnamed_addr constant [4 x i8] c"eps\00", align 1
12 @.str.12 = private unnamed_addr constant [4 x i8] c"tol\00", align 1
13 @.str.13 = private unnamed_addr constant [6 x i8] c"dtout\00", align 1
14 @.str.14 = private unnamed_addr constant [6 x i8] c"tstop\00", align 1
15 @.str.15 = private unnamed_addr constant [7 x i8] c"fcells\00", align 1
16 @.str.16 = private unnamed_addr constant [6 x i8] c"NPROC\00", align 1
18 define dso_local void @initoutput() local_unnamed_addr {
20 %call1 = tail call i32 (ptr, ...) @printf(ptr nonnull dereferenceable(1) @.str.8, ptr @.str.9, ptr @.str.10, ptr @.str.11, ptr @.str.12, ptr @.str.13, ptr @.str.14, ptr @.str.15, ptr @.str.16)
24 declare dso_local i32 @printf(ptr nocapture readonly, ...) local_unnamed_addr
26 ; Function Attrs: nounwind
27 declare void @llvm.stackprotector(ptr, ptr) #0
29 attributes #0 = { nounwind }
35 exposesReturnsTwice: false
37 regBankSelected: false
40 tracksRegLiveness: true
43 - { id: 0, class: gr64, preferred-register: '' }
44 - { id: 1, class: gr64, preferred-register: '' }
45 - { id: 2, class: gr64, preferred-register: '' }
46 - { id: 3, class: gr64, preferred-register: '' }
47 - { id: 4, class: gr64, preferred-register: '' }
48 - { id: 5, class: gr64, preferred-register: '' }
49 - { id: 6, class: gr64, preferred-register: '' }
50 - { id: 7, class: gr32, preferred-register: '' }
51 - { id: 8, class: gr8, preferred-register: '' }
52 - { id: 9, class: gr32, preferred-register: '' }
55 isFrameAddressTaken: false
56 isReturnAddressTaken: false
65 maxCallFrameSize: 4294967295
66 cvBytesOfCalleeSavedRegisters: 0
67 hasOpaqueSPAdjustment: false
69 hasMustTailInVarArgFunc: false
77 machineFunctionInfo: {}
80 ADJCALLSTACKDOWN64 24, 0, 0, implicit-def dead $rsp, implicit-def dead $eflags, implicit-def dead $ssp, implicit $rsp, implicit $ssp
82 MOV64mi32 %0, 1, $noreg, 16, $noreg, @.str.16 :: (store (s64) into stack + 16)
83 MOV64mi32 %0, 1, $noreg, 8, $noreg, @.str.15 :: (store (s64) into stack + 8)
84 MOV64mi32 %0, 1, $noreg, 0, $noreg, @.str.14 :: (store (s64) into stack)
85 %1:gr64 = MOV32ri64 @.str.8
86 %2:gr64 = MOV32ri64 @.str.9
87 %3:gr64 = MOV32ri64 @.str.10
88 %4:gr64 = MOV32ri64 @.str.11
89 %5:gr64 = MOV32ri64 @.str.12
90 %6:gr64 = MOV32ri64 @.str.13
91 %7:gr32 = MOV32r0 implicit-def dead $eflags
92 %8:gr8 = COPY %7.sub_8bit
100 CALL64pcrel32 @printf, csr_64, implicit $rsp, implicit $ssp, implicit $rdi, implicit $rsi, implicit $rdx, implicit $rcx, implicit $r8, implicit $r9, implicit $al, implicit-def $rsp, implicit-def $ssp, implicit-def $eax
101 ADJCALLSTACKUP64 24, 0, implicit-def dead $rsp, implicit-def dead $eflags, implicit-def dead $ssp, implicit $rsp, implicit $ssp
104 # Call frame optimization should propagate memory operands
105 # CHECK: PUSH64i32 @{{.*}} :: (store (s64) into stack + 16)
106 # CHECK: PUSH64i32 @{{.*}} :: (store (s64) into stack + 8)
107 # CHECK: PUSH64i32 @{{.*}} :: (store (s64) into stack)