[llvm-commits] [llvm] r160273 - /llvm/trunk/test/CodeGen/R600/

Tom Stellard thomas.stellard at amd.com
Mon Jul 16 07:17:20 PDT 2012


Author: tstellar
Date: Mon Jul 16 09:17:19 2012
New Revision: 160273

URL: http://llvm.org/viewvc/llvm-project?rev=160273&view=rev
Log:
test/CodeGen/R600: Add some basic tests v6

Added:
    llvm/trunk/test/CodeGen/R600/
    llvm/trunk/test/CodeGen/R600/fadd.ll
    llvm/trunk/test/CodeGen/R600/fadd.ll.check
    llvm/trunk/test/CodeGen/R600/fmul.ll
    llvm/trunk/test/CodeGen/R600/fmul.ll.check
    llvm/trunk/test/CodeGen/R600/fsub.ll
    llvm/trunk/test/CodeGen/R600/fsub.ll.check
    llvm/trunk/test/CodeGen/R600/lit.local.cfg
    llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.cos.ll
    llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.cos.ll.check
    llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.floor.ll
    llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.floor.ll.check
    llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.mul.ll
    llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.mul.ll.check
    llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.pow.ll
    llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.pow.ll.check
    llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.rcp.ll
    llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.rcp.ll.check
    llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.sin.ll
    llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.sin.ll.check
    llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.trunc.ll
    llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.trunc.ll.check
    llvm/trunk/test/CodeGen/R600/llvm.AMDIL.fabs..ll
    llvm/trunk/test/CodeGen/R600/llvm.AMDIL.fabs..ll.check
    llvm/trunk/test/CodeGen/R600/llvm.AMDIL.max..ll
    llvm/trunk/test/CodeGen/R600/llvm.AMDIL.max..ll.check
    llvm/trunk/test/CodeGen/R600/llvm.AMDIL.min..ll
    llvm/trunk/test/CodeGen/R600/llvm.AMDIL.min..ll.check

Added: llvm/trunk/test/CodeGen/R600/fadd.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/fadd.ll?rev=160273&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/R600/fadd.ll (added)
+++ llvm/trunk/test/CodeGen/R600/fadd.ll Mon Jul 16 09:17:19 2012
@@ -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)
+

Added: llvm/trunk/test/CodeGen/R600/fadd.ll.check
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/fadd.ll.check?rev=160273&view=auto
==============================================================================
Binary files llvm/trunk/test/CodeGen/R600/fadd.ll.check (added) and llvm/trunk/test/CodeGen/R600/fadd.ll.check Mon Jul 16 09:17:19 2012 differ

Added: llvm/trunk/test/CodeGen/R600/fmul.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/fmul.ll?rev=160273&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/R600/fmul.ll (added)
+++ llvm/trunk/test/CodeGen/R600/fmul.ll Mon Jul 16 09:17:19 2012
@@ -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 = fmul 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)
+

Added: llvm/trunk/test/CodeGen/R600/fmul.ll.check
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/fmul.ll.check?rev=160273&view=auto
==============================================================================
Binary files llvm/trunk/test/CodeGen/R600/fmul.ll.check (added) and llvm/trunk/test/CodeGen/R600/fmul.ll.check Mon Jul 16 09:17:19 2012 differ

Added: llvm/trunk/test/CodeGen/R600/fsub.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/fsub.ll?rev=160273&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/R600/fsub.ll (added)
+++ llvm/trunk/test/CodeGen/R600/fsub.ll Mon Jul 16 09:17:19 2012
@@ -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)
+

Added: llvm/trunk/test/CodeGen/R600/fsub.ll.check
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/fsub.ll.check?rev=160273&view=auto
==============================================================================
Binary files llvm/trunk/test/CodeGen/R600/fsub.ll.check (added) and llvm/trunk/test/CodeGen/R600/fsub.ll.check Mon Jul 16 09:17:19 2012 differ

Added: llvm/trunk/test/CodeGen/R600/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/lit.local.cfg?rev=160273&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/R600/lit.local.cfg (added)
+++ llvm/trunk/test/CodeGen/R600/lit.local.cfg Mon Jul 16 09:17:19 2012
@@ -0,0 +1,13 @@
+config.suffixes = ['.ll', '.c', '.cpp']
+
+def getRoot(config):
+    if not config.parent:
+        return config
+    return getRoot(config.parent)
+
+root = getRoot(config)
+
+targets = set(root.targets_to_build.split())
+if not 'AMDGPU' in targets:
+    config.unsupported = True
+

Added: llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.cos.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.cos.ll?rev=160273&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.cos.ll (added)
+++ llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.cos.ll Mon Jul 16 09:17:19 2012
@@ -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.AMDGPU.cos( float %r0)
+   call void @llvm.AMDGPU.store.output(float %r1, i32 0)
+   ret void
+}
+
+declare float @llvm.R600.load.input(i32) readnone
+
+declare void @llvm.AMDGPU.store.output(float, i32)
+
+declare float @llvm.AMDGPU.cos(float ) readnone

Added: llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.cos.ll.check
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.cos.ll.check?rev=160273&view=auto
==============================================================================
Binary files llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.cos.ll.check (added) and llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.cos.ll.check Mon Jul 16 09:17:19 2012 differ

Added: llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.floor.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.floor.ll?rev=160273&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.floor.ll (added)
+++ llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.floor.ll Mon Jul 16 09:17:19 2012
@@ -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.AMDGPU.floor( float %r0)
+   call void @llvm.AMDGPU.store.output(float %r1, i32 0)
+   ret void
+}
+
+declare float @llvm.R600.load.input(i32) readnone
+
+declare void @llvm.AMDGPU.store.output(float, i32)
+
+declare float @llvm.AMDGPU.floor(float ) readnone

Added: llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.floor.ll.check
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.floor.ll.check?rev=160273&view=auto
==============================================================================
Binary files llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.floor.ll.check (added) and llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.floor.ll.check Mon Jul 16 09:17:19 2012 differ

Added: llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.mul.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.mul.ll?rev=160273&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.mul.ll (added)
+++ llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.mul.ll Mon Jul 16 09:17:19 2012
@@ -0,0 +1,16 @@
+;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 = call float @llvm.AMDGPU.mul( 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.AMDGPU.mul(float ,float ) readnone

Added: llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.mul.ll.check
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.mul.ll.check?rev=160273&view=auto
==============================================================================
Binary files llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.mul.ll.check (added) and llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.mul.ll.check Mon Jul 16 09:17:19 2012 differ

Added: llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.pow.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.pow.ll?rev=160273&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.pow.ll (added)
+++ llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.pow.ll Mon Jul 16 09:17:19 2012
@@ -0,0 +1,16 @@
+;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 = call float @llvm.AMDGPU.pow( 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.AMDGPU.pow(float ,float ) readnone

Added: llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.pow.ll.check
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.pow.ll.check?rev=160273&view=auto
==============================================================================
Binary files llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.pow.ll.check (added) and llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.pow.ll.check Mon Jul 16 09:17:19 2012 differ

Added: llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.rcp.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.rcp.ll?rev=160273&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.rcp.ll (added)
+++ llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.rcp.ll Mon Jul 16 09:17:19 2012
@@ -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.AMDGPU.rcp( float %r0)
+   call void @llvm.AMDGPU.store.output(float %r1, i32 0)
+   ret void
+}
+
+declare float @llvm.R600.load.input(i32) readnone
+
+declare void @llvm.AMDGPU.store.output(float, i32)
+
+declare float @llvm.AMDGPU.rcp(float ) readnone

Added: llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.rcp.ll.check
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.rcp.ll.check?rev=160273&view=auto
==============================================================================
Binary files llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.rcp.ll.check (added) and llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.rcp.ll.check Mon Jul 16 09:17:19 2012 differ

Added: llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.sin.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.sin.ll?rev=160273&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.sin.ll (added)
+++ llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.sin.ll Mon Jul 16 09:17:19 2012
@@ -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.AMDGPU.sin( float %r0)
+   call void @llvm.AMDGPU.store.output(float %r1, i32 0)
+   ret void
+}
+
+declare float @llvm.R600.load.input(i32) readnone
+
+declare void @llvm.AMDGPU.store.output(float, i32)
+
+declare float @llvm.AMDGPU.sin(float ) readnone

Added: llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.sin.ll.check
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.sin.ll.check?rev=160273&view=auto
==============================================================================
Binary files llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.sin.ll.check (added) and llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.sin.ll.check Mon Jul 16 09:17:19 2012 differ

Added: llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.trunc.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.trunc.ll?rev=160273&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.trunc.ll (added)
+++ llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.trunc.ll Mon Jul 16 09:17:19 2012
@@ -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.AMDGPU.trunc( float %r0)
+   call void @llvm.AMDGPU.store.output(float %r1, i32 0)
+   ret void
+}
+
+declare float @llvm.R600.load.input(i32) readnone
+
+declare void @llvm.AMDGPU.store.output(float, i32)
+
+declare float @llvm.AMDGPU.trunc(float ) readnone

Added: llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.trunc.ll.check
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.trunc.ll.check?rev=160273&view=auto
==============================================================================
Binary files llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.trunc.ll.check (added) and llvm/trunk/test/CodeGen/R600/llvm.AMDGPU.trunc.ll.check Mon Jul 16 09:17:19 2012 differ

Added: llvm/trunk/test/CodeGen/R600/llvm.AMDIL.fabs..ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/llvm.AMDIL.fabs..ll?rev=160273&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/R600/llvm.AMDIL.fabs..ll (added)
+++ llvm/trunk/test/CodeGen/R600/llvm.AMDIL.fabs..ll Mon Jul 16 09:17:19 2012
@@ -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.AMDIL.fabs.( float %r0)
+   call void @llvm.AMDGPU.store.output(float %r1, i32 0)
+   ret void
+}
+
+declare float @llvm.R600.load.input(i32) readnone
+
+declare void @llvm.AMDGPU.store.output(float, i32)
+
+declare float @llvm.AMDIL.fabs.(float ) readnone

Added: llvm/trunk/test/CodeGen/R600/llvm.AMDIL.fabs..ll.check
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/llvm.AMDIL.fabs..ll.check?rev=160273&view=auto
==============================================================================
Binary files llvm/trunk/test/CodeGen/R600/llvm.AMDIL.fabs..ll.check (added) and llvm/trunk/test/CodeGen/R600/llvm.AMDIL.fabs..ll.check Mon Jul 16 09:17:19 2012 differ

Added: llvm/trunk/test/CodeGen/R600/llvm.AMDIL.max..ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/llvm.AMDIL.max..ll?rev=160273&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/R600/llvm.AMDIL.max..ll (added)
+++ llvm/trunk/test/CodeGen/R600/llvm.AMDIL.max..ll Mon Jul 16 09:17:19 2012
@@ -0,0 +1,16 @@
+;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 = 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

Added: llvm/trunk/test/CodeGen/R600/llvm.AMDIL.max..ll.check
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/llvm.AMDIL.max..ll.check?rev=160273&view=auto
==============================================================================
Binary files llvm/trunk/test/CodeGen/R600/llvm.AMDIL.max..ll.check (added) and llvm/trunk/test/CodeGen/R600/llvm.AMDIL.max..ll.check Mon Jul 16 09:17:19 2012 differ

Added: llvm/trunk/test/CodeGen/R600/llvm.AMDIL.min..ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/llvm.AMDIL.min..ll?rev=160273&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/R600/llvm.AMDIL.min..ll (added)
+++ llvm/trunk/test/CodeGen/R600/llvm.AMDIL.min..ll Mon Jul 16 09:17:19 2012
@@ -0,0 +1,16 @@
+;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 = call float @llvm.AMDIL.min.( 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.min.(float ,float ) readnone

Added: llvm/trunk/test/CodeGen/R600/llvm.AMDIL.min..ll.check
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/llvm.AMDIL.min..ll.check?rev=160273&view=auto
==============================================================================
Binary files llvm/trunk/test/CodeGen/R600/llvm.AMDIL.min..ll.check (added) and llvm/trunk/test/CodeGen/R600/llvm.AMDIL.min..ll.check Mon Jul 16 09:17:19 2012 differ





More information about the llvm-commits mailing list