ubsan: score: left shift of negative value
[deliverable/binutils-gdb.git] / gas / doc / c-bpf.texi
index 13f41441caa9137ca7d300563f8922a25e28283e..c368773ae09de729c50b3036ce5caf9d7723eb28 100644 (file)
@@ -1,4 +1,4 @@
-@c Copyright (C) 2019 Free Software Foundation, Inc.
+@c Copyright (C) 2019-2020 Free Software Foundation, Inc.
 @c This is part of the GAS manual.
 @c For copying conditions, see the file as.texinfo.
 
@@ -17,6 +17,7 @@
 @menu
 * BPF Options::                 Options
 * BPF Syntax::                 Syntax
+* BPF Directives::             Machine Directives
 * BPF Opcodes::                        Opcodes
 @end menu
 
@@ -104,6 +105,28 @@ descriptor @samp{2} in register @samp{r1} we would do:
         lddw %r1, %map_fd(2)
 @end smallexample
 
+@node BPF Directives
+@section Machine Directives
+
+@cindex machine directives, BPF
+
+The BPF version of @code{@value{AS}} supports the following additional
+machine directives:
+
+@table @code
+@cindex @code{half} directive, BPF
+@item .word
+The @code{.half} directive produces a 16 bit value.
+
+@cindex @code{word} directive, BPF
+@item .word
+The @code{.word} directive produces a 32 bit value.
+
+@cindex @code{dword} directive, BPF
+@item .dword
+The @code{.dword} directive produces a 64 bit value.
+@end table
+
 @node BPF Opcodes
 @section Opcodes
 
This page took 0.028852 seconds and 4 git commands to generate.