Home | History | Annotate | Line # | Download | only in gdb.arch
      1 # Copyright 2021-2025 Free Software Foundation, Inc.
      2 
      3 # This program is free software; you can redistribute it and/or modify
      4 # it under the terms of the GNU General Public License as published by
      5 # the Free Software Foundation; either version 3 of the License, or
      6 # (at your option) any later version.
      7 #
      8 # This program is distributed in the hope that it will be useful,
      9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
     10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     11 # GNU General Public License for more details.
     12 #
     13 # You should have received a copy of the GNU General Public License
     14 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
     15 
     16 
     17 # test to verify that the prefixed instructions that
     18 # load/store non-relative values work OK.
     19 
     20 .global main
     21 .type main,function
     22 main:
     23 	nop
     24 	lnia 4
     25 	addi 4,4,40
     26 	plxv 4,4(4),0
     27 	plxv 5,12(4),0
     28 	plxv 6,20(4),0
     29 	plxv 7,28(4),0
     30 check_here:
     31 	blr
     32 mydata:
     33 	.long 0xa1b1c1d1	# <<-
     34 	.long 0xa2b2c2d2	# <<- loaded into vs4
     35 	.long 0xa3b3c3d3	# <<- loaded into vs4
     36 	.long 0xa4b4c4d4	# <<- loaded into vs4, vs5
     37 	.long 0xa5b5c5d5	# <<- loaded into vs4, vs5
     38 	.long 0xa6b6c6d6	# <<- loaded into      vs5, vs6
     39 	.long 0xa7b7c7d7	# <<- loaded into      vs5, vs6
     40 	.long 0xa8b8c8d8	# <<- loaded into           vs6, vs7
     41 	.long 0xa9b9c9d9	# <<- loaded into           vs6, vs7
     42 	.long 0xaabacada	# <<- loaded into                vs7
     43 	.long 0xabbbcbdb	# <<- loaded into                vs7
     44 	.long 0xacbcccdc	# <<-
     45 
     46 	.section	.note.GNU-stack,"",@progbits
     47