From f81836bd18be6fb8bc6fe9942053f418dbb13d98 Mon Sep 17 00:00:00 2001 From: Paul Robinson Date: Thu, 24 Mar 2016 00:10:03 +0000 Subject: [PS4] Guarantee an instruction after a 'noreturn' call. We need the "return address" of a noreturn call to be within the bounds of the calling function; TrapUnreachable turns 'unreachable' into a 'ud2' instruction, which has that desired effect. Differential Revision: http://reviews.llvm.org/D18414 llvm-svn: 264224 --- llvm/test/CodeGen/X86/br-fold.ll | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'llvm/test/CodeGen/X86/br-fold.ll') diff --git a/llvm/test/CodeGen/X86/br-fold.ll b/llvm/test/CodeGen/X86/br-fold.ll index fd1e73bde8c..5e5f860ffc7 100644 --- a/llvm/test/CodeGen/X86/br-fold.ll +++ b/llvm/test/CodeGen/X86/br-fold.ll @@ -2,6 +2,7 @@ ; RUN: llc -mtriple=x86_64-pc-linux < %s | FileCheck -check-prefix=X64_LINUX %s ; RUN: llc -mtriple=x86_64-pc-windows < %s | FileCheck -check-prefix=X64_WINDOWS %s ; RUN: llc -mtriple=x86_64-pc-windows-gnu < %s | FileCheck -check-prefix=X64_WINDOWS_GNU %s +; RUN: llc -mtriple=x86_64-scei-ps4 < %s | FileCheck -check-prefix=PS4 %s ; X64_DARWIN: orq ; X64_DARWIN-NEXT: %bb8.i329 @@ -15,6 +16,9 @@ ; X64_WINDOWS_GNU: orq %rax, %rcx ; X64_WINDOWS_GNU-NEXT: ud2 +; PS4: orq %rax, %rcx +; PS4-NEXT: ud2 + @_ZN11xercesc_2_513SchemaSymbols21fgURI_SCHEMAFORSCHEMAE = external constant [33 x i16], align 32 ; <[33 x i16]*> [#uses=1] @_ZN11xercesc_2_56XMLUni16fgNotationStringE = external constant [9 x i16], align 16 ; <[9 x i16]*> [#uses=1] -- cgit v1.2.3