This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Add a testcase for PR gas/14201


Hi,

I checked in this patch to add a testcase for PR gas/14201.

H.J.
---
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 78bec37..0cd8df5 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -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.
diff --git a/gas/testsuite/gas/all/gas.exp b/gas/testsuite/gas/all/gas.exp
index 2cef5dd..079b746 100644
--- a/gas/testsuite/gas/all/gas.exp
+++ b/gas/testsuite/gas/all/gas.exp
@@ -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
index 0000000..6e63f22
--- /dev/null
+++ b/gas/testsuite/gas/all/rept.d
@@ -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
index 0000000..318f44e
--- /dev/null
+++ b/gas/testsuite/gas/all/rept.s
@@ -0,0 +1,6 @@
+        .data
+        .global _pad_data
+_pad_data:
+        .rept (0x40000*210) 
+        .byte 0
+        .endr


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]