Skip to content

Instantly share code, notes, and snippets.

View alpencolt's full-sized avatar
🏚️

Alexander Soldatov alpencolt

🏚️
View GitHub Profile
@alpencolt
alpencolt / gist:0580af0be86e49bb9d89508dabcd8615
Created June 7, 2019 15:28
CoreCLR 3.0 perfromance x64 vs ARM32
summary:
better: 50, geomean: 2.718
worse: 2389, geomean: 6.017
total diff: 2439
| Slower | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
| -------------------------------------------------------------------------------- | --------- | ----------------:| ----------------:| ---------- |
| System.Threading.Tests.Perf_Volatile.Read_double | Infinity | 0.00 | 143.30 | |
| System.Collections.CtorDefaultSize<Int32>.ImmutableSortedDictionary | Infinity | 0.00 | 0.89 | several? |
| System.Globalization.Tests.Perf_CultureInfo.GetInvariantCulture | Infinity | 0.00 | 0.62 | bimodal |
@alpencolt
alpencolt / gist:949acf29b9bb4f75ad9964b3df09768d
Created December 13, 2017 09:48
RyuJIT ARMEL Release tests
8931cfa4ebe94f57698b4c1b3ab5689cd467cb8e
=======================
Test Results
=======================
# CoreCLR Bin Dir :
# Tests Discovered : 11402
# Passed : 10574
# Failed : 22
# Skipped : 806
=======================
@alpencolt
alpencolt / gist:93fed4f72714f22cd1f26d8fbbd02ab0
Created December 13, 2017 09:48
RyuJIT ARM Release tests
8931cfa4ebe94f57698b4c1b3ab5689cd467cb8e
=======================
Test Results
=======================
# CoreCLR Bin Dir :
# Tests Discovered : 11402
# Passed : 10588
# Failed : 8
# Skipped : 806
=======================
diff --git a/lib/ObjWriter/objwriter.cpp b/lib/ObjWriter/objwriter.cpp
index 5024c55..c2f302c 100644
--- a/lib/ObjWriter/objwriter.cpp
+++ b/lib/ObjWriter/objwriter.cpp
@@ -303,6 +303,15 @@ void ObjectWriter::EmitIntValue(uint64_t Value, unsigned Size) {
void ObjectWriter::EmitSymbolDef(const char *SymbolName) {
MCSymbol *Sym = OutContext->getOrCreateSymbol(Twine(SymbolName));
Streamer->EmitSymbolAttribute(Sym, MCSA_Global);
+
+ // A Thumb2 function symbol should be marked with an appropriate ELF