blob: 26ecbb9473ad4bbb4585320204c9f76d6a00fef5 [file] [log] [blame]
# Source file used to test the ulh macro.
.data
data_label:
.extern big_external_data_label,1000
.extern small_external_data_label,1
.comm big_external_common,1000
.comm small_external_common,1
.lcomm big_local_common,1000
.lcomm small_local_common,1
.text
ulh $4,0
ulh $4,1
ulh $4,0x8000
ulh $4,-0x8000
ulh $4,0x10000
ulh $4,0x1a5a5
ulh $4,0($5)
ulh $4,1($5)
ulh $4,data_label
ulh $4,big_external_data_label
ulh $4,small_external_data_label
ulh $4,big_external_common
ulh $4,small_external_common
ulh $4,big_local_common
ulh $4,small_local_common
ulh $4,data_label+1
ulh $4,big_external_data_label+1
ulh $4,small_external_data_label+1
ulh $4,big_external_common+1
ulh $4,small_external_common+1
ulh $4,big_local_common+1
ulh $4,small_local_common+1
ulh $4,data_label+0x8000
ulh $4,big_external_data_label+0x8000
ulh $4,small_external_data_label+0x8000
ulh $4,big_external_common+0x8000
ulh $4,small_external_common+0x8000
ulh $4,big_local_common+0x8000
ulh $4,small_local_common+0x8000
ulh $4,data_label-0x8000
ulh $4,big_external_data_label-0x8000
ulh $4,small_external_data_label-0x8000
ulh $4,big_external_common-0x8000
ulh $4,small_external_common-0x8000
ulh $4,big_local_common-0x8000
ulh $4,small_local_common-0x8000
ulh $4,data_label+0x10000
ulh $4,big_external_data_label+0x10000
ulh $4,small_external_data_label+0x10000
ulh $4,big_external_common+0x10000
ulh $4,small_external_common+0x10000
ulh $4,big_local_common+0x10000
ulh $4,small_local_common+0x10000
ulh $4,data_label+0x1a5a5
ulh $4,big_external_data_label+0x1a5a5
ulh $4,small_external_data_label+0x1a5a5
ulh $4,big_external_common+0x1a5a5
ulh $4,small_external_common+0x1a5a5
ulh $4,big_local_common+0x1a5a5
ulh $4,small_local_common+0x1a5a5
# ulhu is handled like ulh. Sanity check it.
ulhu $4,0
# Round to a 16 byte boundary, for ease in testing multiple targets.
nop
nop