You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notably it is not the same as an LLVM `undef` which can have a different value every time you read it (since such a concept does not exist in assembly code).
711
711
712
712
r[asm.naked-rules.reg-not-output]
713
-
- Any callee-saved registers must have the same value upon exiting the asm block as they had on entry, otherwise behavior is undefined.
713
+
- Any callee-saved registers must have the same value upon return as they had on entry, otherwise behavior is undefined.
714
714
- Caller-saved registes may be used freely, even if they are not used for the return value.
715
715
716
716
r[asm.naked-rules.unwind]
@@ -719,6 +719,7 @@ r[asm.naked-rules.unwind]
719
719
720
720
r[asm.naked-rules.noreturn]
721
721
- Behavior is undefined if execution falls through to the end of the asm block.
722
+
- the assembly code is expected to contain a return instruction or to diverge
722
723
723
724
r[asm.naked-rules.mem-same-as-ffi]
724
725
- The set of memory locations that assembly code is allowed to read and write are the same as those allowed for an FFI function.
@@ -731,10 +732,6 @@ r[asm.naked-rules.black-box]
731
732
- Runtime code patching is allowed, via target-specific mechanisms.
732
733
- However there is no guarantee that each `naked_asm!` directly corresponds to a single instance of instructions in the object file: the compiler is free to duplicate or deduplicate `naked_asm!` blocks.
733
734
734
-
r[asm.naked-rules.not-exactly-once]
735
-
- You cannot assume that an `naked_asm!` block will appear exactly once in the output binary.
736
-
The compiler is allowed to instantiate multiple copies of the `naked_asm!` block, for example when the function containing it is inlined in multiple places.
0 commit comments