rust/tests/ui/asm/x86_64
bors c9687a95a6 Auto merge of #125558 - Amanieu:const-asm-type, r=lcnr
Tweak type inference for `const` operands in inline asm

Previously these would be treated like integer literals and default to `i32` if a type could not be determined. To allow for forward-compatibility with `str` constants in the future, this PR changes type inference to use an unbound type variable instead.

The actual type checking is deferred until after typeck where we still ensure that the final type for the `const` operand is an integer type.

<!--
If this PR is related to an unstable feature or an otherwise tracked effort,
please link to the relevant tracking issue here. If you don't know of a related
tracking issue or there are none, feel free to ignore this.

This PR will get automatically assigned to a reviewer. In case you would like
a specific user to review your work, you can assign it to them by using

    r​? <reviewer name>
-->
2024-08-06 01:20:43 +00:00
..
bad-clobber-abi.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
bad-clobber-abi.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bad-options.rs improve error message when global_asm! uses asm! options 2024-07-25 22:33:52 +02:00
bad-options.stderr improve error message when global_asm! uses asm! options 2024-07-25 22:33:52 +02:00
bad-reg.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
bad-reg.stderr Name explicit registers in conflict register errors for inline assembly 2023-11-28 10:37:19 +00:00
const.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
duplicate-options.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
duplicate-options.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
duplicate-options.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
evex512-implicit-feature.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
goto.rs Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
goto.stderr Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
interpolated-idents.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
interpolated-idents.stderr Fix duplicate labels emitted in render_multispan_macro_backtrace() 2023-10-19 08:03:40 +05:30
issue-82869.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-82869.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-89875.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-96797.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
may_unwind.rs Remove c_unwind from tests and fix tests 2024-06-19 13:54:55 +01:00
multiple-clobber-abi.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
srcloc.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
srcloc.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
sym.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
target-feature-attr.rs Add inline comments why we're forcing the target cpu 2024-05-01 16:54:20 -07:00
target-feature-attr.stderr Add inline comments why we're forcing the target cpu 2024-05-01 16:54:20 -07:00
type-check-2.rs separate test file for invalid sym operand 2024-08-01 20:13:05 +01:00
type-check-2.stderr separate test file for invalid sym operand 2024-08-01 20:13:05 +01:00
type-check-3.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
type-check-3.stderr Add f16 and f128 inline ASM support for x86 and x86-64 2024-06-13 16:12:23 +01:00
type-check-4.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
type-check-4.stderr rebless after rebase 2024-02-10 16:13:48 +01:00
type-check-5.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
type-check-5.stderr Handle more cases of value suggestions 2024-04-10 20:36:14 +00:00
x86_64_parse_error.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
x86_64_parse_error.stderr Account for let foo = expr; to suggest const foo: Ty = expr; 2024-07-11 20:39:24 +00:00