#source: align-small-region.s
-#as: -march=rv32i
+#as: -march=rv32i -mlittle-endian
#ld: -melf32lriscv --relax -Talign-small-region.ld --defsym=_start=0x100
#objdump: -d
#source: code-model.s
-#as: -march=rv64i -mabi=lp64 --defsym __medany__=1
+#as: -march=rv64i -mabi=lp64 -mlittle-endian --defsym __medany__=1
#ld: -Tcode-model-01.ld -melf64lriscv --no-relax
#error: .*relocation truncated to fit: R_RISCV_GOT_HI20 against symbol `symbolG'
#source: code-model.s
-#as: -march=rv64i -mabi=lp64 --defsym __medany__=1
+#as: -march=rv64i -mabi=lp64 -mlittle-endian --defsym __medany__=1
#ld: -Tcode-model-02.ld -melf64lriscv --no-relax
#objdump: -d -Mno-aliases
#source: code-model.s
-#as: -march=rv64i -mabi=lp64 --defsym __medany__=1 --defsym __undefweak__=1
+#as: -march=rv64i -mabi=lp64 -mlittle-endian --defsym __medany__=1 --defsym __undefweak__=1
#ld: -Tcode-model-01.ld -melf64lriscv --no-relax
#error: .*relocation truncated to fit: R_RISCV_GOT_HI20 against undefined symbol `symbolW'
#source: code-model.s
-#as: -march=rv64i -mabi=lp64 --defsym __medany__=1 --defsym __undefweak__=1
+#as: -march=rv64i -mabi=lp64 -mlittle-endian --defsym __medany__=1 --defsym __undefweak__=1
#ld: -Tcode-model-02.ld -melf64lriscv --no-relax
#objdump: -d -Mno-aliases
#source: code-model.s
-#as: -march=rv64i -mabi=lp64 --defsym __medlow__=1
+#as: -march=rv64i -mabi=lp64 -mlittle-endian --defsym __medlow__=1
#ld: -Tcode-model-01.ld -melf64lriscv --no-relax
#error: .*relocation truncated to fit: R_RISCV_HI20 against `symbolL'
#source: code-model.s
-#as: -march=rv64i -mabi=lp64 --defsym __medlow__=1
+#as: -march=rv64i -mabi=lp64 -mlittle-endian --defsym __medlow__=1
#ld: -Tcode-model-02.ld -melf64lriscv --no-relax
#objdump: -d -Mno-aliases
#source: code-model.s
-#as: -march=rv64i -mabi=lp64 --defsym __medlow__=1 --defsym __undefweak__=1
+#as: -march=rv64i -mabi=lp64 -mlittle-endian --defsym __medlow__=1 --defsym __undefweak__=1
#ld: -Tcode-model-01.ld -melf64lriscv --no-relax
#objdump: -d -Mno-aliases
#source: code-model.s
-#as: -march=rv64i -mabi=lp64 --defsym __medlow__=1 --defsym __undefweak__=1
+#as: -march=rv64i -mabi=lp64 -mlittle-endian --defsym __medlow__=1 --defsym __undefweak__=1
#ld: -Tcode-model-02.ld -melf64lriscv --no-relax
#objdump: -d -Mno-aliases
#source: code-model.s
-#as: -march=rv64i -mabi=lp64 --defsym __medany__=1
+#as: -march=rv64i -mabi=lp64 -mlittle-endian --defsym __medany__=1
#ld: -Tcode-model-01.ld -melf64lriscv --relax
#error: .*relocation truncated to fit: R_RISCV_GOT_HI20 against symbol `symbolG'
#source: code-model.s
-#as: -march=rv64i -mabi=lp64 --defsym __medany__=1
+#as: -march=rv64i -mabi=lp64 -mlittle-endian --defsym __medany__=1
#ld: -Tcode-model-02.ld -melf64lriscv --relax
#objdump: -d -Mno-aliases
#source: code-model.s
-#as: -march=rv64i -mabi=lp64 --defsym __medany__=1 --defsym __undefweak__=1
+#as: -march=rv64i -mabi=lp64 -mlittle-endian --defsym __medany__=1 --defsym __undefweak__=1
#ld: -Tcode-model-01.ld -melf64lriscv --relax
#error: .*relocation truncated to fit: R_RISCV_GOT_HI20 against undefined symbol `symbolW'
#source: code-model.s
-#as: -march=rv64i -mabi=lp64 --defsym __medany__=1 --defsym __undefweak__=1
+#as: -march=rv64i -mabi=lp64 -mlittle-endian --defsym __medany__=1 --defsym __undefweak__=1
#ld: -Tcode-model-02.ld -melf64lriscv --relax
#objdump: -d -Mno-aliases
#source: code-model.s
-#as: -march=rv64i -mabi=lp64 --defsym __medlow__=1
+#as: -march=rv64i -mabi=lp64 -mlittle-endian --defsym __medlow__=1
#ld: -Tcode-model-01.ld -melf64lriscv --no-relax-gp --relax
#error: .*relocation truncated to fit: R_RISCV_HI20 against `symbolL'
#source: code-model.s
-#as: -march=rv64i -mabi=lp64 --defsym __medlow__=1
+#as: -march=rv64i -mabi=lp64 -mlittle-endian --defsym __medlow__=1
#ld: -Tcode-model-01.ld -melf64lriscv --relax
#objdump: -d -Mno-aliases
#source: code-model.s
-#as: -march=rv64i -mabi=lp64 --defsym __medlow__=1
+#as: -march=rv64i -mabi=lp64 -mlittle-endian --defsym __medlow__=1
#ld: -Tcode-model-02.ld -melf64lriscv --relax
#objdump: -d -Mno-aliases
#source: code-model.s
-#as: -march=rv64i -mabi=lp64 --defsym __medlow__=1 --defsym __undefweak__=1
+#as: -march=rv64i -mabi=lp64 -mlittle-endian --defsym __medlow__=1 --defsym __undefweak__=1
#ld: -Tcode-model-01.ld -melf64lriscv --relax
#objdump: -d -Mno-aliases
#source: code-model.s
-#as: -march=rv64i -mabi=lp64 --defsym __medlow__=1 --defsym __undefweak__=1
+#as: -march=rv64i -mabi=lp64 -mlittle-endian --defsym __medlow__=1 --defsym __undefweak__=1
#ld: -Tcode-model-02.ld -melf64lriscv --relax
#objdump: -d -Mno-aliases
#source: pcrel-reloc.s
#source: pcrel-reloc-abs.s
-#as: -march=rv64i -mabi=lp64
+#as: -march=rv64i -mabi=lp64 -mlittle-endian
#ld: -melf64lriscv --no-pie --no-relax
#objdump: -d
#source: pcrel-reloc.s
#source: pcrel-reloc-abs.s
-#as: -march=rv64i -mabi=lp64
+#as: -march=rv64i -mabi=lp64 -mlittle-endian
#ld: -melf64lriscv --pie --no-relax
#error: .*relocation R_RISCV_PCREL_HI20 against absolute symbol `sym' can not be used when making a shared objec.*t
#source: pcrel-reloc.s
#source: pcrel-reloc-rel.s
-#as: -march=rv64i -mabi=lp64
+#as: -march=rv64i -mabi=lp64 -mlittle-endian
#ld: -melf64lriscv --no-pie --no-relax
#objdump: -d
#source: pcrel-reloc.s
#source: pcrel-reloc-rel.s
-#as: -march=rv64i -mabi=lp64
+#as: -march=rv64i -mabi=lp64 -mlittle-endian
#ld: -melf64lriscv --pie --no-relax
#objdump: -d
#name: RISC-V GNU Property (multiple inputs, combine section) - 1
#source: property1.s
#source: property2.s
-#as: -march=rv64g
+#as: -march=rv64g -mlittle-endian
#ld: -shared -melf64lriscv
#readelf: -n
#name: RISC-V GNU Property (multiple inputs, combine section) - 2
#source: property1.s
#source: property3.s
-#as: -march=rv64g
+#as: -march=rv64g -mlittle-endian
#ld: -shared -melf64lriscv
#readelf: -n
#name: RISC-V GNU Property (multiple inputs, combine section) - 3
#source: property1.s
#source: property4.s
-#as: -march=rv64g
+#as: -march=rv64g -mlittle-endian
#ld: -shared -melf64lriscv
#readelf: -n
#name: GNU Property (single input, CFI_LP_UNLABELED)
#source: property-zicfilp-unlabeled.s
-#as: -march=rv64g
+#as: -march=rv64g -mlittle-endian
#ld: -shared -melf64lriscv
#readelf: -n
#name: GNU Property (single input, CFI_SS)
#source: property-zicfiss.s
-#as: -march=rv64g
+#as: -march=rv64g -mlittle-endian
#ld: -shared -melf64lriscv
#readelf: -n
#source: uleb128.s
-#as: -march=rv32ic
+#as: -march=rv32ic -mlittle-endian
#ld: -melf32lriscv
#objdump: -d
#source: zicfilp-unlabeled-plt.s
#ld: -shared -melf64lriscv
#objdump: -dr -j .plt
-#as: -march=rv64gc_zicfilp
+#as: -march=rv64gc_zicfilp -mlittle-endian
[^:]*: *file format elf64-.*riscv