diff options
| author | Chris Dewhurst <chris.dewhurst@lero.ie> | 2016-10-19 14:01:06 +0000 |
|---|---|---|
| committer | Chris Dewhurst <chris.dewhurst@lero.ie> | 2016-10-19 14:01:06 +0000 |
| commit | 2c3cdd66d27e046547315e9a1480c6ae32ad2bde (patch) | |
| tree | b33eeae1d262463cefc66fe5d9c96c10e1b168b5 /llvm/test/CodeGen/SPARC | |
| parent | 13b6a10e7b01f57089e38b081de7de60e8eb22d2 (diff) | |
| download | bcm5719-llvm-2c3cdd66d27e046547315e9a1480c6ae32ad2bde.tar.gz bcm5719-llvm-2c3cdd66d27e046547315e9a1480c6ae32ad2bde.zip | |
[Sparc][LEON] Detects an erratum on UT699 LEON 3 processors involving rounding mode changes and issues an appropriate user error message.
Differential Revision: https://reviews.llvm.org/D24665
llvm-svn: 284591
Diffstat (limited to 'llvm/test/CodeGen/SPARC')
| -rw-r--r-- | llvm/test/CodeGen/SPARC/LeonDetectRoundChangePassUT.ll | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/SPARC/LeonDetectRoundChangePassUT.ll b/llvm/test/CodeGen/SPARC/LeonDetectRoundChangePassUT.ll new file mode 100644 index 00000000000..bcb350ebb00 --- /dev/null +++ b/llvm/test/CodeGen/SPARC/LeonDetectRoundChangePassUT.ll @@ -0,0 +1,22 @@ +; RUN: llc %s -O0 -march=sparc -mcpu=leon3 -mattr=+detectroundchange -o - |& grep "detect rounding changes" + +; Function Attrs: nounwind +declare i32 @fesetround(i32) + +define void @test_round_change() { +entry: + %call = call i32 @fesetround(i32 2048) + + ret void +} +; RUN: llc %s -O0 -march=sparc -mcpu=leon3 -mattr=+detectroundchange -o - |& grep "detect rounding changes" + +; Function Attrs: nounwind +declare i32 @fesetround(i32) + +define void @test_round_change() { +entry: + %call = call i32 @fesetround(i32 2048) + + ret void +} |

