mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 10:26:05 +00:00

Summary: Asm goto is not supported by SLH. Warn if an instance of asm goto is detected while SLH is enabled. Test included. Reviewed By: jyu2 Differential Revision: https://reviews.llvm.org/D79743
6 lines
212 B
C++
6 lines
212 B
C++
// RUN: %clang_cc1 -mspeculative-load-hardening -fsyntax-only -verify %s
|
|
|
|
void f() {
|
|
__asm goto("movl %ecx, %edx"); // expected-warning {{Speculative load hardening does not protect functions with asm goto}}
|
|
}
|