summaryrefslogtreecommitdiff
path: root/test/CodeGen/R600/fadd.ll
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2012-07-16 14:17:19 +0000
committerTom Stellard <thomas.stellard@amd.com>2012-07-16 14:17:19 +0000
commit2015236dfcd40f0b93e7d9f6dc4c380dc88bf3c0 (patch)
tree2ca77afdd1529abf279b96bc81df8d18b8a625ec /test/CodeGen/R600/fadd.ll
parenta93c8a89c148a92a4234e0dcc76231b13bebc4e7 (diff)
downloadllvm-2015236dfcd40f0b93e7d9f6dc4c380dc88bf3c0.tar.gz
llvm-2015236dfcd40f0b93e7d9f6dc4c380dc88bf3c0.tar.bz2
llvm-2015236dfcd40f0b93e7d9f6dc4c380dc88bf3c0.tar.xz
test/CodeGen/R600: Add some basic tests v6
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160273 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/R600/fadd.ll')
-rw-r--r--test/CodeGen/R600/fadd.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/R600/fadd.ll b/test/CodeGen/R600/fadd.ll
new file mode 100644
index 0000000000..874fcc6f43
--- /dev/null
+++ b/test/CodeGen/R600/fadd.ll
@@ -0,0 +1,15 @@
+;RUN: llc < %s -march=r600 -mcpu=redwood | diff %s.check -
+
+
+define void @test() {
+ %r0 = call float @llvm.R600.load.input(i32 0)
+ %r1 = call float @llvm.R600.load.input(i32 1)
+ %r2 = fadd float %r0, %r1
+ call void @llvm.AMDGPU.store.output(float %r2, i32 0)
+ ret void
+}
+
+declare float @llvm.R600.load.input(i32) readnone
+
+declare void @llvm.AMDGPU.store.output(float, i32)
+