diff --git a/gas/testsuite/lib/gas-defs.exp b/gas/testsuite/lib/gas-defs.exp
index dbd35e9cb56..99795d2914b 100644
--- a/gas/testsuite/lib/gas-defs.exp
+++ b/gas/testsuite/lib/gas-defs.exp
@@ -357,10 +357,6 @@ proc verbose_eval { expr { level 1 } } {
     if $verbose>$level then { eval verbose "$expr" $level }
 }
 
-if { [istarget loongarch*-*-*] } {
-    rename prune_warnings prune_warnings_other
-}
-
 # run_list_test NAME (optional): OPTS TESTNAME
 #
 # Assemble the file "NAME.s" with command line options OPTS and
