xref: /linux/tools/testing/selftests/x86/clang_helpers_32.S (revision 571f8b3f866a6d990a50fe5c89fe0ea78784d70b)
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * 32-bit assembly helpers for asm operations that lack support in both gcc and
4 * clang. For example, clang asm does not support segment prefixes.
5 */
6.global dereference_seg_base
7dereference_seg_base:
8	mov %fs:(0), %eax
9	ret
10
11.section .note.GNU-stack,"",%progbits
12