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