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