1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -mtriple=amdgcn-- -passes=amdgpu-printf-runtime-binding -mcpu=fiji -S < %s | FileCheck --check-prefix=GCN %s
4 @format.str = private unnamed_addr addrspace(4) constant [8 x i8] c"arst %d\00", align 1
6 define i32 @printf(ptr addrspace(4), ...) {
13 define void @printf_caller(i32 %n) {
14 ; GCN-LABEL: @printf_caller(
15 ; GCN-NEXT: [[CALL:%.*]] = call i32 @printf(ptr addrspace(4) @format.str, i32 [[N:%.*]])
18 %call = call i32 @printf(ptr addrspace(4) @format.str, i32 %n)