about summary refs log tree commit diff
path: root/src/test/ui/asm/x86_64
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-2652/+0
2023-01-01Verbose suggestionsEsteban Küber-4/+6
2023-01-01Merge multiple mutable borrows of immutable binding errorsEsteban Küber-15/+10
Fix #53466.
2022-12-29Account for multiple multiline spans with empty paddingEsteban Küber-6/+1
Instead of ``` LL | fn oom( | __^ | | _| | || LL | || ) { | ||_- LL | | } | |__^ ``` emit ``` LL | // fn oom( LL | || ) { | ||_- LL | | } | |__^ ```
2022-10-17Stabilize asm_symAmanieu d'Antras-15/+10
2022-10-01bless ui testsMaybe Waffle-1/+1
2022-09-26fix #102087, Suggest Default::default() when binding isn't initializedyukang-0/+10
2022-09-16Rollup merge of #101741 - andrewpollack:add-needs-unwind-ui-tests, r=tmandryMichael Howell-0/+1
Adding needs-unwind arg to applicable compiler ui tests Adding `needs-unwind` arg to applicable compiler ui tests
2022-09-16Adding needs-unwind arg to applicable compiler ui testsAndrew Pollack-0/+1
2022-09-08fix the suggestion of format for asm_sub_registerYiming Lei-8/+8
modified: compiler/rustc_typeck/src/check/intrinsicck.rs modified: src/test/ui/asm/bad-template.aarch64_mirunsafeck.stderr modified: src/test/ui/asm/bad-template.aarch64_thirunsafeck.stderr modified: src/test/ui/asm/bad-template.x86_64_mirunsafeck.stderr modified: src/test/ui/asm/bad-template.x86_64_thirunsafeck.stderr modified: src/test/ui/asm/type-check-1.rs modified: src/test/ui/asm/type-check-1.stderr modified: src/test/ui/asm/x86_64/type-check-3.stderr
2022-08-14Update the minimum external LLVM to 13Josh Stone-2/+0
2022-08-02Properly reject the `may_unwind` option in `global_asm!`Amanieu d'Antras-18/+18
This was accidentally accepted even though it had no effect in `global_asm!`. The option only makes sense for `asm!` which runs within a function.
2022-07-21Auto merge of #99059 - Amanieu:fix-96797, r=Mark-Simulacrumbors-0/+26
Add test for #96797 This was fixed in LLVM which was updated in #98285. https://reviews.llvm.org/D127751 Fixes #96797
2022-07-21Add test for #96797Amanieu d'Antras-0/+26
This was fixed in LLVM which was updated in #98285. https://reviews.llvm.org/D127751 Fixes #96797
2022-07-14Rollup merge of #99192 - Amanieu:fix-asm-srcloc, r=petrochenkovDylan DPC-1/+20
Fix spans for asm diagnostics Line spans were incorrect if the first line of an asm statement was an empty string.
2022-07-14Fix spans for asm diagnosticsAmanieu d'Antras-1/+20
Line spans were incorrect if the first line of an asm statement was an empty string.
2022-07-08Auto merge of #98482 - cjgillot:short-struct-span-closure, r=estebankbors-1/+1
Shorten def_span of closures to just their header Continuation of https://github.com/rust-lang/rust/pull/93967.
2022-07-07Tweak wording and spansEsteban Küber-4/+4
2022-07-07On partial uninit error point at where we need initEsteban Küber-6/+10
When a binding is declared without a value, borrowck verifies that all codepaths have *one* assignment to them to initialize them fully. If there are any cases where a condition can be met that leaves the binding uninitialized or we attempt to initialize a field of an unitialized binding, we emit E0381. We now look at all the statements that initialize the binding, and use them to explore branching code paths that *don't* and point at them. If we find *no* potential places where an assignment to the binding might be missing, we display the spans of all the existing initializers to provide some context.
2022-07-07Shorten span for closures.Camille GILLOT-1/+1
2022-06-12Fix some test annotationsbjorn3-3/+4
These are necessary for running the rustc test suite with cg_clif
2022-05-24Update messagesOli Scherer-4/+4
2022-05-24Add the transmute and asm checks to typeck as deferred checksOli Scherer-122/+278
2022-04-19Rollup merge of #95740 - Amanieu:kreg0, r=nagisaDylan DPC-10/+10
asm: Add a kreg0 register class on x86 which includes k0 Previously we only exposed a kreg register class which excludes the k0 register since it can't be used in many instructions. However k0 is a valid register and we need to have a way of marking it as clobbered for clobber_abi. Fixes #94977
2022-04-19asm: Add a kreg0 register class on x86 which includes k0Amanieu d'Antras-10/+10
Previously we only exposed a kreg register class which excludes the k0 register since it can't be used in many instructions. However k0 is a valid register and we need to have a way of marking it as clobbered for clobber_abi. Fixes #94977
2022-04-16Update tests for sym support in global_asm!Amanieu d'Antras-25/+36
2022-03-21Add needs-asm-support directive to tests where necessarybjorn3-0/+3
2022-02-21Take CodegenFnAttrs into account when validating asm! register operandsAmanieu d'Antras-21/+13
Checking of asm! register operands now properly takes function attributes such as #[target_feature] and #[instruction_set] into account.
2022-01-31Make `span_extend_to_prev_str()` more robustFabian Wolff-7/+7
2021-12-12Stabilize asm! and global_asm!Amanieu d'Antras-172/+193
They are also removed from the prelude as per the decision in https://github.com/rust-lang/rust/issues/87228. stdarch and compiler-builtins are updated to work with the new, stable asm! and global_asm! macros.
2021-12-03fix inline asm test by not hardcoding symbol namescynecx-3/+9
2021-12-03add clobber_abi("C") to may_unwind inline-asm testscynecx-1/+1
2021-12-03add tests for asm's options(may_unwind)cynecx-0/+31
2021-12-03Add initial AST and MIR support for unwinding from inline assemblyAmanieu d'Antras-22/+22
2021-11-10add missing sym featureasquared31415-1/+1
2021-11-10Add support for specifying multiple clobber_abi in `asm!`asquared31415-43/+212
Allow multiple clobber_abi in asm Update docs Fix aarch64 test Combine abis Emit duplicate ABI error, empty ABI list error multiple clobber_abi
2021-11-07Add features gates for experimental asm featuresAmanieu d'Antras-7/+9
2021-10-26Add a regression test for issue-89875Yuki Okushi-0/+14
2021-10-22Update the minimum external LLVM to 12Josh Stone-1/+1
2021-10-22Update the minimum external LLVM to 11Josh Stone-27/+25
2021-10-15Bless testsCameron Steffen-11/+11
2021-10-07make #[target_feature] work with `asm` register classesasquared31415-34/+84
2021-09-24Add inline asm! tests for aarch64Adam Gemmell-0/+2153
Enable tests which are largely architecture-independent on all supported platforms