mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-01 17:28:26 +00:00
6b673b85ed
Also, udpate the ~60 failing tests in the tree which did not contain a valid datalayout. This fixes PR31123. lld will be updated in a following patch, immediately after this is committed. Differential Revision: https://reviews.llvm.org/D27082 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289719 91177308-0d34-0410-b5e6-96231b3b80d8
23 lines
498 B
LLVM
23 lines
498 B
LLVM
; RUN: llvm-as %s -o %t.o
|
|
; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so -plugin-opt=emit-llvm \
|
|
; RUN: -shared %t.o -o %t2.o
|
|
; RUN: llvm-dis %t2.o -o - | FileCheck %s
|
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
target datalayout = "m:w"
|
|
|
|
; CHECK: define void @f() {
|
|
define void @f() {
|
|
ret void
|
|
}
|
|
|
|
; CHECK: define internal void @g() {
|
|
define hidden void @g() {
|
|
ret void
|
|
}
|
|
|
|
; CHECK: define internal void @h() {
|
|
define linkonce_odr void @h() local_unnamed_addr {
|
|
ret void
|
|
}
|