Skip to content

Commit 3a4f4b7

Browse files
committed
address comments
1 parent 6f8d40d commit 3a4f4b7

File tree

3 files changed

+16
-14
lines changed

3 files changed

+16
-14
lines changed

clang/include/clang/Basic/BuiltinsX86.def

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2339,19 +2339,6 @@ TARGET_BUILTIN(__builtin_ia32_vfmaddnepbh512, "V32yV32yV32yV32y", "ncV:512:", "a
23392339
TARGET_BUILTIN(__builtin_ia32_vfmaddnepbh256, "V16yV16yV16yV16y", "ncV:256:", "avx10.2-256")
23402340
TARGET_BUILTIN(__builtin_ia32_vfmaddnepbh128, "V8yV8yV8yV8y", "ncV:128:", "avx10.2-256")
23412341

2342-
// MOVRS and AVX10.2
2343-
TARGET_BUILTIN(__builtin_ia32_vmovrsb128, "V16cV16cC*", "nV:128:", "movrs,avx10.2-256")
2344-
TARGET_BUILTIN(__builtin_ia32_vmovrsb256, "V32cV32cC*", "nV:256:", "movrs,avx10.2-256")
2345-
TARGET_BUILTIN(__builtin_ia32_vmovrsb512, "V64cV64cC*", "nV:512:", "movrs,avx10.2-512")
2346-
TARGET_BUILTIN(__builtin_ia32_vmovrsd128, "V4iV4iC*", "nV:128:", "movrs,avx10.2-256")
2347-
TARGET_BUILTIN(__builtin_ia32_vmovrsd256, "V8iV8iC*", "nV:256:", "movrs,avx10.2-256")
2348-
TARGET_BUILTIN(__builtin_ia32_vmovrsd512, "V16iV16iC*", "nV:512:", "movrs,avx10.2-512")
2349-
TARGET_BUILTIN(__builtin_ia32_vmovrsq128, "V2OiV2OiC*", "nV:128:", "movrs,avx10.2-256")
2350-
TARGET_BUILTIN(__builtin_ia32_vmovrsq256, "V4OiV4OiC*", "nV:256:", "movrs,avx10.2-256")
2351-
TARGET_BUILTIN(__builtin_ia32_vmovrsq512, "V8OiV8OiC*", "nV:512:", "movrs,avx10.2-512")
2352-
TARGET_BUILTIN(__builtin_ia32_vmovrsw128, "V8sV8sC*", "nV:128:", "movrs,avx10.2-256")
2353-
TARGET_BUILTIN(__builtin_ia32_vmovrsw256, "V16sV16sC*", "nV:256:", "movrs,avx10.2-256")
2354-
TARGET_BUILTIN(__builtin_ia32_vmovrsw512, "V32sV32sC*", "nV:512:", "movrs,avx10.2-512")
23552342
#undef BUILTIN
23562343
#undef TARGET_BUILTIN
23572344
#undef TARGET_HEADER_BUILTIN

clang/include/clang/Basic/BuiltinsX86_64.def

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,20 @@ TARGET_BUILTIN(__builtin_ia32_aand64, "vv*SOi", "n", "raoint")
161161
TARGET_BUILTIN(__builtin_ia32_aor64, "vv*SOi", "n", "raoint")
162162
TARGET_BUILTIN(__builtin_ia32_axor64, "vv*SOi", "n", "raoint")
163163

164+
// MOVRS and AVX10.2
165+
TARGET_BUILTIN(__builtin_ia32_vmovrsb128, "V16cV16cC*", "nV:128:", "movrs,avx10.2-256")
166+
TARGET_BUILTIN(__builtin_ia32_vmovrsb256, "V32cV32cC*", "nV:256:", "movrs,avx10.2-256")
167+
TARGET_BUILTIN(__builtin_ia32_vmovrsb512, "V64cV64cC*", "nV:512:", "movrs,avx10.2-512")
168+
TARGET_BUILTIN(__builtin_ia32_vmovrsd128, "V4iV4iC*", "nV:128:", "movrs,avx10.2-256")
169+
TARGET_BUILTIN(__builtin_ia32_vmovrsd256, "V8iV8iC*", "nV:256:", "movrs,avx10.2-256")
170+
TARGET_BUILTIN(__builtin_ia32_vmovrsd512, "V16iV16iC*", "nV:512:", "movrs,avx10.2-512")
171+
TARGET_BUILTIN(__builtin_ia32_vmovrsq128, "V2OiV2OiC*", "nV:128:", "movrs,avx10.2-256")
172+
TARGET_BUILTIN(__builtin_ia32_vmovrsq256, "V4OiV4OiC*", "nV:256:", "movrs,avx10.2-256")
173+
TARGET_BUILTIN(__builtin_ia32_vmovrsq512, "V8OiV8OiC*", "nV:512:", "movrs,avx10.2-512")
174+
TARGET_BUILTIN(__builtin_ia32_vmovrsw128, "V8sV8sC*", "nV:128:", "movrs,avx10.2-256")
175+
TARGET_BUILTIN(__builtin_ia32_vmovrsw256, "V16sV16sC*", "nV:256:", "movrs,avx10.2-256")
176+
TARGET_BUILTIN(__builtin_ia32_vmovrsw512, "V32sV32sC*", "nV:512:", "movrs,avx10.2-512")
177+
164178
#undef BUILTIN
165179
#undef TARGET_BUILTIN
166180
#undef TARGET_HEADER_BUILTIN

llvm/include/llvm/TargetParser/X86TargetParser.def

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,8 @@ X86_FEATURE_COMPAT(AVX10_1, "avx10.1-256", 36)
261261
X86_FEATURE_COMPAT(AVX10_1_512, "avx10.1-512", 37)
262262
X86_FEATURE_COMPAT(AVX10_2, "avx10.2-256", 0)
263263
X86_FEATURE_COMPAT(AVX10_2_512, "avx10.2-512", 0)
264-
X86_FEATURE_COMPAT(MOVRS, "movrs", 0)
264+
//FIXME: make MOVRS _COMPAT defined when gcc landed relate patch.
265+
X86_FEATURE (MOVRS, "movrs")
265266
X86_FEATURE (ZU, "zu")
266267
// These features aren't really CPU features, but the frontend can set them.
267268
X86_FEATURE (RETPOLINE_EXTERNAL_THUNK, "retpoline-external-thunk")

0 commit comments

Comments
 (0)