| Index: tests_lit/llvm2ice_tests/globalrelocs.ll
|
| diff --git a/tests_lit/llvm2ice_tests/globalrelocs.ll b/tests_lit/llvm2ice_tests/globalrelocs.ll
|
| index 7e6a01c261e0d2a4617ff71bcaf8822461e9ff4c..0d163e6b6d9ea33c8509632018755161641389ce 100644
|
| --- a/tests_lit/llvm2ice_tests/globalrelocs.ll
|
| +++ b/tests_lit/llvm2ice_tests/globalrelocs.ll
|
| @@ -16,8 +16,8 @@
|
|
|
| @bytes = internal global [7 x i8] c"abcdefg"
|
| ; DUMP: @bytes = internal global [7 x i8] c"abcdefg"
|
| -; CHECK: .type bytes,@object
|
| -; CHECK: .section .data,"aw",@progbits
|
| +; CHECK: .type bytes,%object
|
| +; CHECK: .section .data,"aw",%progbits
|
| ; CHECK:bytes:
|
| ; CHECK: .byte 97
|
| ; CHECK: .byte 98
|
| @@ -30,8 +30,8 @@
|
|
|
| @const_bytes = internal constant [7 x i8] c"abcdefg"
|
| ; DUMP: @const_bytes = internal constant [7 x i8] c"abcdefg"
|
| -; CHECK: .type const_bytes,@object
|
| -; CHECK: .section .rodata,"a",@progbits
|
| +; CHECK: .type const_bytes,%object
|
| +; CHECK: .section .rodata,"a",%progbits
|
| ; CHECK:const_bytes:
|
| ; CHECK: .byte 97
|
| ; CHECK: .byte 98
|
| @@ -44,40 +44,40 @@
|
|
|
| @ptr_to_ptr = internal global i32 ptrtoint (i32* @ptr to i32)
|
| ; DUMP: @ptr_to_ptr = internal global i32 ptrtoint (i32* @ptr to i32)
|
| -; CHECK: .type ptr_to_ptr,@object
|
| -; CHECK: .section .data,"aw",@progbits
|
| +; CHECK: .type ptr_to_ptr,%object
|
| +; CHECK: .section .data,"aw",%progbits
|
| ; CHECK:ptr_to_ptr:
|
| ; CHECK: .long ptr
|
| ; CHECK: .size ptr_to_ptr, 4
|
|
|
| @const_ptr_to_ptr = internal constant i32 ptrtoint (i32* @ptr to i32)
|
| ; DUMP: @const_ptr_to_ptr = internal constant i32 ptrtoint (i32* @ptr to i32)
|
| -; CHECK: .type const_ptr_to_ptr,@object
|
| -; CHECK: .section .rodata,"a",@progbits
|
| +; CHECK: .type const_ptr_to_ptr,%object
|
| +; CHECK: .section .rodata,"a",%progbits
|
| ; CHECK:const_ptr_to_ptr:
|
| ; CHECK: .long ptr
|
| ; CHECK: .size const_ptr_to_ptr, 4
|
|
|
| @ptr_to_func = internal global i32 ptrtoint (void ()* @func to i32)
|
| ; DUMP: @ptr_to_func = internal global i32 ptrtoint (void ()* @func to i32)
|
| -; CHECK: .type ptr_to_func,@object
|
| -; CHECK: .section .data,"aw",@progbits
|
| +; CHECK: .type ptr_to_func,%object
|
| +; CHECK: .section .data,"aw",%progbits
|
| ; CHECK:ptr_to_func:
|
| ; CHECK: .long func
|
| ; CHECK: .size ptr_to_func, 4
|
|
|
| @const_ptr_to_func = internal constant i32 ptrtoint (void ()* @func to i32)
|
| ; DUMP: @const_ptr_to_func = internal constant i32 ptrtoint (void ()* @func to i32)
|
| -; CHECK: .type const_ptr_to_func,@object
|
| -; CHECK: .section .rodata,"a",@progbits
|
| +; CHECK: .type const_ptr_to_func,%object
|
| +; CHECK: .section .rodata,"a",%progbits
|
| ; CHECK:const_ptr_to_func:
|
| ; CHECK: .long func
|
| ; CHECK: .size const_ptr_to_func, 4
|
|
|
| @compound = internal global <{ [3 x i8], i32 }> <{ [3 x i8] c"foo", i32 ptrtoint (void ()* @func to i32) }>
|
| ; DUMP: @compound = internal global <{ [3 x i8], i32 }> <{ [3 x i8] c"foo", i32 ptrtoint (void ()* @func to i32) }>
|
| -; CHECK: .type compound,@object
|
| -; CHECK: .section .data,"aw",@progbits
|
| +; CHECK: .type compound,%object
|
| +; CHECK: .section .data,"aw",%progbits
|
| ; CHECK:compound:
|
| ; CHECK: .byte 102
|
| ; CHECK: .byte 111
|
| @@ -87,8 +87,8 @@
|
|
|
| @const_compound = internal constant <{ [3 x i8], i32 }> <{ [3 x i8] c"foo", i32 ptrtoint (void ()* @func to i32) }>
|
| ; DUMP: @const_compound = internal constant <{ [3 x i8], i32 }> <{ [3 x i8] c"foo", i32 ptrtoint (void ()* @func to i32) }>
|
| -; CHECK: .type const_compound,@object
|
| -; CHECK: .section .rodata,"a",@progbits
|
| +; CHECK: .type const_compound,%object
|
| +; CHECK: .section .rodata,"a",%progbits
|
| ; CHECK:const_compound:
|
| ; CHECK: .byte 102
|
| ; CHECK: .byte 111
|
| @@ -98,162 +98,162 @@
|
|
|
| @ptr = internal global i32 ptrtoint ([7 x i8]* @bytes to i32)
|
| ; DUMP: @ptr = internal global i32 ptrtoint ([7 x i8]* @bytes to i32)
|
| -; CHECK: .type ptr,@object
|
| -; CHECK: .section .data,"aw",@progbits
|
| +; CHECK: .type ptr,%object
|
| +; CHECK: .section .data,"aw",%progbits
|
| ; CHECK:ptr:
|
| ; CHECK: .long bytes
|
| ; CHECK: .size ptr, 4
|
|
|
| @const_ptr = internal constant i32 ptrtoint ([7 x i8]* @bytes to i32)
|
| ; DUMP: @const_ptr = internal constant i32 ptrtoint ([7 x i8]* @bytes to i32)
|
| -; CHECK: .type const_ptr,@object
|
| -; CHECK: .section .rodata,"a",@progbits
|
| +; CHECK: .type const_ptr,%object
|
| +; CHECK: .section .rodata,"a",%progbits
|
| ; CHECK:const_ptr:
|
| ; CHECK: .long bytes
|
| ; CHECK: .size const_ptr, 4
|
|
|
| @addend_ptr = internal global i32 add (i32 ptrtoint (i32* @ptr to i32), i32 1)
|
| ; DUMP: @addend_ptr = internal global i32 add (i32 ptrtoint (i32* @ptr to i32), i32 1)
|
| -; CHECK: .type addend_ptr,@object
|
| -; CHECK: .section .data,"aw",@progbits
|
| +; CHECK: .type addend_ptr,%object
|
| +; CHECK: .section .data,"aw",%progbits
|
| ; CHECK:addend_ptr:
|
| ; CHECK: .long ptr + 1
|
| ; CHECK: .size addend_ptr, 4
|
|
|
| @const_addend_ptr = internal constant i32 add (i32 ptrtoint (i32* @ptr to i32), i32 1)
|
| ; DUMP: @const_addend_ptr = internal constant i32 add (i32 ptrtoint (i32* @ptr to i32), i32 1)
|
| -; CHECK: .type const_addend_ptr,@object
|
| -; CHECK: .section .rodata,"a",@progbits
|
| +; CHECK: .type const_addend_ptr,%object
|
| +; CHECK: .section .rodata,"a",%progbits
|
| ; CHECK:const_addend_ptr:
|
| ; CHECK: .long ptr + 1
|
| ; CHECK: .size const_addend_ptr, 4
|
|
|
| @addend_negative = internal global i32 add (i32 ptrtoint (i32* @ptr to i32), i32 -1)
|
| ; DUMP: @addend_negative = internal global i32 add (i32 ptrtoint (i32* @ptr to i32), i32 -1)
|
| -; CHECK: .type addend_negative,@object
|
| -; CHECK: .section .data,"aw",@progbits
|
| +; CHECK: .type addend_negative,%object
|
| +; CHECK: .section .data,"aw",%progbits
|
| ; CHECK:addend_negative:
|
| ; CHECK: .long ptr - 1
|
| ; CHECK: .size addend_negative, 4
|
|
|
| @const_addend_negative = internal constant i32 add (i32 ptrtoint (i32* @ptr to i32), i32 -1)
|
| ; DUMP: @const_addend_negative = internal constant i32 add (i32 ptrtoint (i32* @ptr to i32), i32 -1)
|
| -; CHECK: .type const_addend_negative,@object
|
| -; CHECK: .section .rodata,"a",@progbits
|
| +; CHECK: .type const_addend_negative,%object
|
| +; CHECK: .section .rodata,"a",%progbits
|
| ; CHECK:const_addend_negative:
|
| ; CHECK: .long ptr - 1
|
| ; CHECK: .size const_addend_negative, 4
|
|
|
| @addend_array1 = internal global i32 add (i32 ptrtoint ([7 x i8]* @bytes to i32), i32 1)
|
| ; DUMP: @addend_array1 = internal global i32 add (i32 ptrtoint ([7 x i8]* @bytes to i32), i32 1)
|
| -; CHECK: .type addend_array1,@object
|
| -; CHECK: .section .data,"aw",@progbits
|
| +; CHECK: .type addend_array1,%object
|
| +; CHECK: .section .data,"aw",%progbits
|
| ; CHECK:addend_array1:
|
| ; CHECK: .long bytes + 1
|
| ; CHECK: .size addend_array1, 4
|
|
|
| @const_addend_array1 = internal constant i32 add (i32 ptrtoint ([7 x i8]* @bytes to i32), i32 1)
|
| ; DUMP: @const_addend_array1 = internal constant i32 add (i32 ptrtoint ([7 x i8]* @bytes to i32), i32 1)
|
| -; CHECK: .type const_addend_array1,@object
|
| -; CHECK: .section .rodata,"a",@progbits
|
| +; CHECK: .type const_addend_array1,%object
|
| +; CHECK: .section .rodata,"a",%progbits
|
| ; CHECK:const_addend_array1:
|
| ; CHECK: .long bytes + 1
|
| ; CHECK: .size const_addend_array1, 4
|
|
|
| @addend_array2 = internal global i32 add (i32 ptrtoint ([7 x i8]* @bytes to i32), i32 7)
|
| ; DUMP: @addend_array2 = internal global i32 add (i32 ptrtoint ([7 x i8]* @bytes to i32), i32 7)
|
| -; CHECK: .type addend_array2,@object
|
| -; CHECK: .section .data,"aw",@progbits
|
| +; CHECK: .type addend_array2,%object
|
| +; CHECK: .section .data,"aw",%progbits
|
| ; CHECK:addend_array2:
|
| ; CHECK: .long bytes + 7
|
| ; CHECK: .size addend_array2, 4
|
|
|
| @const_addend_array2 = internal constant i32 add (i32 ptrtoint ([7 x i8]* @bytes to i32), i32 7)
|
| ; DUMP: @const_addend_array2 = internal constant i32 add (i32 ptrtoint ([7 x i8]* @bytes to i32), i32 7)
|
| -; CHECK: .type const_addend_array2,@object
|
| -; CHECK: .section .rodata,"a",@progbits
|
| +; CHECK: .type const_addend_array2,%object
|
| +; CHECK: .section .rodata,"a",%progbits
|
| ; CHECK:const_addend_array2:
|
| ; CHECK: .long bytes + 7
|
| ; CHECK: .size const_addend_array2, 4
|
|
|
| @addend_array3 = internal global i32 add (i32 ptrtoint ([7 x i8]* @bytes to i32), i32 9)
|
| ; DUMP: @addend_array3 = internal global i32 add (i32 ptrtoint ([7 x i8]* @bytes to i32), i32 9)
|
| -; CHECK: .type addend_array3,@object
|
| -; CHECK: .section .data,"aw",@progbits
|
| +; CHECK: .type addend_array3,%object
|
| +; CHECK: .section .data,"aw",%progbits
|
| ; CHECK:addend_array3:
|
| ; CHECK: .long bytes + 9
|
| ; CHECK: .size addend_array3, 4
|
|
|
| @const_addend_array3 = internal constant i32 add (i32 ptrtoint ([7 x i8]* @bytes to i32), i32 9)
|
| ; DUMP: @const_addend_array3 = internal constant i32 add (i32 ptrtoint ([7 x i8]* @bytes to i32), i32 9)
|
| -; CHECK: .type const_addend_array3,@object
|
| -; CHECK: .section .rodata,"a",@progbits
|
| +; CHECK: .type const_addend_array3,%object
|
| +; CHECK: .section .rodata,"a",%progbits
|
| ; CHECK:const_addend_array3:
|
| ; CHECK: .long bytes + 9
|
| ; CHECK: .size const_addend_array3, 4
|
|
|
| @addend_struct1 = internal global i32 add (i32 ptrtoint (<{ [3 x i8], i32 }>* @compound to i32), i32 1)
|
| ; DUMP: @addend_struct1 = internal global i32 add (i32 ptrtoint (<{ [3 x i8], i32 }>* @compound to i32), i32 1)
|
| -; CHECK: .type addend_struct1,@object
|
| -; CHECK: .section .data,"aw",@progbits
|
| +; CHECK: .type addend_struct1,%object
|
| +; CHECK: .section .data,"aw",%progbits
|
| ; CHECK:addend_struct1:
|
| ; CHECK: .long compound + 1
|
| ; CHECK: .size addend_struct1, 4
|
|
|
| @const_addend_struct1 = internal constant i32 add (i32 ptrtoint (<{ [3 x i8], i32 }>* @compound to i32), i32 1)
|
| ; DUMP: @const_addend_struct1 = internal constant i32 add (i32 ptrtoint (<{ [3 x i8], i32 }>* @compound to i32), i32 1)
|
| -; CHECK: .type const_addend_struct1,@object
|
| -; CHECK: .section .rodata,"a",@progbits
|
| +; CHECK: .type const_addend_struct1,%object
|
| +; CHECK: .section .rodata,"a",%progbits
|
| ; CHECK:const_addend_struct1:
|
| ; CHECK: .long compound + 1
|
| ; CHECK: .size const_addend_struct1, 4
|
|
|
| @addend_struct2 = internal global i32 add (i32 ptrtoint (<{ [3 x i8], i32 }>* @compound to i32), i32 4)
|
| ; DUMP: @addend_struct2 = internal global i32 add (i32 ptrtoint (<{ [3 x i8], i32 }>* @compound to i32), i32 4)
|
| -; CHECK: .type addend_struct2,@object
|
| -; CHECK: .section .data,"aw",@progbits
|
| +; CHECK: .type addend_struct2,%object
|
| +; CHECK: .section .data,"aw",%progbits
|
| ; CHECK:addend_struct2:
|
| ; CHECK: .long compound + 4
|
| ; CHECK: .size addend_struct2, 4
|
|
|
| @const_addend_struct2 = internal constant i32 add (i32 ptrtoint (<{ [3 x i8], i32 }>* @compound to i32), i32 4)
|
| ; DUMP: @const_addend_struct2 = internal constant i32 add (i32 ptrtoint (<{ [3 x i8], i32 }>* @compound to i32), i32 4)
|
| -; CHECK: .type const_addend_struct2,@object
|
| -; CHECK: .section .rodata,"a",@progbits
|
| +; CHECK: .type const_addend_struct2,%object
|
| +; CHECK: .section .rodata,"a",%progbits
|
| ; CHECK:const_addend_struct2:
|
| ; CHECK: .long compound + 4
|
| ; CHECK: .size const_addend_struct2, 4
|
|
|
| @ptr_to_func_align = internal global i32 ptrtoint (void ()* @func to i32), align 8
|
| ; DUMP: @ptr_to_func_align = internal global i32 ptrtoint (void ()* @func to i32), align 8
|
| -; CHECK: .type ptr_to_func_align,@object
|
| -; CHECK: .section .data,"aw",@progbits
|
| -; CHECK: .align 8
|
| +; CHECK: .type ptr_to_func_align,%object
|
| +; CHECK: .section .data,"aw",%progbits
|
| +; CHECK: .p2align 3
|
| ; CHECK:ptr_to_func_align:
|
| ; CHECK: .long func
|
| ; CHECK: .size ptr_to_func_align, 4
|
|
|
| @const_ptr_to_func_align = internal constant i32 ptrtoint (void ()* @func to i32), align 8
|
| ; DUMP: @const_ptr_to_func_align = internal constant i32 ptrtoint (void ()* @func to i32), align 8
|
| -; CHECK: .type const_ptr_to_func_align,@object
|
| -; CHECK: .section .rodata,"a",@progbits
|
| -; CHECK: .align 8
|
| +; CHECK: .type const_ptr_to_func_align,%object
|
| +; CHECK: .section .rodata,"a",%progbits
|
| +; CHECK: .p2align 3
|
| ; CHECK:const_ptr_to_func_align:
|
| ; CHECK: .long func
|
| ; CHECK: .size const_ptr_to_func_align, 4
|
|
|
| @char = internal constant [1 x i8] c"0"
|
| ; DUMP: @char = internal constant [1 x i8] c"0"
|
| -; CHECK: .type char,@object
|
| -; CHECK: .section .rodata,"a",@progbits
|
| +; CHECK: .type char,%object
|
| +; CHECK: .section .rodata,"a",%progbits
|
| ; CHECK:char:
|
| ; CHECK: .byte 48
|
| ; CHECK: .size char, 1
|
|
|
| @short = internal constant [2 x i8] zeroinitializer
|
| ; DUMP: @short = internal constant [2 x i8] zeroinitializer
|
| -; CHECK: .type short,@object
|
| -; CHECK: .section .rodata,"a",@progbits
|
| +; CHECK: .type short,%object
|
| +; CHECK: .section .rodata,"a",%progbits
|
| ; CHECK:short:
|
| ; CHECK: .zero 2
|
| ; CHECK: .size short, 2
|
|
|