[clang] [profile] runtime counter relocation is needed on windows-msvc targets (PR #127858)

Anh Tuyen Tran via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 20 08:10:40 PST 2025


================
@@ -6,6 +6,7 @@
 
 // RUN: %clang --target=powerpc64-ibm-aix -fprofile-generate -fprofile-continuous -### -c %s 2>&1 | FileCheck %s --check-prefix=RELOC
 // RUN: %clang --target=x86_64-unknown-fuchsia -fprofile-generate -fprofile-continuous -### -c %s 2>&1 | FileCheck %s --check-prefix=RELOC
+// RUN: %clang --target=x86_64-windows-msvc -fprofile-generate -fprofile-continuous -### -c %s 2>&1 | FileCheck %s --check-prefix=RELOC
----------------
anhtuyenibm wrote:

FYI: I got to the above target based on 
```
; RUN: llc < %s -mtriple=i686-windows-msvc | FileCheck %s --check-prefix=WIN32
; RUN: llc < %s -mtriple=x86_64-windows-msvc | FileCheck %s --check-prefix=WIN64
```
https://github.com/llvm/llvm-project/blob/8363b0a6bab041b54316962e3e8948098148baeb/llvm/test/CodeGen/X86/extern_weak.ll#L4

https://github.com/llvm/llvm-project/pull/127858


More information about the cfe-commits mailing list