]> git.ipfire.org Git - thirdparty/gcc.git/commit
x86: Implement Fast-Math Float Truncation to BF16 via PSRLD Instruction
authorLevy Hsu <admin@levyhsu.com>
Wed, 25 Sep 2024 03:32:35 +0000 (14:32 +1100)
committerLevy Hsu <admin@levyhsu.com>
Thu, 10 Oct 2024 01:54:32 +0000 (01:54 +0000)
commit8718727509b2d038d00afa3bd5ef8e0df216a287
tree727f0972a10bf47ff00ed79eec5dab5886185a83
parent00ede02bc8bb73da8f4bf1d7542142cd923b0c54
x86: Implement Fast-Math Float Truncation to BF16 via PSRLD Instruction

gcc/ChangeLog:

* config/i386/i386.md: Rewrite insn truncsfbf2.

gcc/testsuite/ChangeLog:

* gcc.target/i386/truncsfbf-1.c: New test.
* gcc.target/i386/truncsfbf-2.c: New test.
gcc/config/i386/i386.md
gcc/testsuite/gcc.target/i386/truncsfbf-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/truncsfbf-2.c [new file with mode: 0644]