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 | 4a9c4079292e0b789fd3f3e6594dde3240f2ab15 (patch) | |
tree | acc3ad50acabb0fb3c722fb188df3b51fd7e04d5 /test/CodeGen/SPARC | |
parent | bca3cda28464ddd825d61a36ecbcf8d77e64f795 (diff) |
[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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@284591 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/SPARC')
-rw-r--r-- | test/CodeGen/SPARC/LeonDetectRoundChangePassUT.ll | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/CodeGen/SPARC/LeonDetectRoundChangePassUT.ll b/test/CodeGen/SPARC/LeonDetectRoundChangePassUT.ll new file mode 100644 index 00000000000..bcb350ebb00 --- /dev/null +++ b/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 +} |