diff options
Diffstat (limited to 'test/MC/COFF')
-rw-r--r-- | test/MC/COFF/global_ctors_dtors.ll | 6 | ||||
-rw-r--r-- | test/MC/COFF/ir-to-imgrel.ll | 5 | ||||
-rw-r--r--[-rwxr-xr-x] | test/MC/COFF/linker-options.ll | 0 | ||||
-rw-r--r-- | test/MC/COFF/tricky-names.ll | 6 |
4 files changed, 11 insertions, 6 deletions
diff --git a/test/MC/COFF/global_ctors_dtors.ll b/test/MC/COFF/global_ctors_dtors.ll index be92c27..e8f4986 100644 --- a/test/MC/COFF/global_ctors_dtors.ll +++ b/test/MC/COFF/global_ctors_dtors.ll @@ -21,7 +21,7 @@ declare i32 @puts(i8*) define void @a_global_ctor() nounwind { - %1 = call i32 @puts(i8* getelementptr inbounds ([13 x i8]* @.str, i32 0, i32 0)) + %1 = call i32 @puts(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i32 0, i32 0)) ret void } @@ -40,12 +40,12 @@ define void @c_global_ctor() nounwind { } define void @a_global_dtor() nounwind { - %1 = call i32 @puts(i8* getelementptr inbounds ([12 x i8]* @.str2, i32 0, i32 0)) + %1 = call i32 @puts(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str2, i32 0, i32 0)) ret void } define i32 @main() nounwind { - %1 = call i32 @puts(i8* getelementptr inbounds ([5 x i8]* @.str3, i32 0, i32 0)) + %1 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str3, i32 0, i32 0)) ret i32 0 } diff --git a/test/MC/COFF/ir-to-imgrel.ll b/test/MC/COFF/ir-to-imgrel.ll index dfc88b2..21198cf 100644 --- a/test/MC/COFF/ir-to-imgrel.ll +++ b/test/MC/COFF/ir-to-imgrel.ll @@ -4,3 +4,8 @@ ; X64: .quad "?x@@3HA"@IMGREL @"\01?x@@3HA" = global i64 sub nsw (i64 ptrtoint (i64* @"\01?x@@3HA" to i64), i64 ptrtoint (i8* @__ImageBase to i64)), align 8 + +declare void @f() + +; X64: .quad f@IMGREL +@fp = global i64 sub nsw (i64 ptrtoint (void ()* @f to i64), i64 ptrtoint (i8* @__ImageBase to i64)), align 8 diff --git a/test/MC/COFF/linker-options.ll b/test/MC/COFF/linker-options.ll index afc55af..afc55af 100755..100644 --- a/test/MC/COFF/linker-options.ll +++ b/test/MC/COFF/linker-options.ll diff --git a/test/MC/COFF/tricky-names.ll b/test/MC/COFF/tricky-names.ll index 458aa41..f34b76a 100644 --- a/test/MC/COFF/tricky-names.ll +++ b/test/MC/COFF/tricky-names.ll @@ -10,9 +10,9 @@ @"\01@foo.bar" = global i32 0 define weak i32 @"\01??_B?$num_put@_WV?$back_insert_iterator@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@std@@@std@@51"() section ".text" { - %a = load i32* @"\01??__E_Generic_object@?$_Error_objects@H@std@@YAXXZ" - %b = load i32* @"\01__ZL16ExceptionHandlerP19_EXCEPTION_POINTERS@4" - %c = load i32* @"\01@foo.bar" + %a = load i32, i32* @"\01??__E_Generic_object@?$_Error_objects@H@std@@YAXXZ" + %b = load i32, i32* @"\01__ZL16ExceptionHandlerP19_EXCEPTION_POINTERS@4" + %c = load i32, i32* @"\01@foo.bar" %x = add i32 %a, %b %y = add i32 %x, %c ret i32 %y |