[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / MC / RISCV / compress-rv32f.s
blob69fc4f316938c862594b70c0fe71c65385619825
1 # RUN: llvm-mc -triple riscv32 -mattr=+c,+f -show-encoding < %s \
2 # RUN: | FileCheck -check-prefixes=CHECK,CHECK-ALIAS %s
3 # RUN: llvm-mc -triple riscv32 -mattr=+c,+f -show-encoding \
4 # RUN: -riscv-no-aliases <%s | FileCheck -check-prefixes=CHECK,CHECK-INST %s
5 # RUN: llvm-mc -triple riscv32 -mattr=+c,+f -filetype=obj < %s \
6 # RUN: | llvm-objdump -triple riscv32 -mattr=+c,+f -d - \
7 # RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-ALIAS %s
8 # RUN: llvm-mc -triple riscv32 -mattr=+c,+f -filetype=obj < %s \
9 # RUN: | llvm-objdump -triple riscv32 -mattr=+c,+f -d -M no-aliases - \
10 # RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-INST %s
12 # Instructions that are 32 bit only.
13 flw ft0, 124(sp)
14 # CHECK-BYTES: 76 70
15 # CHECK-ALIAS: flw ft0, 124(sp)
16 # CHECK-INST: c.flwsp ft0, 124(sp)
17 # CHECK: # encoding: [0x76,0x70]
18 fsw ft0, 124(sp)
19 # CHECK-BYTES: 82 fe
20 # CHECK-ALIAS: fsw ft0, 124(sp)
21 # CHECK-INST: c.fswsp ft0, 124(sp)
22 # CHECK: # encoding: [0x82,0xfe]
23 flw fs0, 124(s0)
24 # CHECK-BYTES: 60 7c
25 # CHECK-ALIAS: flw fs0, 124(s0)
26 # CHECK-INST: c.flw fs0, 124(s0)
27 # CHECK: # encoding: [0x60,0x7c]
28 fsw fs0, 124(s0)
29 # CHECK-BYTES: 60 fc
30 # CHECK-ALIAS: fsw fs0, 124(s0)
31 # CHECK-INST: c.fsw fs0, 124(s0)
32 # CHECK: # encoding: [0x60,0xfc]