From 3a63bf27c54e0975a219f723381494f2be52c7e2 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Mon, 15 Apr 2013 17:51:21 +0000 Subject: 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 --- test/CodeGen/R600/elf.ll | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/CodeGen/R600/elf.ll (limited to 'test/CodeGen/R600/elf.ll') 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) -- cgit v1.1