diff --git a/gas/testsuite/gas/all/.Sanitize b/gas/testsuite/gas/all/.Sanitize
index 99bad1e1c3a..e6e70ed1124 100644
--- a/gas/testsuite/gas/all/.Sanitize
+++ b/gas/testsuite/gas/all/.Sanitize
@@ -26,6 +26,8 @@ Do-first:
 
 Things-to-keep:
 
+align.d
+align.s
 gas.exp
 cofftag.d
 cofftag.s
diff --git a/gas/testsuite/gas/all/align.d b/gas/testsuite/gas/all/align.d
new file mode 100644
index 00000000000..86ede6186a9
--- /dev/null
+++ b/gas/testsuite/gas/all/align.d
@@ -0,0 +1,12 @@
+#objdump: -s -j .text
+#name: align
+
+# Test the alignment pseudo-op.
+
+.*: .*
+
+Contents of section .text:
+ 0000 ff00ff01 ff020202 ffff0303 04040404  ................
+ 0010 ffffffff 05050505 ff090a0a 0a0a0a0a  ................
+ 0020 ff00ff01 ff020202 ffff0303 04040404  ................
+ 0030 ffffffff 05050505 ff090a0a 0a0a0a0a  ................