mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-29 08:31:13 +00:00
merge tests for constant linking.
llvm-svn: 220951
This commit is contained in:
parent
0ae225b6b5
commit
e5204efeaf
8
llvm/test/Linker/ConstantGlobals.ll
Normal file
8
llvm/test/Linker/ConstantGlobals.ll
Normal file
@ -0,0 +1,8 @@
|
||||
; RUN: llvm-link %s %S/Inputs/ConstantGlobals.ll -S | FileCheck %s
|
||||
; RUN: llvm-link %S/Inputs/ConstantGlobals.ll %s -S | FileCheck %s
|
||||
|
||||
; CHECK-DAG: @X = constant [1 x i32] [i32 8]
|
||||
@X = external global [1 x i32]
|
||||
|
||||
; CHECK-DAG: @Y = external global [1 x i32]
|
||||
@Y = external global [1 x i32]
|
@ -1,10 +0,0 @@
|
||||
; Test that appending linkage works correctly when arrays are the same size.
|
||||
|
||||
; RUN: echo "@X = constant [1 x i32] [i32 8] " | \
|
||||
; RUN: llvm-as > %t.2.bc
|
||||
; RUN: llvm-as < %s > %t.1.bc
|
||||
; RUN: llvm-link %t.1.bc %t.2.bc -S | FileCheck %s
|
||||
; CHECK: constant
|
||||
|
||||
@X = external global [1 x i32] ; <[1 x i32]*> [#uses=0]
|
||||
|
@ -1,10 +0,0 @@
|
||||
; Test that appending linkage works correctly when arrays are the same size.
|
||||
|
||||
; RUN: echo "@X = external global [1 x i32] " | \
|
||||
; RUN: llvm-as > %t.2.bc
|
||||
; RUN: llvm-as < %s > %t.1.bc
|
||||
; RUN: llvm-link %t.1.bc %t.2.bc -S | FileCheck %s
|
||||
; CHECK: constant
|
||||
|
||||
@X = constant [1 x i32] [ i32 12 ] ; <[1 x i32]*> [#uses=0]
|
||||
|
@ -1,6 +0,0 @@
|
||||
; RUN: llvm-link %s %S/Inputs/ConstantGlobals3.ll -S | FileCheck %s
|
||||
; RUN: llvm-link %S/Inputs/ConstantGlobals3.ll %s -S | FileCheck %s
|
||||
|
||||
; CHECK: @X = external global [1 x i32]
|
||||
|
||||
@X = external global [1 x i32]
|
2
llvm/test/Linker/Inputs/ConstantGlobals.ll
Normal file
2
llvm/test/Linker/Inputs/ConstantGlobals.ll
Normal file
@ -0,0 +1,2 @@
|
||||
@X = constant [1 x i32] [i32 8]
|
||||
@Y = external constant [1 x i32]
|
@ -1 +0,0 @@
|
||||
@X = external constant [1 x i32]
|
Loading…
Reference in New Issue
Block a user