Microblaze: Modified trap instruction There is a bug in trap instruction generation...
authorNagaraju Mekala <nmekala@xilinx.com>
Sat, 4 Apr 2020 08:49:55 +0000 (14:19 +0530)
committerJeff Law <law@redhat.com>
Sun, 5 Apr 2020 16:05:26 +0000 (10:05 -0600)
        * gcc/config/microblaze/microblaze.md (trap): Update output pattern.

        * gcc.target/microblaze/others/builtin-trap.c: Update expected output.

gcc/ChangeLog
gcc/config/microblaze/microblaze.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/microblaze/others/builtin-trap.c

index 9501c946cbd7a28b34b83f5cce1c832be768bc6e..220255a3bc8ffeb47b8d1cd13de35c40274d86bd 100644 (file)
@@ -1,3 +1,10 @@
+2020-04-05 Nagaraju Mekala <nmekala@xilix.com>
+    
+        * gcc/config/microblaze/microblaze.md (trap): Update output pattern.
+
+        * gcc/testsuite/gcc.target/microblaze/others/builtin-trap.c
+        (dg-final): update in the scan-assembler instruction
+
 2020-04-04  Hannes Domani  <ssbssa@yahoo.de>
            Jakub Jelinek  <jakub@redhat.com>
 
index 1970cc67f8f106ed4edc1dde579cef0209ae32f3..7049acd1dcdf4f6d65abca25622ad62303a50d68 100644 (file)
 (define_insn "trap"
   [(trap_if (const_int 1) (const_int 0))]
   ""
-  "brki\tr0,-1"
+  "bri\t0"
  [(set_attr "type" "trap")]
 )
 
index 058af2c3704296b73c77a6402b2d98c4ebcb4075..7d90855df0c840b0347160176d9e42d09786b34c 100644 (file)
@@ -1,3 +1,7 @@
+2020-04-05 Nagaraju Mekala <nmekala@xilix.com>
+    
+        * gcc.target/microblaze/others/builtin-trap.c: Update expected output.
+
 2020-04-04  Hannes Domani  <ssbssa@yahoo.de>
            Jakub Jelinek  <jakub@redhat.com>
 
index fdcde1fa7debb47644b571512e7bfa7e307a14d6..580b4db4e5b417effad96cd687222c195a0bc52a 100644 (file)
@@ -5,4 +5,4 @@ void trap ()
   __builtin_trap ();
 }
 
-/* { dg-final { scan-assembler "brki\tr0,-1" } } */
\ No newline at end of file
+/* { dg-final { scan-assembler "bri\t0" } } */