xref: /linux/tools/testing/selftests/x86/clang_helpers_32.S (revision 62597edf6340191511bdf9a7f64fa315ddc58805)
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