[ASan][Test] Fix globals test on 32-bit architectures
authorMarco Elver <elver@google.com>
Sat, 6 Jun 2020 09:18:46 +0000 (11:18 +0200)
committerMarco Elver <elver@google.com>
Sat, 6 Jun 2020 09:23:16 +0000 (11:23 +0200)
Buildbot reports failures on e.g. armv7 and thumbv7. Fix the test by
expecting either i32 or i64 for the size-argument.

clang/test/CodeGen/asan-globals.cpp

index f02bd17..a5374ca 100644 (file)
@@ -23,8 +23,8 @@ void func() {
 // ASAN-NEXT: call void @__asan_version_mismatch_check
 // KASAN-NOT: call void @__asan_init
 // KASAN-NOT: call void @__asan_version_mismatch_check
-// ASAN-NEXT: call void @__asan_register_globals(i64 ptrtoint ({{.*}}, i64 6)
-// KASAN-NEXT: call void @__asan_register_globals(i64 ptrtoint ({{.*}}, i64 5)
+// ASAN-NEXT: call void @__asan_register_globals({{.*}}, i{{32|64}} 6)
+// KASAN-NEXT: call void @__asan_register_globals({{.*}}, i{{32|64}} 5)
 // CHECK-NEXT: ret void
 
 // CHECK-LABEL: define internal void @asan.module_dtor