summaryrefslogtreecommitdiff
path: root/test/align13.asm
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-09-25 02:31:50 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-09-25 02:31:50 -0700
commit152656f8d3c34a1a5efef6d512439fc686690ecf (patch)
tree7276331cf0219c2f3ac72a92d064a895c4b67834 /test/align13.asm
parent6e79efc26b04dc7e82b528e8ff3e5f92d5f284b7 (diff)
downloadnasm-152656f8d3c34a1a5efef6d512439fc686690ecf.tar.gz
Actually make non-power-of-2 alignments work
We can't use ($$-$) % (%1) since the wraparound will be wrong except for powers of 2. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'test/align13.asm')
-rw-r--r--test/align13.asm16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/align13.asm b/test/align13.asm
new file mode 100644
index 00000000..7f5b70fb
--- /dev/null
+++ b/test/align13.asm
@@ -0,0 +1,16 @@
+; Test of non-power-of-2 alignment
+
+ bits 32
+
+ inc eax
+ inc eax
+ align 13
+ inc eax
+ inc eax
+ align 13
+ inc eax
+ inc eax
+ align 13
+ inc eax
+ inc eax
+ \ No newline at end of file