summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Bradbury <asb@lowrisc.org>2018-02-17 18:17:47 +0000
committerAlex Bradbury <asb@lowrisc.org>2018-02-17 18:17:47 +0000
commit2cd14e16a6b199c8a10d536470bc61b723543160 (patch)
tree6765985098bfb0a5e0e4c90c334e64f3eaa86a66
parentd01cb72f7e41bee103642cc2296bae60b8753696 (diff)
downloadbcm5719-llvm-2cd14e16a6b199c8a10d536470bc61b723543160.tar.gz
bcm5719-llvm-2cd14e16a6b199c8a10d536470bc61b723543160.zip
[RISCV] Revert r324172 now r323991 was reverted
This fixes the build, now that r325421 was commited to revert r323991. llvm-svn: 325441
-rw-r--r--llvm/test/CodeGen/RISCV/bswap-ctlz-cttz-ctpop.ll4
-rw-r--r--llvm/test/CodeGen/RISCV/calls.ll4
2 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/RISCV/bswap-ctlz-cttz-ctpop.ll b/llvm/test/CodeGen/RISCV/bswap-ctlz-cttz-ctpop.ll
index 1fbc429cae4..6ef034c48ee 100644
--- a/llvm/test/CodeGen/RISCV/bswap-ctlz-cttz-ctpop.ll
+++ b/llvm/test/CodeGen/RISCV/bswap-ctlz-cttz-ctpop.ll
@@ -278,7 +278,7 @@ define i64 @test_cttz_i64(i64 %a) nounwind {
; RV32I-NEXT: sw s8, 12(sp)
; RV32I-NEXT: mv s2, a1
; RV32I-NEXT: mv s3, a0
-; RV32I-NEXT: addi a0, a0, -1
+; RV32I-NEXT: addi a0, s3, -1
; RV32I-NEXT: not a1, s3
; RV32I-NEXT: and a0, a1, a0
; RV32I-NEXT: lui a1, 349525
@@ -469,7 +469,7 @@ define i64 @test_cttz_i64_zero_undef(i64 %a) nounwind {
; RV32I-NEXT: sw s8, 12(sp)
; RV32I-NEXT: mv s2, a1
; RV32I-NEXT: mv s3, a0
-; RV32I-NEXT: addi a0, a0, -1
+; RV32I-NEXT: addi a0, s3, -1
; RV32I-NEXT: not a1, s3
; RV32I-NEXT: and a0, a1, a0
; RV32I-NEXT: lui a1, 349525
diff --git a/llvm/test/CodeGen/RISCV/calls.ll b/llvm/test/CodeGen/RISCV/calls.ll
index 8875015e5b3..5f71bdad961 100644
--- a/llvm/test/CodeGen/RISCV/calls.ll
+++ b/llvm/test/CodeGen/RISCV/calls.ll
@@ -99,8 +99,8 @@ define i32 @test_call_external_many_args(i32 %a) nounwind {
; RV32I-NEXT: sw ra, 12(sp)
; RV32I-NEXT: sw s1, 8(sp)
; RV32I-NEXT: mv s1, a0
-; RV32I-NEXT: sw a0, 4(sp)
-; RV32I-NEXT: sw a0, 0(sp)
+; RV32I-NEXT: sw s1, 4(sp)
+; RV32I-NEXT: sw s1, 0(sp)
; RV32I-NEXT: lui a0, %hi(external_many_args)
; RV32I-NEXT: addi t0, a0, %lo(external_many_args)
; RV32I-NEXT: mv a0, s1
OpenPOWER on IntegriCloud