public void StoreAlignment_Expected_Ok() { LStore store = new LStore(_src, _dst) { Alignment = 5012 }; Assert.AreEqual( $"{LKeywords.Store} {_src.ParseType()} {_src.ValueOrIdentifier}, {_dst.ParseType()} {_dst.Identifier}, {LKeywords.Align} 5012", LHelper.Trim(store.ParseInstruction())); }
public void StoreIsAtomic_Expected_Ok() { LStore store = new LStore(_src, _dst) { IsAtomic = true }; Assert.AreEqual( $"{LKeywords.Store} {LKeywords.Atomic} {_src.ParseType()} {_src.ValueOrIdentifier}, {_dst.ParseType()} {_dst.Identifier}", LHelper.Trim(store.ParseInstruction())); }
public void StoreIsAtomicVolatileAlignment_Hardcoded_Expected_Ok() { LStore store = new LStore(_src, _dst) { IsAtomic = true, IsVolatile = true, Alignment = 5012 }; Assert.AreEqual( $"store atomic volatile i32 {_src.ValueOrIdentifier}, i32* {_dst.Identifier}, align 5012", LHelper.Trim(store.ParseInstruction())); }