@@ -58,58 +58,57 @@ void v1msve() {}
5858// CHECK-LABEL: @plussve() #12
5959__attribute__((target ("+sve" )))
6060void plussve () {}
61- // CHECK-LABEL: @plussveplussve2() #13
61+ // CHECK-LABEL: @plussveplussve2() #12
6262__attribute__((target ("+sve+nosve2" )))
6363void plussveplussve2 () {}
64- // CHECK-LABEL: @plussveminusnosve2() #13
64+ // CHECK-LABEL: @plussveminusnosve2() #12
6565__attribute__((target ("sve,no-sve2" )))
6666void plussveminusnosve2 () {}
67- // CHECK-LABEL: @plusfp16() #14
67+ // CHECK-LABEL: @plusfp16() #13
6868__attribute__((target ("+fp16" )))
6969void plusfp16 () {}
7070
71- // CHECK-LABEL: @all() #15
71+ // CHECK-LABEL: @all() #14
7272__attribute__((target ("cpu=neoverse-n1,tune=cortex-a710,arch=armv8.6-a+sve2" )))
7373void all () {}
74- // CHECK-LABEL: @allplusbranchprotection() #16
74+ // CHECK-LABEL: @allplusbranchprotection() #15
7575__attribute__((target ("cpu=neoverse-n1,tune=cortex-a710,arch=armv8.6-a+sve2,branch-protection=standard" )))
7676void allplusbranchprotection () {}
7777
7878// These tests check that the user facing and internal llvm name are both accepted.
79- // CHECK-LABEL: @plusnoneon() #17
79+ // CHECK-LABEL: @plusnoneon() #16
8080__attribute__((target ("+noneon" )))
8181void plusnoneon () {}
82- // CHECK-LABEL: @plusnosimd() #17
82+ // CHECK-LABEL: @plusnosimd() #16
8383__attribute__((target ("+nosimd" )))
8484void plusnosimd () {}
85- // CHECK-LABEL: @noneon() #17
85+ // CHECK-LABEL: @noneon() #16
8686__attribute__((target ("no-neon" )))
8787void noneon () {}
88- // CHECK-LABEL: @nosimd() #17
88+ // CHECK-LABEL: @nosimd() #16
8989__attribute__((target ("no-simd" )))
9090void nosimd () {}
9191
9292// This isn't part of the standard interface, but test that -arch features should not apply anything else.
93- // CHECK-LABEL: @minusarch() #18
93+ // CHECK-LABEL: @minusarch() #17
9494__attribute__((target ("no-v9.3a" )))
9595void minusarch () {}
9696
9797// CHECK: attributes #0 = { {{.*}} "target-features"="+crc,+fp-armv8,+lse,+neon,+ras,+rdm,+v8.1a,+v8.2a,+v8a" }
9898// CHECK: attributes #1 = { {{.*}} "target-features"="+crc,+fp-armv8,+fullfp16,+lse,+neon,+ras,+rdm,+sve,+v8.1a,+v8.2a,+v8a" }
9999// CHECK: attributes #2 = { {{.*}} "target-features"="+crc,+fp-armv8,+fullfp16,+lse,+neon,+ras,+rdm,+sve,+sve2,+v8.1a,+v8.2a,+v8a" }
100- // CHECK: attributes #3 = { {{.*}} "target-features"="+bf16,+complxnum,+crc,+dotprod,+fp-armv8,+fullfp16,+i8mm,+jsconv,+lse,+neon,+pauth,+ras,+rcpc,+rdm,+sve,+sve2,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8.6a,+v8a" }
101- // CHECK: attributes #4 = { {{.*}} "target-cpu"="cortex-a710" "target-features"="+bf16,+complxnum,+crc,+dotprod,+flagm,+fp-armv8,+fp16fml,+fullfp16,+i8mm,+jsconv,+lse,+mte,+neon,+pauth,+ras,+rcpc,+rdm,+sb,+sve,+sve2,+sve2-bitperm" }
100+ // CHECK: attributes #3 = { {{.*}} "target-features"="+bf16,+complxnum,+crc,+dotprod,+fp-armv8,+fp16fml,+ fullfp16,+i8mm,+jsconv,+lse,+neon,+pauth,+ras,+rcpc,+rdm,+sve,+sve2,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8.6a,+v8a" }
101+ // CHECK: attributes #4 = { {{.*}} "target-cpu"="cortex-a710" "target-features"="+bf16,+complxnum,+crc,+dotprod,+flagm,+fp-armv8,+fp16fml,+fullfp16,+i8mm,+jsconv,+lse,+mte,+neon,+pauth,+ras,+rcpc,+rdm,+sb,+sve,+sve2,+sve2-bitperm,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+v9a " }
102102// CHECK: attributes #5 = { {{.*}} "tune-cpu"="cortex-a710" }
103103// CHECK: attributes #6 = { {{.*}} "target-cpu"="generic" }
104104// CHECK: attributes #7 = { {{.*}} "tune-cpu"="generic" }
105- // CHECK: attributes #8 = { {{.*}} "target-cpu"="neoverse-n1" "target-features"="+aes,+crc,+dotprod,+fp-armv8,+fullfp16,+lse,+neon,+ras,+rcpc,+rdm,+sha2,+spe,+ssbs" "tune-cpu"="cortex-a710" }
105+ // CHECK: attributes #8 = { {{.*}} "target-cpu"="neoverse-n1" "target-features"="+aes,+crc,+dotprod,+fp-armv8,+fullfp16,+lse,+neon,+ras,+rcpc,+rdm,+sha2,+spe,+ssbs,+v8.1a,+v8.2a,+v8a " "tune-cpu"="cortex-a710" }
106106// CHECK: attributes #9 = { {{.*}} "target-features"="+fp-armv8,+fullfp16,+neon,+sve" "tune-cpu"="cortex-a710" }
107- // CHECK: attributes #10 = { {{.*}} "target-cpu"="neoverse-v1" "target-features"="+aes,+bf16,+complxnum,+crc,+dotprod,+fp-armv8,+fp16fml,+fullfp16,+i8mm,+jsconv,+lse,+neon,+pauth,+rand,+ras,+rcpc,+rdm,+sha2,+sha3,+sm4,+spe,+ssbs,+sve,+sve2" }
108- // CHECK: attributes #11 = { {{.*}} "target-cpu"="neoverse-v1" "target-features"="+aes,+bf16,+complxnum,+crc,+dotprod,+fp-armv8,+fp16fml,+fullfp16,+i8mm,+jsconv,+lse,+neon,+pauth,+rand,+ras,+rcpc,+rdm,+sha2,+sha3,+sm4,+spe,+ssbs,-sve" }
107+ // CHECK: attributes #10 = { {{.*}} "target-cpu"="neoverse-v1" "target-features"="+aes,+bf16,+complxnum,+crc,+dotprod,+fp-armv8,+fp16fml,+fullfp16,+i8mm,+jsconv,+lse,+neon,+pauth,+rand,+ras,+rcpc,+rdm,+sha2,+sha3,+sm4,+spe,+ssbs,+sve,+sve2,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8a " }
108+ // CHECK: attributes #11 = { {{.*}} "target-cpu"="neoverse-v1" "target-features"="+aes,+bf16,+complxnum,+crc,+dotprod,+fp-armv8,+fp16fml,+fullfp16,+i8mm,+jsconv,+lse,+neon,+pauth,+rand,+ras,+rcpc,+rdm,+sha2,+sha3,+sm4,+spe,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8a, -sve" }
109109// CHECK: attributes #12 = { {{.*}} "target-features"="+fp-armv8,+fullfp16,+neon,+sve" }
110- // CHECK: attributes #13 = { {{.*}} "target-features"="+fp-armv8,+fullfp16,+neon,+sve,-sve2" }
111- // CHECK: attributes #14 = { {{.*}} "target-features"="+fullfp16" }
112- // CHECK: attributes #15 = { {{.*}} "target-cpu"="neoverse-n1" "target-features"="+aes,+bf16,+complxnum,+crc,+dotprod,+fp-armv8,+fullfp16,+i8mm,+jsconv,+lse,+neon,+pauth,+ras,+rcpc,+rdm,+sha2,+spe,+ssbs,+sve,+sve2,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8.6a,+v8a" "tune-cpu"="cortex-a710" }
113- // CHECK: attributes #16 = { {{.*}} "branch-target-enforcement"="true" "guarded-control-stack"="true" {{.*}} "target-features"="+aes,+bf16,+complxnum,+crc,+dotprod,+fp-armv8,+fullfp16,+i8mm,+jsconv,+lse,+neon,+pauth,+ras,+rcpc,+rdm,+sha2,+spe,+ssbs,+sve,+sve2,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8.6a,+v8a" "tune-cpu"="cortex-a710" }
114- // CHECK: attributes #17 = { {{.*}} "target-features"="-neon" }
115- // CHECK: attributes #18 = { {{.*}} "target-features"="-v9.3a" }
110+ // CHECK: attributes #13 = { {{.*}} "target-features"="+fp-armv8,+fullfp16,+neon" }
111+ // CHECK: attributes #14 = { {{.*}} "target-cpu"="neoverse-n1" "target-features"="+aes,+bf16,+complxnum,+crc,+dotprod,+fp-armv8,+fullfp16,+i8mm,+jsconv,+lse,+neon,+pauth,+ras,+rcpc,+rdm,+sha2,+spe,+ssbs,+sve,+sve2,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8.6a,+v8a" "tune-cpu"="cortex-a710" }
112+ // CHECK: attributes #15 = { {{.*}} "branch-target-enforcement"="true" "guarded-control-stack"="true" {{.*}} "target-features"="+aes,+bf16,+complxnum,+crc,+dotprod,+fp-armv8,+fullfp16,+i8mm,+jsconv,+lse,+neon,+pauth,+ras,+rcpc,+rdm,+sha2,+spe,+ssbs,+sve,+sve2,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8.6a,+v8a" "tune-cpu"="cortex-a710" }
113+ // CHECK-NOT: attributes #16 = {{.*}} "target-features"
114+ // CHECK: attributes #17 = { {{.*}} "target-features"="-v9.3a" }
0 commit comments