Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix Issue 12430 - non compile-time __simd opcode causes ICE
- Loading branch information
1 parent
1e69da3
commit d146d78
Showing
2 changed files
with
26 additions
and
0 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,19 @@ | ||
/* | ||
REQUIRED_ARGS: -m64 | ||
PERMUTE_ARGS: | ||
TEST_OUTPUT: | ||
--- | ||
fail_compilation/test12430.d(18): Error: simd operator must be an integer constant, not 'op' | ||
--- | ||
*/ | ||
|
||
// https://issues.dlang.org/show_bug.cgi?id=12430 | ||
|
||
import core.simd; | ||
|
||
void foo() | ||
{ | ||
float4 a; | ||
auto op = XMM.RSQRTPS; | ||
auto b = __simd(op, a); | ||
} |