forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[X86] Support __SSC_MARK(const int id)
Differential Revision: https://reviews.llvm.org/D108682
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// REQUIRES: x86-registered-target | ||
// 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); | ||
} |