diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2012-07-16 14:17:19 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2012-08-02 21:00:49 +0000 |
commit | 98bc164cee8bb12c6f0a161ec8111b3901051e53 (patch) | |
tree | 9c2192b7092c896776e33d53100c0e5b81cb9098 /test/CodeGen/R600/llvm.AMDIL.max..ll | |
parent | 68e560762e39af35e9e83b09e8428c3081bb7582 (diff) |
test/CodeGen/R600: Add some basic tests v7r600-master
Diffstat (limited to 'test/CodeGen/R600/llvm.AMDIL.max..ll')
-rw-r--r-- | test/CodeGen/R600/llvm.AMDIL.max..ll | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/CodeGen/R600/llvm.AMDIL.max..ll b/test/CodeGen/R600/llvm.AMDIL.max..ll new file mode 100644 index 00000000000..12ce5bee140 --- /dev/null +++ b/test/CodeGen/R600/llvm.AMDIL.max..ll @@ -0,0 +1,17 @@ +;RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s + +;CHECK: MAX + +define void @test() { + %r0 = call float @llvm.R600.load.input(i32 0) + %r1 = call float @llvm.R600.load.input(i32 1) + %r2 = call float @llvm.AMDIL.max.( float %r0, float %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) + +declare float @llvm.AMDIL.max.(float ,float ) readnone |