diff options
author | Luis Marques <luismarques@lowrisc.org> | 2019-09-17 09:43:08 +0000 |
---|---|---|
committer | Luis Marques <luismarques@lowrisc.org> | 2019-09-17 09:43:08 +0000 |
commit | e38695a0255c9e7b53639f349f8101bae1ce5c04 (patch) | |
tree | ef761937808dba096e3e166b07e44a3bc8337d2e /llvm/test/CodeGen/RISCV/inline-asm-f-constraint-f.ll | |
parent | e80fcf03407acd6429d07e4a45185ac546ffa37c (diff) | |
download | llvm-e38695a0255c9e7b53639f349f8101bae1ce5c04.zip llvm-e38695a0255c9e7b53639f349f8101bae1ce5c04.tar.gz llvm-e38695a0255c9e7b53639f349f8101bae1ce5c04.tar.bz2 |
Patch from Phabricator
llvm-svn: 372092
Diffstat (limited to 'llvm/test/CodeGen/RISCV/inline-asm-f-constraint-f.ll')
-rw-r--r-- | llvm/test/CodeGen/RISCV/inline-asm-f-constraint-f.ll | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/llvm/test/CodeGen/RISCV/inline-asm-f-constraint-f.ll b/llvm/test/CodeGen/RISCV/inline-asm-f-constraint-f.ll index c91b1ae..25bce62 100644 --- a/llvm/test/CodeGen/RISCV/inline-asm-f-constraint-f.ll +++ b/llvm/test/CodeGen/RISCV/inline-asm-f-constraint-f.ll @@ -9,22 +9,22 @@ define float @constraint_f_float(float %a) nounwind { ; RV32F-LABEL: constraint_f_float: ; RV32F: # %bb.0: -; RV32F-NEXT: fmv.w.x ft0, a0 -; RV32F-NEXT: lui a0, %hi(gf) -; RV32F-NEXT: flw ft1, %lo(gf)(a0) +; RV32F-NEXT: lui a1, %hi(gf) +; RV32F-NEXT: flw ft0, %lo(gf)(a1) +; RV32F-NEXT: fmv.w.x ft1, a0 ; RV32F-NEXT: #APP -; RV32F-NEXT: fadd.s ft0, ft0, ft1 +; RV32F-NEXT: fadd.s ft0, ft1, ft0 ; RV32F-NEXT: #NO_APP ; RV32F-NEXT: fmv.x.w a0, ft0 ; RV32F-NEXT: ret ; ; RV64F-LABEL: constraint_f_float: ; RV64F: # %bb.0: -; RV64F-NEXT: fmv.w.x ft0, a0 -; RV64F-NEXT: lui a0, %hi(gf) -; RV64F-NEXT: flw ft1, %lo(gf)(a0) +; RV64F-NEXT: lui a1, %hi(gf) +; RV64F-NEXT: flw ft0, %lo(gf)(a1) +; RV64F-NEXT: fmv.w.x ft1, a0 ; RV64F-NEXT: #APP -; RV64F-NEXT: fadd.s ft0, ft0, ft1 +; RV64F-NEXT: fadd.s ft0, ft1, ft0 ; RV64F-NEXT: #NO_APP ; RV64F-NEXT: fmv.x.w a0, ft0 ; RV64F-NEXT: ret @@ -36,9 +36,9 @@ define float @constraint_f_float(float %a) nounwind { define float @constraint_f_float_abi_name(float %a) nounwind { ; RV32F-LABEL: constraint_f_float_abi_name: ; RV32F: # %bb.0: +; RV32F-NEXT: lui a1, %hi(gf) +; RV32F-NEXT: flw fs0, %lo(gf)(a1) ; RV32F-NEXT: fmv.w.x fa0, a0 -; RV32F-NEXT: lui a0, %hi(gf) -; RV32F-NEXT: flw fs0, %lo(gf)(a0) ; RV32F-NEXT: #APP ; RV32F-NEXT: fadd.s ft0, fa0, fs0 ; RV32F-NEXT: #NO_APP @@ -47,9 +47,9 @@ define float @constraint_f_float_abi_name(float %a) nounwind { ; ; RV64F-LABEL: constraint_f_float_abi_name: ; RV64F: # %bb.0: +; RV64F-NEXT: lui a1, %hi(gf) +; RV64F-NEXT: flw fs0, %lo(gf)(a1) ; RV64F-NEXT: fmv.w.x fa0, a0 -; RV64F-NEXT: lui a0, %hi(gf) -; RV64F-NEXT: flw fs0, %lo(gf)(a0) ; RV64F-NEXT: #APP ; RV64F-NEXT: fadd.s ft0, fa0, fs0 ; RV64F-NEXT: #NO_APP |