Allow SymbolUserOpInterface operators to be used in RemoveDeadValues Pass (#117405)
[llvm-project.git] / llvm / test / CodeGen / SystemZ / Large / large-ada-01.py
blob86d3af13232ada24e4dbb07f0c511e0084e739bc
1 # Test code generation for retrieving function descriptors
2 # from the ADA when the ADA is extremely large and forces the
3 # generation of a different instruction sequence
4 # RUN: %python %s | llc -mtriple=s390x-ibm-zos -O2 | FileCheck %s
6 # CHECK: llilf 1,{{[0-9]+}}
7 # CHECK-NEXT: la 1,0(1,8)
9 from __future__ import print_function
11 num_calls = 35000
13 print("define hidden signext i32 @main() {")
14 print("entry:")
16 for i in range(num_calls):
17 print(" call void @foo%d()" % i)
19 print(" call void @bar(ptr noundef @foo)")
20 print("ret i32 0")
21 print("}")
23 for i in range(num_calls):
24 print("declare void @foo%d(...)" % i)
26 print("declare void @bar(ptr noundef)")
27 print("define internal void @foo() {")
28 print("entry:")
29 print(" ret void")
30 print(" }")