llvm.org GIT mirror llvm / 7520d84
--- Merging r127780 into '.': U test/MC/ELF/tls-i386.s U lib/MC/MCELFStreamer.cpp git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@128032 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 9 years ago
2 changed file(s) with 15 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
290290 switch (symRef.getKind()) {
291291 default:
292292 return;
293 case MCSymbolRefExpr::VK_GOTTPOFF:
294 case MCSymbolRefExpr::VK_INDNTPOFF:
293295 case MCSymbolRefExpr::VK_NTPOFF:
294296 case MCSymbolRefExpr::VK_GOTNTPOFF:
295297 case MCSymbolRefExpr::VK_TLSGD:
298 case MCSymbolRefExpr::VK_TLSLD:
296299 case MCSymbolRefExpr::VK_TLSLDM:
297300 case MCSymbolRefExpr::VK_TPOFF:
298301 case MCSymbolRefExpr::VK_DTPOFF:
299 case MCSymbolRefExpr::VK_GOTTPOFF:
300 case MCSymbolRefExpr::VK_TLSLD:
301302 case MCSymbolRefExpr::VK_ARM_TLSGD:
303 case MCSymbolRefExpr::VK_ARM_TPOFF:
304 case MCSymbolRefExpr::VK_ARM_GOTTPOFF:
302305 break;
303306 }
304307 MCSymbolData &SD = getAssembler().getOrCreateSymbolData(symRef.getSymbol());
77 movl foo4@TLSLDM(%eax), %eax
88 movl foo5@TPOFF(%eax), %eax
99 movl foo6@DTPOFF(%eax), %eax
10 movl foo7@INDNTPOFF, %eax
1011
1112 // CHECK: (('st_name', 0x00000001) # 'foo1'
1213 // CHECK-NEXT: ('st_value', 0x00000000)
6162 // CHECK-NEXT: ('st_other', 0x00000000)
6263 // CHECK-NEXT: ('st_shndx', 0x00000000)
6364 // CHECK-NEXT: ),
65 // CHECK-NEXT: # Symbol 0x0000000b
66 // CHECK-NEXT: (('st_name', 0x0000001f) # 'foo7'
67 // CHECK-NEXT: ('st_value', 0x00000000)
68 // CHECK-NEXT: ('st_size', 0x00000000)
69 // CHECK-NEXT: ('st_bind', 0x00000001)
70 // CHECK-NEXT: ('st_type', 0x00000006)
71 // CHECK-NEXT: ('st_other', 0x00000000)
72 // CHECK-NEXT: ('st_shndx', 0x00000000)
73 // CHECK-NEXT: ),