diff options
author | tstellar <tstellar@91177308-0d34-0410-b5e6-96231b3b80d8> | 2012-09-24 15:52:43 +0000 |
---|---|---|
committer | tstellar <tstellar@91177308-0d34-0410-b5e6-96231b3b80d8> | 2012-09-24 15:52:43 +0000 |
commit | 1858cf7ae25b0a341635c4959255242688a21ce3 (patch) | |
tree | fa72b3680d52d2332d0ed84200faf113b1fe7d8b /test | |
parent | 2316b7062dfa639f54c197be1a691434f71a1621 (diff) |
R600: Add support for i8 reads on R600
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/R600/@164533 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/R600/load.i8.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/R600/load.i8.ll b/test/CodeGen/R600/load.i8.ll new file mode 100644 index 0000000000..4dfa541ab3 --- /dev/null +++ b/test/CodeGen/R600/load.i8.ll @@ -0,0 +1,10 @@ +;RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s + +;CHECK: VTX_READ_eg T{{[0-9]+\.X, T[0-9]+\.X}} + +define void @test(i32 addrspace(1)* %out, i8 addrspace(1)* %in) { + %1 = load i8 addrspace(1)* %in + %2 = zext i8 %1 to i32 + store i32 %2, i32 addrspace(1)* %out + ret void +} |