forked from OSchip/llvm-project
Fix the CodeGen/ppc64-varargs-struct.c test case to tolerate release builds.
llvm-svn: 165247
This commit is contained in:
parent
5e7d792689
commit
7af848bf1f
|
@ -13,19 +13,19 @@ void testva (int n, ...)
|
|||
va_list ap;
|
||||
|
||||
struct x t = va_arg (ap, struct x);
|
||||
// CHECK: bitcast i8* %ap.cur{{[0-9]*}} to %struct.x*
|
||||
// CHECK: bitcast i8* %{{[a-z.0-9]*}} to %struct.x*
|
||||
// CHECK: bitcast %struct.x* %t to i8*
|
||||
// CHECK: bitcast %struct.x* %{{[0-9]+}} to i8*
|
||||
// CHECK: call void @llvm.memcpy
|
||||
|
||||
__int128_t u = va_arg (ap, __int128_t);
|
||||
// CHECK: ptrtoint i8* %ap.cur{{[0-9]*}} to i64
|
||||
// CHECK: ptrtoint i8* %{{[a-z.0-9]*}} to i64
|
||||
// CHECK: add i64 %{{[0-9]+}}, 15
|
||||
// CHECK: and i64 %{{[0-9]+}}, 4294967280
|
||||
// CHECK: inttoptr i64 %{{[0-9]+}} to i8*
|
||||
|
||||
int v = va_arg (ap, int);
|
||||
// CHECK: ptrtoint i8* %ap.cur{{[0-9]*}} to i64
|
||||
// CHECK: ptrtoint i8* %{{[a-z.0-9]*}} to i64
|
||||
// CHECK: add i64 %{{[0-9]+}}, 4
|
||||
// CHECK: inttoptr i64 %{{[0-9]+}} to i8*
|
||||
// CHECK: bitcast i8* %{{[0-9]+}} to i32*
|
||||
|
|
Loading…
Reference in New Issue