diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2012-07-16 14:17:19 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2012-07-16 14:17:19 +0000 |
commit | 2015236dfcd40f0b93e7d9f6dc4c380dc88bf3c0 (patch) | |
tree | 2ca77afdd1529abf279b96bc81df8d18b8a625ec /test/CodeGen/R600/fsub.ll | |
parent | a93c8a89c148a92a4234e0dcc76231b13bebc4e7 (diff) | |
download | external_llvm-2015236dfcd40f0b93e7d9f6dc4c380dc88bf3c0.zip external_llvm-2015236dfcd40f0b93e7d9f6dc4c380dc88bf3c0.tar.gz external_llvm-2015236dfcd40f0b93e7d9f6dc4c380dc88bf3c0.tar.bz2 |
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/fsub.ll')
-rw-r--r-- | test/CodeGen/R600/fsub.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/R600/fsub.ll b/test/CodeGen/R600/fsub.ll new file mode 100644 index 0000000..8e43128 --- /dev/null +++ b/test/CodeGen/R600/fsub.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 = fsub 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) + |