summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2014-06-26 17:22:30 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2014-06-26 17:22:30 +0000
commit0989d51520b054bdb48916103a8e2c205f8e3baf (patch)
treea8e82dec7e645cd42df09fd20efef1d8a2ddc33d /llvm/test/CodeGen
parent92a4d51fa6d9164b4e93a4522cb5e42e6f6d17bd (diff)
downloadbcm5719-llvm-0989d51520b054bdb48916103a8e2c205f8e3baf.tar.gz
bcm5719-llvm-0989d51520b054bdb48916103a8e2c205f8e3baf.zip
R600/SI: Add FP mode bits to binary.
The default rounding mode to initialize the mode register needs to be reported to the runtime. Fill in other bits a kernel may be interested in setting for future use. llvm-svn: 211791
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/R600/default-fp-mode.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/R600/default-fp-mode.ll b/llvm/test/CodeGen/R600/default-fp-mode.ll
new file mode 100644
index 00000000000..214b2c20369
--- /dev/null
+++ b/llvm/test/CodeGen/R600/default-fp-mode.ll
@@ -0,0 +1,10 @@
+; RUN: llc -march=r600 -mcpu=SI < %s | FileCheck -check-prefix=SI %s
+
+; SI-LABEL: @test_kernel
+; SI: FloatMode: 240
+; SI: IeeeMode: 0
+define void @test_kernel(float addrspace(1)* %out0, double addrspace(1)* %out1) nounwind {
+ store float 0.0, float addrspace(1)* %out0
+ store double 0.0, double addrspace(1)* %out1
+ ret void
+}
OpenPOWER on IntegriCloud