* arm-dis.c (print_insn_arm): Output combinations of PSR flags.
authorAlexandre Oliva <aoliva@redhat.com>
Tue, 4 Jul 2000 05:47:22 +0000 (05:47 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Tue, 4 Jul 2000 05:47:22 +0000 (05:47 +0000)
opcodes/ChangeLog
opcodes/arm-dis.c

index 737d7af05e7ae1349d173bf564f1c314697aa5f6..c0fb82718c30da2d41cf032d790d6ff0e0d636bd 100644 (file)
@@ -1,3 +1,7 @@
+2000-07-04  Alexandre Oliva  <aoliva@redhat.com>
+
+       * arm-dis.c (print_insn_arm): Output combinations of PSR flags.
+
 2000-07-03  Marek Michalkiewicz  <marekm@linux.org.pl>
 
        * avr-dis.c (avr_operand): Change _ () to _() around all strings
index 4c6552e6ccd016a2beec972e95ee4bc56f93183b..0ddcffa97860779b9cd9fe724c9fb269a3027bc8 100644 (file)
@@ -422,27 +422,15 @@ print_insn_arm (pc, info, given)
                      break;
 
                    case 'C':
-                     switch (given & 0x000f0000)
-                       {
-                       default:
-                         func (stream, "_???");
-                         break;
-                       case 0x90000:
-                         func (stream, "_all");
-                         break;
-                       case 0x10000:
-                         func (stream, "_c");
-                         break;
-                       case 0x20000:
-                         func (stream, "_x");
-                         break;
-                       case 0x40000:
-                         func (stream, "_s");
-                         break;
-                       case 0x80000:
-                         func (stream, "_f");
-                         break;
-                       }
+                     func (stream, "_");
+                     if (given & 0x80000)
+                       func (stream, "f");
+                     if (given & 0x40000)
+                       func (stream, "s");
+                     if (given & 0x20000)
+                       func (stream, "x");
+                     if (given & 0x10000)
+                       func (stream, "c");
                      break;
 
                    case 'F':