Index: cmake/config-ix.cmake =================================================================== --- cmake/config-ix.cmake +++ cmake/config-ix.cmake @@ -180,7 +180,7 @@ filter_available_targets(LSAN_COMMON_SUPPORTED_ARCH ${SANITIZER_COMMON_SUPPORTED_ARCH}) filter_available_targets(MSAN_SUPPORTED_ARCH x86_64) -filter_available_targets(PROFILE_SUPPORTED_ARCH x86_64 i386 i686 arm mips mips64 mipsel mips64el aarch64) +filter_available_targets(PROFILE_SUPPORTED_ARCH x86_64 i386 i686 arm mips mips64 mipsel mips64el aarch64 powerpc64 powerpc64le) filter_available_targets(TSAN_SUPPORTED_ARCH x86_64) filter_available_targets(UBSAN_SUPPORTED_ARCH x86_64 i386 i686 arm aarch64 mips mipsel) Index: test/profile/instrprof-without-libc.c =================================================================== --- test/profile/instrprof-without-libc.c +++ test/profile/instrprof-without-libc.c @@ -17,7 +17,7 @@ int __llvm_profile_write_buffer(char *); int write_buffer(uint64_t, const char *); int main(int argc, const char *argv[]) { - // CHECK-LABEL: define i32 @main( + // CHECK-LABEL: define {{.*}} @main( // CHECK: br i1 %{{.*}}, label %{{.*}}, label %{{.*}}, !prof !1 if (argc < 2) return 1; Index: test/profile/instrprof-write-file-only.c =================================================================== --- test/profile/instrprof-write-file-only.c +++ test/profile/instrprof-write-file-only.c @@ -9,7 +9,7 @@ void __llvm_profile_set_filename(const char *); int foo(int); int main(int argc, const char *argv[]) { - // CHECK-LABEL: define i32 @main + // CHECK-LABEL: define {{.*}} @main( // CHECK: br i1 %{{.*}}, label %{{.*}}, label %{{.*}}, !prof !1 if (argc > 1) return 1; @@ -28,7 +28,7 @@ // There should be no profiling information for @foo, since it was called // after the profile was written (and the atexit was suppressed by defining // profile_runtime). - // CHECK-LABEL: define i32 @foo + // CHECK-LABEL: define {{.*}} @foo( // CHECK: br i1 %{{.*}}, label %{{.*}}, label %{{[^,]+$}} return X <= 0 ? -X : X; } Index: test/profile/instrprof-write-file.c =================================================================== --- test/profile/instrprof-write-file.c +++ test/profile/instrprof-write-file.c @@ -9,7 +9,7 @@ void __llvm_profile_set_filename(const char *); int foo(int); int main(int argc, const char *argv[]) { - // CHECK-LABEL: define i32 @main + // CHECK-LABEL: define {{.*}} @main( // CHECK: br i1 %{{.*}}, label %{{.*}}, label %{{.*}}, !prof !1 if (argc < 2) return 1; @@ -25,7 +25,7 @@ return Ret; } int foo(int X) { - // CHECK-LABEL: define i32 @foo + // CHECK-LABEL: define {{.*}} @foo( // CHECK1: br i1 %{{.*}}, label %{{.*}}, label %{{[^,]+$}} // CHECK2: br i1 %{{.*}}, label %{{.*}}, label %{{.*}}, !prof !2 return X <= 0 ? -X : X;