]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: arm: Add another expected output in vdupq_n_f32.c
authorChristophe Lyon <christophe.lyon@arm.com>
Mon, 26 Jan 2026 14:25:04 +0000 (14:25 +0000)
committerChristophe Lyon <christophe.lyon@arm.com>
Tue, 27 Jan 2026 14:43:04 +0000 (14:43 +0000)
Depending on how GCC was configured, default -mtune parameter can load
the floating-point constant using either:
    movw    r3, #52429
    movt    r3, 16268
    or
    ldr     r3, .L4

Update the expected code to accept both versions.

Tested on:
- arm-linux-gnueabihf --with-tune=cortex-a9 --with-arch=armv7-a
- arm-none-eabi --with-cpu=cortex-m0
- arm-none-eabi --with-cpu=cortex-m55

2026-01-26  Christophe Lyon  <christophe.lyon@arm.com>

gcc/testsuite/
* gcc.target/arm/mve/intrinsics/vdupq_n_f32.c: Update expected
code.

gcc/testsuite/gcc.target/arm/mve/intrinsics/vdupq_n_f32.c

index 81c2e29f5e50860f99312a6a504609a12e6a3c59..6a01ce47b6df629c337aba7aed6714e781926c5c 100644 (file)
@@ -24,7 +24,12 @@ foo (float32_t a)
 /*
 **foo1:
 **     ...
+** (
 **     ldr     r[0-9]+, .L.*
+** |
+**     movw    (r[0-9]+), #52429
+**     movt    \1, 16268
+** )
 **     vdup.32 q[0-9]+, r[0-9]+
 **     ...
 */