1 // RUN: %clang_cc1 -triple s390x-ibm-zos -O2 -emit-llvm %s -o - | FileCheck %s --check-prefix=X64
3 void *__malloc31(size_t);
6 // X64-LABEL: define {{.*}} i32 @test_1()
13 a
= (int *__ptr32
)__malloc31(sizeof(int) * 10);
17 for (i
= 0; i
< 10; ++i
) {
23 for (i
= 0; i
< 10; ++i
) {
27 for (i
= 0; i
< 10; ++i
) {
31 return (sum1
+ sum2
+ sum3
);
35 // X64-LABEL: define {{.*}} i32 @test_2()
37 int *a
= (int *)__malloc31(sizeof(int));
44 // Test should return 4
49 // X64-LABEL: define {{.*}} i32 @test_3()
51 int *a
= (int *)__malloc31(sizeof(int));
57 // Test should return 4
62 // X64-LABEL: define {{.*}} i32 @test_4()
64 int *a
= (int *)__malloc31(sizeof(int));
65 float *d
= (float *)__malloc31(sizeof(float));
81 // Test should return 1
82 return (b
== c
&& e
== f
);