[llvm-commits] [llvm] r123591 - in /llvm/trunk/test: CodeGen/Mips/2008-07-15-InternalConstant.ll CodeGen/X86/2009-01-27-NullStrings.ll CodeGen/X86/addr-label-difference.ll CodeGen/X86/global-sections.ll CodeGen/X86/rodata-relocs.ll CodeGen/XCore/globals.ll MC/ELF/entsize.ll

Rafael Espindola rafael.espindola at gmail.com
Sun Jan 16 10:02:57 PST 2011


Author: rafael
Date: Sun Jan 16 12:02:57 2011
New Revision: 123591

URL: http://llvm.org/viewvc/llvm-project?rev=123591&view=rev
Log:
Update tests.

Modified:
    llvm/trunk/test/CodeGen/Mips/2008-07-15-InternalConstant.ll
    llvm/trunk/test/CodeGen/X86/2009-01-27-NullStrings.ll
    llvm/trunk/test/CodeGen/X86/addr-label-difference.ll
    llvm/trunk/test/CodeGen/X86/global-sections.ll
    llvm/trunk/test/CodeGen/X86/rodata-relocs.ll
    llvm/trunk/test/CodeGen/XCore/globals.ll
    llvm/trunk/test/MC/ELF/entsize.ll

Modified: llvm/trunk/test/CodeGen/Mips/2008-07-15-InternalConstant.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Mips/2008-07-15-InternalConstant.ll?rev=123591&r1=123590&r2=123591&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/Mips/2008-07-15-InternalConstant.ll (original)
+++ llvm/trunk/test/CodeGen/Mips/2008-07-15-InternalConstant.ll Sun Jan 16 12:02:57 2011
@@ -7,8 +7,8 @@
 
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64"
 target triple = "mipsallegrexel-unknown-psp-elf"
- at .str = internal constant [10 x i8] c"AAAAAAAAA\00"
- at i0 = internal constant [5 x i32] [ i32 0, i32 1, i32 2, i32 3, i32 4 ] 
+ at .str = internal unnamed_addr constant [10 x i8] c"AAAAAAAAA\00"
+ at i0 = internal unnamed_addr constant [5 x i32] [ i32 0, i32 1, i32 2, i32 3, i32 4 ] 
 
 define i8* @foo() nounwind {
 entry:

Modified: llvm/trunk/test/CodeGen/X86/2009-01-27-NullStrings.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/2009-01-27-NullStrings.ll?rev=123591&r1=123590&r2=123591&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/2009-01-27-NullStrings.ll (original)
+++ llvm/trunk/test/CodeGen/X86/2009-01-27-NullStrings.ll Sun Jan 16 12:02:57 2011
@@ -1,7 +1,7 @@
 ; RUN: llc < %s -mtriple=i686-apple-darwin | FileCheck %s
 ; CHECK: .section __TEXT,__cstring,cstring_literals
 
- at x = internal constant [1 x i8] zeroinitializer		; <[1 x i8]*> [#uses=1]
+ at x = internal unnamed_addr constant [1 x i8] zeroinitializer		; <[1 x i8]*> [#uses=1]
 
 @y = global [1 x i8]* @x
 

Modified: llvm/trunk/test/CodeGen/X86/addr-label-difference.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/addr-label-difference.ll?rev=123591&r1=123590&r2=123591&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/addr-label-difference.ll (original)
+++ llvm/trunk/test/CodeGen/X86/addr-label-difference.ll Sun Jan 16 12:02:57 2011
@@ -5,7 +5,7 @@
 
 ; This array should go into the __TEXT,__const section, not into the
 ; __DATA,__const section, because the elements don't need relocations.
- at test.array = internal constant [3 x i32] [i32 sub (i32 ptrtoint (i8* blockaddress(@test, %foo) to i32), i32 ptrtoint (i8* blockaddress(@test, %foo) to i32)), i32 sub (i32 ptrtoint (i8* blockaddress(@test, %bar) to i32), i32 ptrtoint (i8* blockaddress(@test, %foo) to i32)), i32 sub (i32 ptrtoint (i8* blockaddress(@test, %hack) to i32), i32 ptrtoint (i8* blockaddress(@test, %foo) to i32))] ; <[3 x i32]*> [#uses=1]
+ at test.array = internal unnamed_addr constant [3 x i32] [i32 sub (i32 ptrtoint (i8* blockaddress(@test, %foo) to i32), i32 ptrtoint (i8* blockaddress(@test, %foo) to i32)), i32 sub (i32 ptrtoint (i8* blockaddress(@test, %bar) to i32), i32 ptrtoint (i8* blockaddress(@test, %foo) to i32)), i32 sub (i32 ptrtoint (i8* blockaddress(@test, %hack) to i32), i32 ptrtoint (i8* blockaddress(@test, %foo) to i32))] ; <[3 x i32]*> [#uses=1]
 
 define void @test(i32 %i) nounwind ssp {
 entry:

Modified: llvm/trunk/test/CodeGen/X86/global-sections.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/global-sections.ll?rev=123591&r1=123590&r2=123591&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/global-sections.ll (original)
+++ llvm/trunk/test/CodeGen/X86/global-sections.ll Sun Jan 16 12:02:57 2011
@@ -15,7 +15,7 @@
 
 
 ; const int G2 __attribute__((weak)) = 42;
- at G2 = weak_odr constant i32 42	
+ at G2 = weak_odr unnamed_addr constant i32 42	
 
 
 ; TODO: linux drops this into .rodata, we drop it into ".gnu.linkonce.r.G2"
@@ -26,7 +26,7 @@
 
 
 ; int * const G3 = &G1;
- at G3 = constant i32* @G1
+ at G3 = unnamed_addr constant i32* @G1
 
 ; DARWIN: .section        __DATA,__const
 ; DARWIN: .globl _G3
@@ -41,7 +41,7 @@
 
 
 ; _Complex long long const G4 = 34;
- at G4 = constant {i64,i64} { i64 34, i64 0 }
+ at G4 = unnamed_addr constant {i64,i64} { i64 34, i64 0 }
 
 ; DARWIN: .section        __TEXT,__const
 ; DARWIN: _G4:
@@ -76,7 +76,7 @@
 ; DARWIN: "_foo bar":
 
 ; PR4650
- at G6 = weak_odr constant [1 x i8] c"\01"
+ at G6 = weak_odr unnamed_addr constant [1 x i8] c"\01"
 
 ; LINUX:   .type	G6, at object
 ; LINUX:   .section	.gnu.linkonce.r.G6,"a", at progbits
@@ -92,7 +92,7 @@
 ; DARWIN:  .byte 1
 
 
- at G7 = constant [10 x i8] c"abcdefghi\00"
+ at G7 = unnamed_addr constant [10 x i8] c"abcdefghi\00"
 
 ; DARWIN:	__TEXT,__cstring,cstring_literals
 ; DARWIN:	.globl _G7
@@ -108,7 +108,7 @@
 ; LINUX-SECTIONS:	.globl G7
 
 
- at G8 = constant [4 x i16] [ i16 1, i16 2, i16 3, i16 0 ]
+ at G8 = unnamed_addr constant [4 x i16] [ i16 1, i16 2, i16 3, i16 0 ]
 
 ; DARWIN:	.section	__TEXT,__const
 ; DARWIN:	.globl _G8
@@ -118,7 +118,7 @@
 ; LINUX:	.globl G8
 ; LINUX:G8:
 
- at G9 = constant [4 x i32] [ i32 1, i32 2, i32 3, i32 0 ]
+ at G9 = unnamed_addr constant [4 x i32] [ i32 1, i32 2, i32 3, i32 0 ]
 
 ; DARWIN:	.globl _G9
 ; DARWIN: _G9:

Modified: llvm/trunk/test/CodeGen/X86/rodata-relocs.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/rodata-relocs.ll?rev=123591&r1=123590&r2=123591&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/rodata-relocs.ll (original)
+++ llvm/trunk/test/CodeGen/X86/rodata-relocs.ll Sun Jan 16 12:02:57 2011
@@ -8,14 +8,14 @@
 
 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
 target triple = "x86_64-unknown-linux-gnu"
- at a = internal constant [2 x i32] [i32 1, i32 2]
- at a1 = constant [2 x i32] [i32 1, i32 2]
- at e = internal constant [2 x [2 x i32]] [[2 x i32] [i32 1, i32 2], [2 x i32] [i32 3, i32 4]], align 16
- at e1 = constant [2 x [2 x i32]] [[2 x i32] [i32 1, i32 2], [2 x i32] [i32 3, i32 4]], align 16
- at p = constant i8* bitcast ([2 x i32]* @a to i8*)
- at t = constant i8* bitcast ([2 x [2 x i32]]* @e to i8*)
- at p1 = constant i8* bitcast ([2 x i32]* @a1 to i8*)
- at t1 = constant i8* bitcast ([2 x [2 x i32]]* @e1 to i8*)
+ at a = internal unnamed_addr constant [2 x i32] [i32 1, i32 2]
+ at a1 = unnamed_addr constant [2 x i32] [i32 1, i32 2]
+ at e = internal  unnamed_addr constant [2 x [2 x i32]] [[2 x i32] [i32 1, i32 2], [2 x i32] [i32 3, i32 4]], align 16
+ at e1 = unnamed_addr constant [2 x [2 x i32]] [[2 x i32] [i32 1, i32 2], [2 x i32] [i32 3, i32 4]], align 16
+ at p = unnamed_addr constant i8* bitcast ([2 x i32]* @a to i8*)
+ at t = unnamed_addr constant i8* bitcast ([2 x [2 x i32]]* @e to i8*)
+ at p1 = unnamed_addr constant i8* bitcast ([2 x i32]* @a1 to i8*)
+ at t1 = unnamed_addr constant i8* bitcast ([2 x [2 x i32]]* @e1 to i8*)
 @p2 = internal global i8* bitcast([2 x i32]* @a1 to i8*)
 @t2 = internal global i8* bitcast([2 x [2 x i32]]* @e1 to i8*)
 @p3 = internal global i8* bitcast([2 x i32]* @a to i8*)

Modified: llvm/trunk/test/CodeGen/XCore/globals.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/XCore/globals.ll?rev=123591&r1=123590&r2=123591&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/XCore/globals.ll (original)
+++ llvm/trunk/test/CodeGen/XCore/globals.ll Sun Jan 16 12:02:57 2011
@@ -67,7 +67,7 @@
 ; CHECK: .section .dp.bss,"awd", at nobits
 ; CHECK: G2:
 
- at G3 = constant i32 9401
+ at G3 = unnamed_addr constant i32 9401
 ; CHECK: .section .cp.rodata.cst4,"aMc", at progbits,4
 ; CHECK: G3:
 
@@ -75,7 +75,7 @@
 ; CHECK: .section .dp.data,"awd", at progbits
 ; CHECK: G4:
 
- at G5 = constant i32* @G1
+ at G5 = unnamed_addr constant i32* @G1
 ; CHECK: .section .cp.rodata,"ac", at progbits
 ; CHECK: G5:
 
@@ -83,7 +83,7 @@
 ; CHECK: .section .dp.data,"awd", at progbits
 ; CHECK: G6:
 
- at G7 = constant i32* @G8
+ at G7 = unnamed_addr constant i32* @G8
 ; CHECK: .section .cp.rodata,"ac", at progbits
 ; CHECK: G7:
 

Modified: llvm/trunk/test/MC/ELF/entsize.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ELF/entsize.ll?rev=123591&r1=123590&r2=123591&view=diff
==============================================================================
--- llvm/trunk/test/MC/ELF/entsize.ll (original)
+++ llvm/trunk/test/MC/ELF/entsize.ll Sun Jan 16 12:02:57 2011
@@ -2,10 +2,10 @@
 
 ; Test that constant mergeable strings have sh_entsize set.
 
- at .str1 = private constant [6 x i8] c"tring\00"
- at .str2 = private constant [7 x i8] c"String\00"
- at .c8a = private constant [1 x i64] [i64 42]
- at .c8b = private constant [1 x i64] [i64 42]
+ at .str1 = private unnamed_addr constant [6 x i8] c"tring\00"
+ at .str2 = private unnamed_addr constant [7 x i8] c"String\00"
+ at .c8a = private unnamed_addr constant [1 x i64] [i64 42]
+ at .c8b = private unnamed_addr constant [1 x i64] [i64 42]
 
 define i32 @main() nounwind {
   %1 = call i32 @puts(i8* getelementptr inbounds ([6 x i8]* @.str1, i32 0, i32 0))





More information about the llvm-commits mailing list