brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 35c5b30 Raw
49 lines · plain
1; RUN: opt < %s -passes=globalopt -S -enable-coldcc-stress-test -mtriple=powerpc64le-unknown-linux-gnu | FileCheck %s -check-prefix=COLDCC2; RUN: opt < %s -passes=globalopt -S | FileCheck %s -check-prefix=CHECK3 4define internal i32 @callee_default(ptr %m) {5; COLDCC-LABEL: define internal coldcc i32 @callee_default6; CHECK-LABEL: define internal fastcc i32 @callee_default7  %v = load i32, ptr %m8  ret i32 %v9}10 11define internal fastcc i32 @callee_fastcc(ptr %m) {12; COLDCC-LABEL: define internal fastcc i32 @callee_fastcc13; CHECK-LABEL: define internal fastcc i32 @callee_fastcc14  %v = load i32, ptr %m15  ret i32 %v16}17 18define internal coldcc i32 @callee_coldcc(ptr %m) {19; COLDCC-LABEL: define internal coldcc i32 @callee_coldcc20; CHECK-LABEL: define internal coldcc i32 @callee_coldcc21  %v = load i32, ptr %m22  ret i32 %v23}24 25define i32 @callee(ptr %m) {26  %v = load i32, ptr %m27  ret i32 %v28}29 30define void @caller() {31  %m = alloca i3232  call i32 @callee_default(ptr %m)33  call fastcc i32 @callee_fastcc(ptr %m)34  call coldcc i32 @callee_coldcc(ptr %m)35  call i32 @callee(ptr %m)36  ret void37}38 39; COLDCC-LABEL: define void @caller()40; COLDCC: call coldcc i32 @callee_default41; COLDCC: call fastcc i32 @callee_fastcc42; COLDCC: call coldcc i32 @callee_coldcc43; COLDCC: call i32 @callee44; CHECK-LABEL: define void @caller()45; CHECK: call fastcc i32 @callee_default46; CHECK: call fastcc i32 @callee_fastcc47; CHECK: call coldcc i32 @callee_coldcc48; CHECK: call i32 @callee49