[llvm] r223417 - Add a few extra cases to the test. NFC.
Rafael Espindola
rafael.espindola at gmail.com
Thu Dec 4 16:02:42 PST 2014
Author: rafael
Date: Thu Dec 4 18:02:42 2014
New Revision: 223417
URL: http://llvm.org/viewvc/llvm-project?rev=223417&view=rev
Log:
Add a few extra cases to the test. NFC.
Modified:
llvm/trunk/test/Linker/Inputs/alignment.ll
llvm/trunk/test/Linker/alignment.ll
Modified: llvm/trunk/test/Linker/Inputs/alignment.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/Inputs/alignment.ll?rev=223417&r1=223416&r2=223417&view=diff
==============================================================================
--- llvm/trunk/test/Linker/Inputs/alignment.ll (original)
+++ llvm/trunk/test/Linker/Inputs/alignment.ll Thu Dec 4 18:02:42 2014
@@ -1 +1,12 @@
- at X = global i32 7, align 8
+ at A = global i32 7, align 8
+ at B = global i32 7, align 4
+
+define void @C() align 8 {
+ ret void
+}
+
+define void @D() align 4 {
+ ret void
+}
+
+ at E = common global i32 0, align 8
Modified: llvm/trunk/test/Linker/alignment.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/alignment.ll?rev=223417&r1=223416&r2=223417&view=diff
==============================================================================
--- llvm/trunk/test/Linker/alignment.ll (original)
+++ llvm/trunk/test/Linker/alignment.ll Thu Dec 4 18:02:42 2014
@@ -1,8 +1,22 @@
-; The linker should choose the largest alignment when linking.
-
; RUN: llvm-link %p/alignment.ll %p/Inputs/alignment.ll -S | FileCheck %s
; RUN: llvm-link %p/Inputs/alignment.ll %p/alignment.ll -S | FileCheck %s
-; CHECK: @X = global i32 7, align 8
- at X = weak global i32 7, align 4
+ at A = weak global i32 7, align 4
+; CHECK-DAG: @A = global i32 7, align 8
+
+ at B = weak global i32 7, align 8
+; CHECK-DAG: @B = global i32 7, align 4
+
+define weak void @C() align 4 {
+ ret void
+}
+; CHECK-DAG: define void @C() align 8 {
+
+define weak void @D() align 8 {
+ ret void
+}
+; CHECK-DAG: define void @D() align 4 {
+
+ at E = common global i32 0, align 4
+; CHECK-DAG: @E = common global i32 0, align 8
More information about the llvm-commits
mailing list