brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 8ea7787 Raw
31 lines · plain
1; RUN: llc -mtriple i686-windows-itanium -filetype asm -o - %s | FileCheck %s -check-prefix CHECK-ASM2; RUN: llc -mtriple i686-windows-itanium -filetype obj -o - %s | llvm-readobj -r - | FileCheck %s -check-prefix CHECK-OBJ3 4@get_count_incremented.count = internal thread_local unnamed_addr global i32 0, align 45 6define i32 @get_count_incremented() {7entry:8  %0 = load i32, ptr @get_count_incremented.count, align 49  %inc = add i32 %0, 110  store i32 %inc, ptr @get_count_incremented.count, align 411  ret i32 %inc12}13 14; CHECK-ASM-LABEL: _get_count_incremented:15; CHECK-ASM: movl __tls_index, %eax16; CHECK-ASM: movl %fs:__tls_array, %ecx17; CHECK-ASM: movl (%ecx,%eax,4), %ecx18; CHECK-ASM: _get_count_incremented.count@SECREL32(%ecx), %eax19; CHECK-ASM: incl %eax20; CHECK-ASM: movl %eax, _get_count_incremented.count@SECREL32(%ecx)21; CHECK-ASM: retl22 23; CHECK-OBJ: Relocations [24; CHECK-OBJ:   Section ({{[0-9]+}}) .text {25; CHECK-OBJ:     0x1 IMAGE_REL_I386_DIR32 __tls_index26; CHECK-OBJ:     0x8 IMAGE_REL_I386_DIR32 __tls_array27; CHECK-OBJ:     0x11 IMAGE_REL_I386_SECREL _get_count_incremented.count28; CHECK-OBJ:     0x18 IMAGE_REL_I386_SECREL _get_count_incremented.count29; CHECK-OBJ:   }30; CHECK-OBJ: ]31