[clang] 4c29dc1 - Revert "[X86] Support __SSC_MARK(const int id)"
Xiang1 Zhang via cfe-commits
cfe-commits at lists.llvm.org
Sun Aug 29 18:50:48 PDT 2021
Author: Xiang1 Zhang
Date: 2021-08-30T09:50:26+08:00
New Revision: 4c29dc18cf23d3a644158b567b8c3d471358e2bd
URL: https://github.com/llvm/llvm-project/commit/4c29dc18cf23d3a644158b567b8c3d471358e2bd
DIFF: https://github.com/llvm/llvm-project/commit/4c29dc18cf23d3a644158b567b8c3d471358e2bd.diff
LOG: Revert "[X86] Support __SSC_MARK(const int id)"
This reverts commit 78fbde57794e50f5629979f5d69592caf64067e3.
Added:
Modified:
clang/lib/Headers/x86gprintrin.h
Removed:
clang/test/CodeGen/X86/x86-ssc-mark.c
################################################################################
diff --git a/clang/lib/Headers/x86gprintrin.h b/clang/lib/Headers/x86gprintrin.h
index 327ccb724be80..1fc6cab4b28fc 100644
--- a/clang/lib/Headers/x86gprintrin.h
+++ b/clang/lib/Headers/x86gprintrin.h
@@ -20,9 +20,4 @@
#include <uintrintrin.h>
#endif
-#define __SSC_MARK(Tag) \
- __asm__ __volatile__("movl %%ebx, %%eax; movl %0, %%ebx; .byte 0x64, 0x67, " \
- "0x90; movl %%eax, %%ebx;" ::"i"(Tag) \
- : "%eax");
-
#endif /* __X86GPRINTRIN_H */
diff --git a/clang/test/CodeGen/X86/x86-ssc-mark.c b/clang/test/CodeGen/X86/x86-ssc-mark.c
deleted file mode 100644
index ce036aaadf410..0000000000000
--- a/clang/test/CodeGen/X86/x86-ssc-mark.c
+++ /dev/null
@@ -1,19 +0,0 @@
-// RUN: %clang_cc1 %s -triple=x86_64-unknown-unknown -S -ffreestanding -o - | FileCheck %s
-// RUN: %clang_cc1 %s -triple=i386-unknown-unknown -S -ffreestanding -o - | FileCheck %s
-
-#include <immintrin.h>
-
-// The ebx may be use for base pointer, we need to restore it in time.
-void ssc_mark() {
-// CHECK-LABEL: ssc_mark
-// CHECK: #APP
-// CHECK: movl %ebx, %eax
-// CHECK: movl $0, %ebx
-// CHECK: .byte 100
-// CHECK: .byte 103
-// CHECK: .byte 144
-// CHECK: movl %eax, %ebx
-// CHECK: #NO_APP
-
- __SSC_MARK(0x0);
-}
More information about the cfe-commits
mailing list