]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: pru: Fix test case assembly with latest GAS
authorDimitar Dimitrov <dimitar@dinux.eu>
Mon, 12 Aug 2024 17:40:16 +0000 (20:40 +0300)
committerDimitar Dimitrov <dimitar@dinux.eu>
Mon, 12 Aug 2024 20:33:59 +0000 (23:33 +0300)
After the recent change in GAS [1], macro arguments must be quoted or
grouped with parenthesis.  Add the necessary parenthesis in order to fix
assembly errors like:
    mul.s:31: Error: too many positional arguments

[1] https://sourceware.org/pipermail/binutils/2024-July/136053.html

Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
sim/testsuite/pru/mul.s

index d62b3eab8baf0f3c80bfe08d1ea8b47052b2d781..754a129e28686957292b8ae0a50e917ea3a37178 100644 (file)
        ldi r29, 4567
        nop
        xin 0, r26, 4
-       qbne32 2f, r26, 1001 * 4567
+       qbne32 2f, r26, (1001 * 4567)
 
        # MUL: Test the pipeline emulation
        ldi r28, 1002
        ldi r29, 1003
        ldi r29, 4004
        xin 0, r26, 4
-       qbne32 2f, r26, 1002 * 1003
+       qbne32 2f, r26, (1002 * 1003)
        xin 0, r26, 4
-       qbne32 2f, r26, 1002 * 4004
+       qbne32 2f, r26, (1002 * 4004)
 
        # MUL: Test 64-bit result
        ldi32 r28, 0x12345678
@@ -62,7 +62,7 @@
        xout 0, r25, 1
 
        xin 0, r26, 4
-       qbne32 2f, r26, (1001 * 2002) + (3003 * 4004)
+       qbne32 2f, r26, ((1001 * 2002) + (3003 * 4004))
 
        # MAC: Test 64-bit result
        ldi r25, 3