
https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html#GenericOperandmodifiers provides the `c` and `cc` modifiers. GCC 15 introduces the `cc` modifier which does the same as `c`. This patch lets Clang handle this for compatibility.
11 lines
423 B
C++
11 lines
423 B
C++
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu %s -verify
|
|
// expected-no-diagnostics
|
|
|
|
void func();
|
|
void func2();
|
|
|
|
bool func3() {
|
|
__asm__("%cc0 = %c1" : : "X"(func), "X"(func2));
|
|
return func2 == func;
|
|
}
|