qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3] Hexagon: add PC alignment check and exception


From: Richard Henderson
Subject: Re: [PATCH v3] Hexagon: add PC alignment check and exception
Date: Tue, 30 Apr 2024 08:52:36 -0700
User-agent: Mozilla Thunderbird

On 4/30/24 07:25, Matheus Tavares Bernardino wrote:
+void test_multi_cof(void)
+{
+    asm volatile(
+        "p0 = cmp.eq(r0, r0)\n"
+        "{\n"
+        "    if (p0) jump test_multi_cof_unaligned\n"
+        "    jump 1f\n"
+        "}\n"
+        "1: nop\n"
+        : : : "p0");
+}

I will say you could just add the label to the end of the asm here, like

        .byte 0
test_multi_cof_unaligned:

rather than use a separate source file.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]