aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/bpf/clang-notes.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/bpf/clang-notes.rst')
-rw-r--r--Documentation/bpf/clang-notes.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/bpf/clang-notes.rst b/Documentation/bpf/clang-notes.rst
index b15179cb5117..528feddf2db9 100644
--- a/Documentation/bpf/clang-notes.rst
+++ b/Documentation/bpf/clang-notes.rst
@@ -14,6 +14,12 @@ Clang defined "CPU" versions, where a CPU version of 3 corresponds to the curren
Clang can select the eBPF ISA version using ``-mcpu=v3`` for example to select version 3.
+Arithmetic instructions
+=======================
+
+For CPU versions prior to 3, Clang v7.0 and later can enable ``BPF_ALU`` support with
+``-Xclang -target-feature -Xclang +alu32``. In CPU version 3, support is automatically included.
+
Atomic operations
=================