aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/R600/elf.ll
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-04-15 17:51:21 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-04-15 17:51:21 +0000
commit3a63bf27c54e0975a219f723381494f2be52c7e2 (patch)
treed95c9afc9e2c043a96f634e7ca90ad4d877df0fa /test/CodeGen/R600/elf.ll
parent467116a1c89528963a18306c9b03a0e1e611f2c4 (diff)
downloadexternal_llvm-3a63bf27c54e0975a219f723381494f2be52c7e2.zip
external_llvm-3a63bf27c54e0975a219f723381494f2be52c7e2.tar.gz
external_llvm-3a63bf27c54e0975a219f723381494f2be52c7e2.tar.bz2
R600: Emit ELF formatted code rather than raw ISA.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179544 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/R600/elf.ll')
-rw-r--r--test/CodeGen/R600/elf.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/R600/elf.ll b/test/CodeGen/R600/elf.ll
new file mode 100644
index 0000000..470e4ca
--- /dev/null
+++ b/test/CodeGen/R600/elf.ll
@@ -0,0 +1,11 @@
+; RUN: llc < %s -march=r600 -mcpu=SI -filetype=obj | llvm-readobj -s - | FileCheck %s
+
+; CHECK: Format: ELF32
+define void @test(i32 %p) {
+ %i = add i32 %p, 2
+ %r = bitcast i32 %i to float
+ call void @llvm.SI.export(i32 15, i32 0, i32 1, i32 12, i32 0, float %r, float %r, float %r, float %r)
+ ret void
+}
+
+declare void @llvm.SI.export(i32, i32, i32, i32, i32, float, float, float, float)