# Crash fixes and small improvements to inline asm\. \(\#1756\) · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/703c6684d103f14193411b589eaa0e0b1e1189f0)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 703c6684d103f14193411b589eaa0e0b1e1189f0

Requested commit: 703c6684d103f14193411b589eaa0e0b1e1189f0

Commit: 703c6684d103f14193411b589eaa0e0b1e1189f0

Tree: 3c19fddb4174bb5ed104e6dbac573533821956cd

Author: Sahnvour

Committer: Andrew Kelley

## Message

```
Crash fixes and small improvements to inline asm. (#1756)

* codegen: LLVMConstInlineAsm is deprecated.

* codegen: replace commas in asm constraint strings by pipes as required by LLVM.

* ir: enforce usage of '=' constraint modifier for inline assembly outputs.

Others are not currently supported and this was just asserted alter in `ir_render_asm`.

* asm: forbid comptime_int/floats as inputs in favor of explicitely sized constants.

Fixes a crash due to comptime_int/floats having no type_ref.

* asm: handle inputs with integers of <8 or non power of 2 bitsize.

We widen them to the next highest power of two.

```

## Parents

- [89e82281be73701f5a634770366e9dca5a0e89a9](https://git.cafe/gitcafe/zig/commit/89e82281be73701f5a634770366e9dca5a0e89a9?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/703c6684d103f14193411b589eaa0e0b1e1189f0?format=markdown)
