llvm-project/clang/test/CodeGen/X86/x86-ssc-mark.c

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
564 B
C
Raw Normal View History

// 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(void) {
// 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);
}