https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110901

--- Comment #2 from Khem Raj <raj.khem at gmail dot com> ---
(In reply to Andrew Pinski from comment #1)
> Order matters. In this case -march is after -mcpu ...

It does not seem to be effective in this case. I tried to specify -mcpu after
-march and vice-versa, result is same 


% ../recipe-sysroot-native/usr/bin/aarch64-yoe-linux/aarch64-yoe-linux-gcc
-mbranch-protection=standard 
--sysroot=/mnt/b/yoe/master/build/tmp/work/cortexa72-cortexa53-crypto-yoe-linux/glibc/2.38-r0/recipe-sysroot
-fuse-ld=bfd -c -march=armv8.2-a+sve -mcpu=cortex-a72.cortex-a53  a.s
a.s: Assembler messages:
a.s:2: Error: selected processor does not support `ptrue p0.b'

../recipe-sysroot-native/usr/bin/aarch64-yoe-linux/aarch64-yoe-linux-gcc
-mbranch-protection=standard 
--sysroot=/mnt/b/yoe/master/build/tmp/work/cortexa72-cortexa53-crypto-yoe-linux/glibc/2.38-r0/recipe-sysroot
-fuse-ld=bfd -c -mcpu=cortex-a72.cortex-a53 -march=armv8.2-a+sve  a.s
a.s: Assembler messages:
a.s:2: Error: selected processor does not support `ptrue p0.b'

Reply via email to