Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5739 from WalterWaldron/fix13147
Fix issue 15999 - Inline assembly incorrect sign extension instead of…
- Loading branch information
Showing
4 changed files
with
99 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// REQUIRED_ARGS: -m64 | ||
/* | ||
TEST_OUTPUT: | ||
--- | ||
fail_compilation/fail15999.d(11): Error: bad type/size of operands 'and' | ||
--- | ||
*/ | ||
|
||
void foo(ulong bar) | ||
{ | ||
asm { and RAX, 0x00000000FFFFFFFF; ret; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// REQUIRED_ARGS: -m64 | ||
/* | ||
TEST_OUTPUT: | ||
--- | ||
fail_compilation/fail15999b.d(11): Error: bad type/size of operands 'and' | ||
--- | ||
*/ | ||
|
||
void foo(ulong bar) | ||
{ | ||
asm { and RAX, 0xFFFFFFFF00000000; ret; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters