summaryrefslogtreecommitdiffstats
path: root/llvm/test
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
commit9991659fab63430e665d8c7e49ee6e9d74edb413 (patch)
treeb75177952509a8c7c0ea14126af044a8fdb31eb6 /llvm/test
parent87223541cecf911a9968c535e2049f07c11d2a7d (diff)
downloadbcm5719-llvm-9991659fab63430e665d8c7e49ee6e9d74edb413.tar.gz
bcm5719-llvm-9991659fab63430e665d8c7e49ee6e9d74edb413.zip
R600: Emit ELF formatted code rather than raw ISA.
llvm-svn: 179544
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/R600/elf.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/R600/elf.ll b/llvm/test/CodeGen/R600/elf.ll
new file mode 100644
index 00000000000..470e4cac0fb
--- /dev/null
+++ b/llvm/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)
OpenPOWER on IntegriCloud