Add a testcase for PR gas/14201
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 7 Jun 2012 13:47:14 +0000 (13:47 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 7 Jun 2012 13:47:14 +0000 (13:47 +0000)
PR gas/14201
* gas/all/gas.exp: Run rept.

* gas/all/rept.d: New file.
* gas/all/rept.s: Likewise.

gas/testsuite/ChangeLog
gas/testsuite/gas/all/gas.exp
gas/testsuite/gas/all/rept.d [new file with mode: 0644]
gas/testsuite/gas/all/rept.s [new file with mode: 0644]

index 78bec37..0cd8df5 100644 (file)
@@ -1,3 +1,11 @@
+2012-06-07  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR gas/14201
+       * gas/all/gas.exp: Run rept.
+
+       * gas/all/rept.d: New file.
+       * gas/all/rept.s: Likewise.
+
 2012-05-29  Roland McGrath  <mcgrathr@google.com>
 
        * gas/i386/bundle-bad.s: Remove nested .bundle_lock case.
index 2cef5dd..079b746 100644 (file)
@@ -400,6 +400,7 @@ gas_test_error "weakref3.s" "" "a: would close weakref loop: a => b => c => d =>
 gas_test_error "weakref4.s" "" "is already defined"
 
 run_dump_test string
+run_dump_test rept
 
 load_lib gas-dg.exp
 dg-init
diff --git a/gas/testsuite/gas/all/rept.d b/gas/testsuite/gas/all/rept.d
new file mode 100644 (file)
index 0000000..6e63f22
--- /dev/null
@@ -0,0 +1,5 @@
+#nm: --extern-only
+
+# Test the .rept pseudo-op.
+
+0+0 D _pad_data
diff --git a/gas/testsuite/gas/all/rept.s b/gas/testsuite/gas/all/rept.s
new file mode 100644 (file)
index 0000000..318f44e
--- /dev/null
@@ -0,0 +1,6 @@
+        .data
+        .global _pad_data
+_pad_data:
+        .rept (0x40000*210) 
+        .byte 0
+        .endr