summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorTom Stellard <tstellar@redhat.com>2017-05-26 16:40:03 +0000
committerTom Stellard <tstellar@redhat.com>2017-05-26 16:40:03 +0000
commitdde28a8c92683e068cec7901353f4f3d8f3bc9a0 (patch)
tree470be3679300a93849f33f6e05de1ad7602cd82c /llvm/test
parentbc223c63cc777c07b0b8628c3ac96bafeae5bc99 (diff)
downloadbcm5719-llvm-dde28a8c92683e068cec7901353f4f3d8f3bc9a0.tar.gz
bcm5719-llvm-dde28a8c92683e068cec7901353f4f3d8f3bc9a0.zip
AMDGPU/GlobalISel: Mark 32-bit float constants as legal
Reviewers: arsenm Reviewed By: arsenm Subscribers: kzhuravl, wdng, nhaehnle, yaxunl, rovka, kristof.beyls, igorb, dstuttard, tpr, t-tye, llvm-commits Differential Revision: https://reviews.llvm.org/D33212 llvm-svn: 304003
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-constant.mir20
1 files changed, 20 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-constant.mir b/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-constant.mir
index 8839ba8e0ab..0557008ceb4 100644
--- a/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-constant.mir
+++ b/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-constant.mir
@@ -5,6 +5,11 @@
entry:
ret void
}
+
+ define void @test_fconstant() {
+ entry:
+ ret void
+ }
...
---
@@ -18,3 +23,18 @@ body: |
%0(s32) = G_CONSTANT i32 5
...
+
+---
+name: test_fconstant
+registers:
+ - { id: 0, class: _ }
+ - { id: 1, class: _ }
+body: |
+ bb.0.entry:
+ ; CHECK-LABEL: name: test_fconstant
+ ; CHECK: %0(s32) = G_FCONSTANT float 1.000000e+00
+ ; CHECK: %1(s32) = G_FCONSTANT float 7.5
+
+ %0(s32) = G_FCONSTANT float 1.0
+ %1(s32) = G_FCONSTANT float 7.5
+...
OpenPOWER on IntegriCloud