-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support vpcmov for V4HF/V4BF/V2HF/V2BF under TARGET_XOP.
gcc/ChangeLog: PR target/112904 * config/i386/mmx.md (*xop_pcmov_<mode>): New define_insn. gcc/testsuite/ChangeLog: * g++.target/i386/pr112904.C: New test.
- Loading branch information
Showing
2 changed files
with
49 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,27 @@ | ||
typedef _Float16 v4hf __attribute__((vector_size(8))); | ||
typedef short v4hi __attribute__((vector_size(8))); | ||
typedef _Float16 v2hf __attribute__((vector_size(4))); | ||
typedef short v2hi __attribute__((vector_size(4))); | ||
|
||
typedef __bf16 v4bf __attribute__((vector_size(8))); | ||
typedef __bf16 v2bf __attribute__((vector_size(4))); | ||
|
||
v4hf foo(v4hf a, v4hf b, v4hi c) | ||
{ | ||
return c ? a : b; | ||
} | ||
|
||
v2hf foo1(v2hf a, v2hf b, v2hi c) | ||
{ | ||
return c ? a : b; | ||
} | ||
|
||
v4bf foo(v4bf a, v4bf b, v4hi c) | ||
{ | ||
return c ? a : b; | ||
} | ||
|
||
v2bf foo1(v2bf a, v2bf b, v2hi c) | ||
{ | ||
return c ? a : b; | ||
} |