aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/asm.zig
AgeCommit message (Collapse)Author
2025-09-18test: skip `alternative constraints` behavior test on LoongArchAlex Rønne Petersen
https://github.com/llvm/llvm-project/issues/159200
2025-07-22aarch64: add new from scratch self-hosted backendJacob Young
2025-07-16zig fmtAndrew Kelley
2025-06-16rename spirv backend nameAli Cheraghi
`stage2_spirv64` -> `stage2_spirv`
2025-01-16x86_64: implement switch jump tablesJacob Young
2024-05-11riscv: add stage2_riscv to test matrix and bypass failing testsDavid Rubin
2023-11-19test: update behavior to silence 'var is never mutated' errorsmlugg
2023-10-07x86_64: improve inline assembly supportJacob Young
* instruction prefixes * mnemonic fixes * labels * memory operands * read-write constraint modifier * register and memory alternative constraint
2023-10-01x86_64: implement float compare and cast builtinsJacob Young
2023-07-29llvm: support read-write output constraints in assemblyJacob Young
Closes #15227
2023-06-19Module: add support for multiple global asm blocks per declJacob Young
Closes #16076
2023-05-20spirv: customize module-scope asm testRobin Voetter
This test passes just fine, but the provided assembly is not valid for spir-v. This adds a custom assembly test and enables the test for spir-v
2023-05-11setup spirv backend in behavior testsAli Chraghi
2023-02-21CBE: fix windows test failuresJacob Young
2023-02-21behavior: enable passing CBE testsJacob Young
2023-01-02avoid testing `inline for` in unrelated behavior testsAndrew Kelley
2023-01-01temporarily disable asm testskcbanner
2022-12-10stage2: sparc64: Skip unimplemented testsKoakuma
2022-12-02cbe: add support for constraint modifiers specified after a colonJacob Young
This translates `%[name:mod]` to `%mod[name]` for C.
2022-11-11stage2: Support modifiers in inline asmCody Tapscott
These are supported using %[ident:mod] syntax. This allows requesting, e.g., the "w" (32-bit) vs. "x" (64-bit) views of AArch64 registers. See https://llvm.org/docs/LangRef.html#asm-template-argument-modifiers
2022-10-25cbe: misc fixesJacob Young
2022-10-25cbe: implement global assemblyJacob Young
2022-10-25cbe: implement more asm featuresJacob Young
2022-06-12stage2: fix some inline asm incompatibilities with stage1Andrew Kelley
2022-05-04stage2: implement global assemblyAndrew Kelley
So far it's supported by the LLVM backend only. I recommend for the other backends to wait for the resolution of #10761 before adding support for this feature.
2022-03-30CBE: improve support for asm inputsDaniele Cocca
This is not complete support for asm expressions, but allows a few more test cases from test/behavior/asm.zig to pass. Since the non-register inputs are named `input_${n}` they can cause name collisions: I'm wrapping the asm expressions in their own block to prevent that. Contextually, this change also makes test/behavior/asm.zig run for stage2, but skips individual tests for most backends (I only verified the C and LLVM backends successfully run one new test case) and the entire test file for aarch64, where it's running into preexisting shortcomings.
2021-10-04migrate from `std.Target.current` to `@import("builtin").target`Andrew Kelley
closes #9388 closes #9321
2021-08-29zig fmt: respect trailing commas in inline assemblyjdmichaud
2021-05-08Merge remote-tracking branch 'origin/master' into stage2-whole-file-astgenAndrew Kelley
Conflicts: * doc/langref.html.in * lib/std/enums.zig * lib/std/fmt.zig * lib/std/hash/auto_hash.zig * lib/std/math.zig * lib/std/mem.zig * lib/std/meta.zig * test/behavior/alignof.zig * test/behavior/bitcast.zig * test/behavior/bugs/1421.zig * test/behavior/cast.zig * test/behavior/ptrcast.zig * test/behavior/type_info.zig * test/behavior/vector.zig Master branch added `try` to a bunch of testing function calls, and some lines also had changed how to refer to the native architecture and other `@import("builtin")` stuff.
2021-05-08Merge remote-tracking branch 'origin/master' into stage2-whole-file-astgenAndrew Kelley
Conflicts: * lib/std/os/linux/tls.zig * test/behavior/align.zig * test/behavior/atomics.zig * test/behavior/vector.zig
2021-04-29move behavior tests from test/stage1/ to test/Andrew Kelley
And fix test cases to make them pass. This is in preparation for starting to pass behavior tests with self-hosted.