From 96301d2455e658aae00d99e3ad8ca65abc92a04c Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Tue, 28 Apr 2015 17:37:03 +0000 Subject: R600: Fix up for AsmPrinter's OutStreamer being a unique_ptr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes a crash with basically any OpenGL application using the radeonsi driver. Patch by: Michel Dänzer Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90176 Signed-off-by: Michel Dänzer llvm-svn: 236004 --- llvm/test/CodeGen/R600/debug.ll | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 llvm/test/CodeGen/R600/debug.ll (limited to 'llvm/test') diff --git a/llvm/test/CodeGen/R600/debug.ll b/llvm/test/CodeGen/R600/debug.ll new file mode 100644 index 00000000000..a2e0e878b74 --- /dev/null +++ b/llvm/test/CodeGen/R600/debug.ll @@ -0,0 +1,10 @@ +; RUN: llc < %s -march=amdgcn -mcpu=verde -verify-machineinstrs -mattr=dumpcode -filetype=obj | FileCheck --check-prefix=SI --check-prefix=FUNC %s +; RUN: llc < %s -march=amdgcn -mcpu=tonga -verify-machineinstrs -mattr=dumpcode -filetype=obj | FileCheck --check-prefix=SI --check-prefix=FUNC %s + +; Test for a crash in the custom assembly dump code. + +; SI: s_endpgm +define void @test(i32 addrspace(1)* %out) { + store i32 0, i32 addrspace(1)* %out + ret void +} -- cgit v1.2.3