We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b8db01 commit 69933f1Copy full SHA for 69933f1
lldb/test/API/tools/lldb-server/main.cpp
@@ -128,6 +128,15 @@ static void swap_chars() {
128
:
129
: "r"('0'), "r"('1'), "r"(&g_c1), "r"(&g_c2)
130
: "memory");
131
+#elif defined(__riscv)
132
+ asm volatile("sb %1, (%2)\n\t"
133
+ "sb %0, (%3)\n\t"
134
+ "sb %0, (%2)\n\t"
135
+ "sb %1, (%3)\n\t"
136
+ :
137
+ : "r"('0'), "r"('1'), "r"(&g_c1), "r"(&g_c2)
138
+ : "memory");
139
+
140
#else
141
#warning This may generate unpredictible assembly and cause the single-stepping test to fail.
142
#warning Please add appropriate assembly for your target.
0 commit comments