From 01095a5d43bbfde13731688ddcf6048ebb8b7721 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 23 Jul 2016 20:41:05 +0000 Subject: Vendor import of llvm release_39 branch r276489: https://llvm.org/svn/llvm-project/llvm/branches/release_39@276489 --- test/CodeGen/AMDGPU/selected-stack-object.ll | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/CodeGen/AMDGPU/selected-stack-object.ll (limited to 'test/CodeGen/AMDGPU/selected-stack-object.ll') diff --git a/test/CodeGen/AMDGPU/selected-stack-object.ll b/test/CodeGen/AMDGPU/selected-stack-object.ll new file mode 100644 index 000000000000..37f2747d9815 --- /dev/null +++ b/test/CodeGen/AMDGPU/selected-stack-object.ll @@ -0,0 +1,15 @@ +; "Assertion failure" should be caught with both XFAIL:* and +Asserts. +; XFAIL: * +; REQUIRES: asserts + +; RUN: llc -march=amdgcn -mcpu=verde -verify-machineinstrs < %s | FileCheck %s + +; See also local-stack-slot-bug.ll +; This fails because a stack object is created during instruction selection. + +; CHECK-LABEL: {{^}}main: +define amdgpu_ps float @main(i32 %idx) { +main_body: + %v1 = extractelement <81 x float> , i32 %idx + ret float %v1 +} -- cgit v1.3