brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.3 KiB · ea5143f Raw
43 lines · plain
1# RUN: llvm-mc --triple=riscv32 --show-encoding < %s 2>&1 \2# RUN:   | FileCheck --check-prefix=DEFAULT %s3# RUN: llvm-mc --triple=riscv64 --show-encoding < %s 2>&1 \4# RUN:   | FileCheck --check-prefix=DEFAULT %s5# RUN: llvm-mc --triple=riscv32 -M emit-x8-as-fp --show-encoding < %s 2>&1 \6# RUN:   | FileCheck --check-prefix=EMIT-FP %s7# RUN: llvm-mc --triple=riscv64 -M emit-x8-as-fp --show-encoding < %s 2>&1 \8# RUN:   | FileCheck --check-prefix=EMIT-FP %s9# RUN: llvm-mc --triple=riscv32 -M numeric -M emit-x8-as-fp --show-encoding \10# RUN:   < %s 2>&1 | FileCheck --check-prefix=NUMERIC %s11# RUN: llvm-mc --triple=riscv64 -M numeric -M emit-x8-as-fp --show-encoding \12# RUN:   < %s 2>&1 | FileCheck --check-prefix=NUMERIC %s13 14# DEFAULT: sw      a0, -12(s0)                     # encoding: [0x23,0x2a,0xa4,0xfe]15# EMIT-FP: sw      a0, -12(fp)                     # encoding: [0x23,0x2a,0xa4,0xfe]16# NUMERIC: sw      x10, -12(x8)                    # encoding: [0x23,0x2a,0xa4,0xfe]17sw a0, -12(s0)18 19# DEFAULT: lw      a0, -12(s0)                     # encoding: [0x03,0x25,0x44,0xff]20# EMIT-FP: lw      a0, -12(fp)                     # encoding: [0x03,0x25,0x44,0xff]21# NUMERIC: lw      x10, -12(x8)                    # encoding: [0x03,0x25,0x44,0xff]22lw a0, -12(s0)23 24# DEFAULT: sw      a0, -12(s0)                     # encoding: [0x23,0x2a,0xa4,0xfe]25# EMIT-FP: sw      a0, -12(fp)                     # encoding: [0x23,0x2a,0xa4,0xfe]26# NUMERIC: sw      x10, -12(x8)                    # encoding: [0x23,0x2a,0xa4,0xfe]27sw a0, -12(fp)28 29# DEFAULT: lw      a0, -12(s0)                     # encoding: [0x03,0x25,0x44,0xff]30# EMIT-FP: lw      a0, -12(fp)                     # encoding: [0x03,0x25,0x44,0xff]31# NUMERIC: lw      x10, -12(x8)                    # encoding: [0x03,0x25,0x44,0xff]32lw a0, -12(fp)33 34# DEFAULT: sw      a0, -12(s0)                     # encoding: [0x23,0x2a,0xa4,0xfe]35# EMIT-FP: sw      a0, -12(fp)                     # encoding: [0x23,0x2a,0xa4,0xfe]36# NUMERIC: sw      x10, -12(x8)                    # encoding: [0x23,0x2a,0xa4,0xfe]37sw a0, -12(x8)38 39# DEFAULT: lw      a0, -12(s0)                     # encoding: [0x03,0x25,0x44,0xff]40# EMIT-FP: lw      a0, -12(fp)                     # encoding: [0x03,0x25,0x44,0xff]41# NUMERIC: lw      x10, -12(x8)                    # encoding: [0x03,0x25,0x44,0xff]42lw a0, -12(x8)43