From c98bb2d606d60e274405d222a5772e54b039ec02 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 25 Feb 1997 18:47:08 +0000 Subject: [PATCH] * gas/all/cond.s, gas/all/cond.d: New test. * gas/all/gas.exp: Run it. --- gas/testsuite/ChangeLog | 10 ++++++++++ gas/testsuite/gas/all/.Sanitize | 2 ++ gas/testsuite/gas/all/cond.d | 15 +++++++++++++++ gas/testsuite/gas/all/cond.s | 17 +++++++++++++++++ 4 files changed, 44 insertions(+) create mode 100644 gas/testsuite/gas/all/cond.d create mode 100644 gas/testsuite/gas/all/cond.s diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 0723d0ac38..00936502c5 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,13 @@ +Tue Feb 25 13:45:55 1997 Ian Lance Taylor + + * gas/all/cond.s, gas/all/cond.d: New test. + * gas/all/gas.exp: Run it. + +Mon Feb 24 10:52:12 1997 Bob Manson + + * lib/gas-defs.exp(gas_init): Added new parameter for script + name. + start-sanitize-tic80 Mon Feb 24 10:40:28 1997 Fred Fish diff --git a/gas/testsuite/gas/all/.Sanitize b/gas/testsuite/gas/all/.Sanitize index 57d6c24cce..b86be90e9d 100644 --- a/gas/testsuite/gas/all/.Sanitize +++ b/gas/testsuite/gas/all/.Sanitize @@ -31,6 +31,8 @@ align.s gas.exp cofftag.d cofftag.s +cond.d +cond.s comment.s diff1.s float.s diff --git a/gas/testsuite/gas/all/cond.d b/gas/testsuite/gas/all/cond.d new file mode 100644 index 0000000000..b7f11c2dc5 --- /dev/null +++ b/gas/testsuite/gas/all/cond.d @@ -0,0 +1,15 @@ +# This should match the output of gas -alc cond.s. + +.*cond.s.* + + + 1[ ]+.if 0 + 8[ ]+.else + 9[ ]+.if 1 + 10[ ]+.endc + 11 0000 0[02]00 ?000[02][ ]+.long[ ]+2 + 12[ ]+.if 0 + 14[ ]+.else + 15 0004 0[04]00 ?000[04][ ]+.long[ ]+4 + 16[ ]+.endc + 17[ ]+.endc diff --git a/gas/testsuite/gas/all/cond.s b/gas/testsuite/gas/all/cond.s new file mode 100644 index 0000000000..f457e2e700 --- /dev/null +++ b/gas/testsuite/gas/all/cond.s @@ -0,0 +1,17 @@ + .if 0 + .if 1 + .endc + .long 0 + .if 0 + .long 1 + .endc + .else + .if 1 + .endc + .long 2 + .if 0 + .long 3 + .else + .long 4 + .endc + .endc -- 2.34.1